diff options
author | Sean Molenaar <sean@m2mobi.com> | 2018-11-29 20:59:46 +0100 |
---|---|---|
committer | Sean Molenaar <sean@m2mobi.com> | 2018-12-14 07:54:43 +0100 |
commit | becce6b7520912257c3d72697a3aefec9923a467 (patch) | |
tree | a2e0da34df11ade7c630e9b681fac6d3b2383918 /lib/Db/Item.php | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Db/Item.php')
-rw-r--r-- | lib/Db/Item.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php index cd7606f22..1a8d284a2 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -17,7 +17,6 @@ use OCP\AppFramework\Db\Entity; class Item extends Entity implements IAPI, \JsonSerializable { - use EntityJSONSerializer; /** @var string|null */ @@ -425,8 +424,7 @@ class Item extends Entity implements IAPI, \JsonSerializable public function setUrl(string $url = null) { $url = trim($url); - if ( - (strpos($url, 'http') === 0 || strpos($url, 'magnet') === 0) + if ((strpos($url, 'http') === 0 || strpos($url, 'magnet') === 0) && $this->url !== $url ) { $this->url = $url; |