Passed
Branch master (de2eca)
by Sergey
08:58
created
src/ProxyDBCounterExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function updateProxy(ProxyGenerator &$proxy)
24 24
     {
25 25
         // In the closure, $this is the proxied database
26
-        $callback = function ($args, $next) {
26
+        $callback = function($args, $next) {
27 27
 
28 28
             // The first argument is always the sql query
29 29
             $sql = $args[0];
Please login to merge, or discard this patch.
src/EagerLoadedDataList.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         return array_filter(
64 64
             $this->withList,
65
-            function ($dep) use ($list) {
65
+            function($dep) use ($list) {
66 66
                 return array_key_exists($dep[0], $list);
67 67
             }
68 68
         );
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             $fields[] = "{$dep}ID";
124 124
         }
125 125
         $table = Config::forClass($this->dataClass)->get('table_name');
126
-        $data = new SQLSelect(implode(',', $fields), [$table], ["ID IN (" . implode(',', $ids) . ")"]);
126
+        $data = new SQLSelect(implode(',', $fields), [$table], ["ID IN (".implode(',', $ids).")"]);
127 127
         $data = Utils::EnsureArray($data->execute(), 'ID');
128 128
 
129 129
         foreach ($withHasOnes as $depSeq) {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             while (count($uniqueIDs)) {
144 144
                 $IDsubset = array_splice($uniqueIDs, 0, self::ID_LIMIT);
145 145
                 $result = DataObject::get($depClass)->filter('ID', $IDsubset);
146
-                if (count($depSeq)>1) {
146
+                if (count($depSeq) > 1) {
147 147
                     $result = $result
148 148
                         ->with(implode('.', array_slice($depSeq, 1)));
149 149
                 }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                 'map' => [],
175 175
             ];
176 176
             $result = DataObject::get($depClass)->filter($depKey, $data);
177
-            if (count($depSeq)>1) {
177
+            if (count($depSeq) > 1) {
178 178
                 $result = $result
179 179
                     ->with(implode('.', array_slice($depSeq, 1)));
180 180
             }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                 implode(',', [$component['childField'], $component['parentField']]),
214 214
                 $component['join'],
215 215
                 [
216
-                    $component['parentField'] . ' IN (' . implode(',', $data) . ')'
216
+                    $component['parentField'].' IN ('.implode(',', $data).')'
217 217
                 ]
218 218
             )->execute();
219 219
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             }
231 231
 
232 232
             $result = DataObject::get($depClass)->filter('ID', array_keys($relListReverted));
233
-            if (count($depSeq)>1) {
233
+            if (count($depSeq) > 1) {
234 234
                 $result = $result
235 235
                     ->with(implode('.', array_slice($depSeq, 1)));
236 236
             }
Please login to merge, or discard this patch.
src/DataFilterEagerLoadingExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             $list = [$list];
23 23
         }
24 24
         $list = array_map(
25
-            function ($e) {
25
+            function($e) {
26 26
                 return explode('.', $e);
27 27
             },
28 28
             $list
Please login to merge, or discard this patch.