Passed
Branch main (7d1bb3)
by Dante
07:23
created
Category
src/Model/Behavior/PlaceholdersBehavior.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $fields = $this->getConfig('fields', []);
113 113
         $anyDirty = array_reduce(
114 114
             $fields,
115
-            function (bool $isDirty, string $field) use ($entity): bool {
115
+            function(bool $isDirty, string $field) use ($entity): bool {
116 116
                 return $isDirty || $entity->isDirty($field);
117 117
             },
118 118
             false
@@ -158,10 +158,10 @@  discard block
 block discarded – undo
158 158
 
159 159
         return $table->find()
160 160
             ->select($fields)
161
-            ->where(function (QueryExpression $exp) use ($table, $pk, $ids): QueryExpression {
161
+            ->where(function(QueryExpression $exp) use ($table, $pk, $ids): QueryExpression {
162 162
                 return $exp->in($table->aliasField($pk), $ids);
163 163
             })
164
-            ->map(function (EntityInterface $entity) use ($pk, $placeholders): EntityInterface {
164
+            ->map(function(EntityInterface $entity) use ($pk, $placeholders): EntityInterface {
165 165
                 $id = $entity->get($pk);
166 166
                 foreach ($placeholders as $datum) {
167 167
                     if ($datum['id'] == $id) {
Please login to merge, or discard this patch.