summaryrefslogtreecommitdiffstats
path: root/lib/Db/Item.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Db/Item.php')
-rw-r--r--lib/Db/Item.php4
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;