@@ -237,7 +237,7 @@ |
||
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 | } |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__.'/vendor/autoload.php'; |
|
3 | +require __DIR__ . '/vendor/autoload.php'; |
@@ -248,7 +248,7 @@ |
||
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([ |
@@ -28,7 +28,7 @@ |
||
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 | } |
@@ -46,7 +46,7 @@ discard block |
||
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 |
||
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 | ]; |
@@ -53,7 +53,7 @@ discard block |
||
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 |
||
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 | ]; |
@@ -251,7 +251,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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) { |