Completed
Push — master ( f790fc...ff27c7 )
by Welling
03:53
created
src/BaseClientRemote.php 2 patches
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.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -247,8 +247,8 @@
 block discarded – undo
247 247
     /**
248 248
      * Perform a HTTP Request
249 249
      *
250
-     * @param $method
251
-     * @param $path
250
+     * @param string $method
251
+     * @param string $path
252 252
      * @param array $params
253 253
      *
254 254
      * @return Entry|EntryCollection
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,9 @@
 block discarded – undo
13 13
         $data = [];
14 14
         foreach ($array as $name => $value) {
15 15
             $row = ['name' => $name, 'value' => $value];
16
-            if (isset($keys)) $row = array_merge($row, $keys);
16
+            if (isset($keys)) {
17
+                $row = array_merge($row, $keys);
18
+            }
17 19
             array_push($data, $row);
18 20
         }
19 21
 
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 2 patches
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.
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * ClientLocal constructor.
49 49
      *
50
-     * @param $connection
50
+     * @param Connection $connection
51 51
      */
52 52
     public function __construct($connection)
53 53
     {
@@ -246,6 +246,7 @@  discard block
 block discarded – undo
246 246
 
247 247
     /**
248 248
      * @inheritDoc
249
+     * @param string $tableName
249 250
      */
250 251
     public function createItem($tableName, array $data)
251 252
     {
@@ -265,6 +266,7 @@  discard block
 block discarded – undo
265 266
 
266 267
     /**
267 268
      * @inheritDoc
269
+     * @param string $tableName
268 270
      */
269 271
     public function updateItem($tableName, $id, array $data)
270 272
     {
Please login to merge, or discard this patch.
src/ClientRemote.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -195,6 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
     /**
197 197
      * @inheritdoc
198
+     * @param string $tableName
198 199
      */
199 200
     public function createItem($tableName, array $data)
200 201
     {
@@ -206,6 +207,7 @@  discard block
 block discarded – undo
206 207
 
207 208
     /**
208 209
      * @inheritdoc
210
+     * @param string $tableName
209 211
      */
210 212
     public function updateItem($tableName, $id, array $data)
211 213
     {
Please login to merge, or discard this patch.