Passed
Push — master ( c7474a...79c34f )
by Chauncey
02:35
created
src/Charcoal/Attachment/Traits/AttachmentAwareTrait.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 $this->logger->warning(
81 81
                     'AttachmentAwareTrait::attachments() parameters are deprecated. '.
82 82
                     'An array of parameters should be used.',
83
-                    [ 'package' => 'locomotivemtl/charcoal-attachment' ]
83
+                    ['package' => 'locomotivemtl/charcoal-attachment']
84 84
                 );
85 85
             }
86 86
             $options = [
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $loader->setDynamicTypeField('type');
182 182
 
183 183
         if ($widget instanceof AttachmentWidget) {
184
-            $callable = function (&$att) use ($widget, $before) {
184
+            $callable = function(&$att) use ($widget, $before) {
185 185
                 if ($this instanceof AttachableInterface) {
186 186
                     $att->setContainerObj($this);
187 187
                 }
@@ -208,11 +208,11 @@  discard block
 block discarded – undo
208 208
                 $att->isPresentable(true);
209 209
 
210 210
                 if ($before !== null) {
211
-                    call_user_func_array($before, [ &$att ]);
211
+                    call_user_func_array($before, [&$att]);
212 212
                 }
213 213
             };
214 214
         } else {
215
-            $callable = function (&$att) use ($before) {
215
+            $callable = function(&$att) use ($before) {
216 216
                 if ($this instanceof AttachableInterface) {
217 217
                     $att->setContainerObj($this);
218 218
                 }
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
                 $att->isPresentable(true);
221 221
 
222 222
                 if ($before !== null) {
223
-                    call_user_func_array($before, [ &$att ]);
223
+                    call_user_func_array($before, [&$att]);
224 224
                 }
225 225
             };
226 226
         }
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
         $this->logger->warning(
295 295
             'AttachmentAwareTrait::removeJoins() is deprecated. '.
296 296
             'Use AttachmentAwareTrait::removeAttachmentJoins() instead.',
297
-            [ 'package' => 'locomotivemtl/charcoal-attachment' ]
297
+            ['package' => 'locomotivemtl/charcoal-attachment']
298 298
         );
299 299
 
300 300
         return $this->removeAttachmentJoins();
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
         $defaults = $this->getDefaultAttachmentOptions();
423 423
 
424 424
         $options = array_intersect_key($options, $defaults);
425
-        $options = array_filter($options, [ $this, 'filterAttachmentOption' ], ARRAY_FILTER_USE_BOTH);
425
+        $options = array_filter($options, [$this, 'filterAttachmentOption'], ARRAY_FILTER_USE_BOTH);
426 426
         $options = array_replace($defaults, $options);
427 427
 
428 428
         return $options;
Please login to merge, or discard this patch.
src/Charcoal/Attachment/Object/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         callable $after = null
67 67
     ) {
68 68
         $attachables = $this->attachableObjects();
69
-        $attachments = call_user_func_array([ $this, 'getAttachments' ], func_get_args());
69
+        $attachments = call_user_func_array([$this, 'getAttachments'], func_get_args());
70 70
 
71 71
         foreach ($attachments as $attachment) {
72 72
             if (isset($attachables[$attachment->objType()])) {
Please login to merge, or discard this patch.