Completed
Push — master ( f790fc...ff27c7 )
by Welling
03:53
created
src/BaseClientRemote.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
 
238 238
         if ($query) {
239 239
             $q = $request->getQuery();
240
-            foreach($query as $key => $value) {
240
+            foreach ($query as $key => $value) {
241 241
                 $q->set($key, $value);
242 242
             }
243 243
         }
Please login to merge, or discard this patch.
phpunit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__.'/vendor/autoload.php';
3
+require __DIR__ . '/vendor/autoload.php';
Please login to merge, or discard this patch.
src/ClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
248 248
         $acl = $this->container->get('acl');
249 249
         $adapter = $this->container->get('connection');
250 250
 
251
-        $emitter->addAction('table.insert.directus_groups', function ($data) use ($acl, $adapter) {
251
+        $emitter->addAction('table.insert.directus_groups', function($data) use ($acl, $adapter) {
252 252
             $privilegesTable = new DirectDirectusPrivilegesTableGateway($adapter, $acl);
253 253
 
254 254
             $privilegesTable->insertPrivilege([
Please login to merge, or discard this patch.
src/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $this->path = $path;
30 30
 
31
-        foreach($attributes as $attribute) {
31
+        foreach ($attributes as $attribute) {
32 32
             if (property_exists($this, $attribute)) {
33 33
                 $this->{$attribute} = $attribute;
34 34
             }
Please login to merge, or discard this patch.
src/Response/EntryCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         $rows = $this->pickRows($data);
48 48
         $items = [];
49
-        foreach($rows as $row) {
49
+        foreach ($rows as $row) {
50 50
             $items[] = new Entry($row);
51 51
         }
52 52
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function jsonSerialize()
170 170
     {
171
-        return (object) [
171
+        return (object)[
172 172
             'meta' => $this->metadata,
173 173
             'data' => $this->items
174 174
         ];
Please login to merge, or discard this patch.
src/Response/Entry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             $data = $data['data'];
54 54
         }
55 55
 
56
-        foreach($data as $field => $value) {
56
+        foreach ($data as $field => $value) {
57 57
             if (isset($value['rows']) || (isset($value['data']) && ArrayUtils::isNumericKeys($value['data']))) {
58 58
                 $this->data[$field] = new EntryCollection($value);
59 59
             } else if (is_array($value)) {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function jsonSerialize()
135 135
     {
136
-        return (object) [
136
+        return (object)[
137 137
             'metadata' => $this->getMetaData(),
138 138
             'data' => $this->getData()
139 139
         ];
Please login to merge, or discard this patch.
src/ClientLocal.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $tableGateway = $this->getTableGateway($tableName);
252 252
         $data = $this->processData($tableName, $data);
253 253
 
254
-        foreach($data as $key => $value) {
254
+        foreach ($data as $key => $value) {
255 255
             if ($value instanceof File) {
256 256
                 $data[$key] = $this->processFile($value);
257 257
             }
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         $tableGateway = $this->getTableGateway($tableName);
271 271
         $data = $this->processData($tableName, $data);
272 272
 
273
-        foreach($data as $key => $value) {
273
+        foreach ($data as $key => $value) {
274 274
             if ($value instanceof File) {
275 275
                 $data[$key] = $this->processFile($value);
276 276
             }
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
         $success = $tableGateway->dropColumn($name);
632 632
 
633 633
         $response = [
634
-            'success' => (bool) $success
634
+            'success' => (bool)$success
635 635
         ];
636 636
 
637 637
         if (!$success) {
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
         $success = $tableGateway->drop();
661 661
 
662 662
         $response = [
663
-            'success' => (bool) $success
663
+            'success' => (bool)$success
664 664
         ];
665 665
 
666 666
         if (!$success) {
Please login to merge, or discard this patch.