Passed
Push — master ( e66fcc...a0c341 )
by Jan
04:44
created
src/Entity/Attachments/Attachment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 
384 384
     public function setElement(AttachmentContainingDBElement $element) : Attachment
385 385
     {
386
-        if (!is_a($element,static::ALLOWED_ELEMENT_CLASS)) {
386
+        if (!is_a($element, static::ALLOWED_ELEMENT_CLASS)) {
387 387
             throw new \InvalidArgumentException(sprintf(
388 388
                 'The element associated with a %s must be a %s!',
389 389
                 get_class($this),
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
         if ($only_http) {   //Check if scheme is HTTPS or HTTP
472 472
             $scheme = parse_url($string, PHP_URL_SCHEME);
473 473
             if ($scheme !== 'http' && $scheme !== 'https') {
474
-                return false;   //All other schemes are not valid.
474
+                return false; //All other schemes are not valid.
475 475
             }
476 476
         }
477 477
         if ($path_required) {
Please login to merge, or discard this patch.
src/Entity/Attachments/AttachmentTypeAttachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,5 +40,5 @@
 block discarded – undo
40 40
      */
41 41
     protected $element;
42 42
 
43
-    public const ALLOWED_ELEMENT_CLASS =  AttachmentType::class;
43
+    public const ALLOWED_ELEMENT_CLASS = AttachmentType::class;
44 44
 }
45 45
\ No newline at end of file
Please login to merge, or discard this patch.