Completed
Push — master ( 3cb10a...90467a )
by
unknown
61:46 queued 59:21
created
src/Charcoal/Attachment/Object/Attachment.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     {
197 197
         parent::__construct($data);
198 198
 
199
-        if (is_callable([ $this, 'defaultData' ])) {
199
+        if (is_callable([$this, 'defaultData'])) {
200 200
             $defaultData = $this->metadata()->defaultData();
201 201
             if ($defaultData) {
202 202
                 $this->setData($defaultData);
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      */
373 373
     public function heading()
374 374
     {
375
-        $heading = $this->render((string)$this->heading);
375
+        $heading = $this->render((string) $this->heading);
376 376
 
377 377
         if (!$heading) {
378 378
             $heading = $this->translator()->translation('{{ objType }} #{{ id }}', [
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
     public function preview()
416 416
     {
417 417
         if ($this->preview) {
418
-            return $this->render((string)$this->preview);
418
+            return $this->render((string) $this->preview);
419 419
         }
420 420
 
421 421
         return '';
@@ -1008,19 +1008,19 @@  discard block
 block discarded – undo
1008 1008
         static $search;
1009 1009
 
1010 1010
         if ($search === null) {
1011
-            $attr   = [ 'href', 'link', 'url', 'src' ];
1012
-            $scheme = [ '../', './', '/', 'data', 'mailto', 'http' ];
1011
+            $attr   = ['href', 'link', 'url', 'src'];
1012
+            $scheme = ['../', './', '/', 'data', 'mailto', 'http'];
1013 1013
 
1014 1014
             $search = sprintf(
1015 1015
                 '(?<=%1$s=")(?!%2$s)(\S+)(?=")',
1016
-                implode('="|', array_map('preg_quote', $attr, [ '~' ])),
1017
-                implode('|', array_map('preg_quote', $scheme, [ '~' ]))
1016
+                implode('="|', array_map('preg_quote', $attr, ['~'])),
1017
+                implode('|', array_map('preg_quote', $scheme, ['~']))
1018 1018
             );
1019 1019
         }
1020 1020
 
1021 1021
         $text = preg_replace_callback(
1022 1022
             '~'.$search.'~i',
1023
-            function ($matches) {
1023
+            function($matches) {
1024 1024
                 return $this->createAbsoluteUrl($matches[1]);
1025 1025
             },
1026 1026
             $text
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
     protected function isRelativeUri($uri)
1040 1040
     {
1041 1041
         if ($uri && !parse_url($uri, PHP_URL_SCHEME)) {
1042
-            if (!in_array($uri[0], [ '/', '#', '?' ])) {
1042
+            if (!in_array($uri[0], ['/', '#', '?'])) {
1043 1043
                 return true;
1044 1044
             }
1045 1045
         }
Please login to merge, or discard this patch.