@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $this->logger->warning( |
71 | 71 | 'AttachmentAwareTrait::getAttachments() parameters are deprecated. '. |
72 | 72 | 'An array of parameters should be used.', |
73 | - [ 'package' => 'locomotivemtl/charcoal-attachment' ] |
|
73 | + ['package' => 'locomotivemtl/charcoal-attachment'] |
|
74 | 74 | ); |
75 | 75 | } |
76 | 76 | $options = [ |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $loader->setModel($attProto); |
169 | 169 | $loader->setDynamicTypeField('type'); |
170 | 170 | |
171 | - $callable = function (&$att) use ($before) { |
|
171 | + $callable = function(&$att) use ($before) { |
|
172 | 172 | if ($this instanceof AttachableInterface) { |
173 | 173 | $att->setContainerObj($this); |
174 | 174 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | |
184 | 184 | if ($before !== null) { |
185 | - call_user_func_array($before, [ &$att ]); |
|
185 | + call_user_func_array($before, [&$att]); |
|
186 | 186 | } |
187 | 187 | }; |
188 | 188 | $collection = $loader->loadFromQuery($query, $after, $callable->bindTo($this)); |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | $this->logger->warning( |
255 | 255 | 'AttachmentAwareTrait::removeJoins() is deprecated. '. |
256 | 256 | 'Use AttachmentAwareTrait::removeAttachmentJoins() instead.', |
257 | - [ 'package' => 'locomotivemtl/charcoal-attachment' ] |
|
257 | + ['package' => 'locomotivemtl/charcoal-attachment'] |
|
258 | 258 | ); |
259 | 259 | |
260 | 260 | return $this->removeAttachmentJoins(); |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | $defaults = $this->getDefaultAttachmentOptions(); |
375 | 375 | |
376 | 376 | $options = array_intersect_key($options, $defaults); |
377 | - $options = array_filter($options, [ $this, 'filterAttachmentOption' ], ARRAY_FILTER_USE_BOTH); |
|
377 | + $options = array_filter($options, [$this, 'filterAttachmentOption'], ARRAY_FILTER_USE_BOTH); |
|
378 | 378 | $options = array_replace($defaults, $options); |
379 | 379 | |
380 | 380 | return $options; |