Passed
Branch master (c6bc19)
by Riikka
03:17
created
Category
src/Repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
      */
234 234
     protected function fillRelationships(array $models, array $relationships): void
235 235
     {
236
-        $records = array_map(function (Model $model): Record {
236
+        $records = array_map(function(Model $model): Record {
237 237
             return $model->getDatabaseRecord();
238 238
         }, array_values($models));
239 239
 
Please login to merge, or discard this patch.
src/Connection/MySqlConnection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             $format .= ' AS %3$s';
100 100
         }
101 101
 
102
-        return implode(', ', array_map(function (string $field) use ($format, $table, $prefix): string {
102
+        return implode(', ', array_map(function(string $field) use ($format, $table, $prefix): string {
103 103
             return sprintf(
104 104
                 $format,
105 105
                 $this->escapeIdentifier($table),
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
         if (\is_array($value)) {
158 158
             if (\in_array(null, $value, true)) {
159
-                $value = array_filter($value, function ($value): bool {
159
+                $value = array_filter($value, function($value): bool {
160 160
                     return $value !== null;
161 161
                 });
162 162
 
Please login to merge, or discard this patch.
src/Relationship.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         array $referencedFields,
51 51
         bool $unique
52 52
     ) {
53
-        $formatStrings = function (string ... $strings): array {
53
+        $formatStrings = function(string ... $strings): array {
54 54
             return $strings;
55 55
         };
56 56
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     {
150 150
         $reverse = array_filter(
151 151
             $this->referencedSchema->getRelationships(),
152
-            function (self $relationship): bool {
152
+            function(self $relationship): bool {
153 153
                 return $this->isReverseRelationship($relationship);
154 154
             }
155 155
         );
Please login to merge, or discard this patch.
src/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
     {
172 172
         $name = $this->getSchema()->getRelationship($name)->getName();
173 173
 
174
-        (function (self ... $records) use ($name): void {
174
+        (function(self ... $records) use ($name): void {
175 175
             $this->referencedRecords[$name] = $records;
176 176
         })(... $records);
177 177
     }
Please login to merge, or discard this patch.