@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | 'thumbnail_size', 'thumbnail_quality', 'thumbnail_crop_enabled' |
| 215 | 215 | ]); |
| 216 | 216 | }); |
| 217 | - $container->set('app.settings', function (Container $container) { |
|
| 217 | + $container->set('app.settings', function(Container $container) { |
|
| 218 | 218 | $DirectusSettingsTableGateway = new \Zend\Db\TableGateway\TableGateway('directus_settings', $container->get('zendDb')); |
| 219 | 219 | $rowSet = $DirectusSettingsTableGateway->select(); |
| 220 | 220 | |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | return $settings; |
| 227 | 227 | }); |
| 228 | 228 | |
| 229 | - $container->singleton('hashManager', function () { |
|
| 229 | + $container->singleton('hashManager', function() { |
|
| 230 | 230 | return new HashManager(); |
| 231 | 231 | }); |
| 232 | 232 | |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | $acl = $this->container->get('acl'); |
| 270 | 270 | $adapter = $this->container->get('connection'); |
| 271 | 271 | |
| 272 | - $emitter->addAction('table.insert.directus_groups', function ($data) use ($acl, $adapter) { |
|
| 272 | + $emitter->addAction('table.insert.directus_groups', function($data) use ($acl, $adapter) { |
|
| 273 | 273 | $privilegesTable = new DirectDirectusPrivilegesTableGateway($adapter, $acl); |
| 274 | 274 | |
| 275 | 275 | $privilegesTable->insertPrivilege([ |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | ]); |
| 286 | 286 | }); |
| 287 | 287 | |
| 288 | - $emitter->addFilter('table.insert.directus_files:before', function ($payload) { |
|
| 288 | + $emitter->addFilter('table.insert.directus_files:before', function($payload) { |
|
| 289 | 289 | unset($payload['data']); |
| 290 | 290 | $payload['user'] = 1; |
| 291 | 291 | |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | // Add file url and thumb url |
| 296 | 296 | $config = $this->container->get('config'); |
| 297 | 297 | $files = $this->container->get('files'); |
| 298 | - $emitter->addFilter('table.select', function ($payload) use ($config, $files) { |
|
| 298 | + $emitter->addFilter('table.select', function($payload) use ($config, $files) { |
|
| 299 | 299 | $selectState = $payload->attribute('selectState'); |
| 300 | 300 | |
| 301 | 301 | if ($selectState['table'] == 'directus_files') { |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | $tableGateway = $this->getTableGateway($tableName); |
| 254 | 254 | $data = $this->processData($tableName, $data); |
| 255 | 255 | |
| 256 | - foreach($data as $key => $value) { |
|
| 256 | + foreach ($data as $key => $value) { |
|
| 257 | 257 | if ($value instanceof File) { |
| 258 | 258 | $data[$key] = $this->processFile($value); |
| 259 | 259 | } |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | $tableGateway = $this->getTableGateway($tableName); |
| 273 | 273 | $data = $this->processData($tableName, $data); |
| 274 | 274 | |
| 275 | - foreach($data as $key => $value) { |
|
| 275 | + foreach ($data as $key => $value) { |
|
| 276 | 276 | if ($value instanceof File) { |
| 277 | 277 | $data[$key] = $this->processFile($value); |
| 278 | 278 | } |
@@ -637,7 +637,7 @@ discard block |
||
| 637 | 637 | $success = $tableGateway->dropColumn($name); |
| 638 | 638 | |
| 639 | 639 | $response = [ |
| 640 | - 'success' => (bool) $success |
|
| 640 | + 'success' => (bool)$success |
|
| 641 | 641 | ]; |
| 642 | 642 | |
| 643 | 643 | if (!$success) { |
@@ -666,7 +666,7 @@ discard block |
||
| 666 | 666 | $success = $tableGateway->drop(); |
| 667 | 667 | |
| 668 | 668 | $response = [ |
| 669 | - 'success' => (bool) $success |
|
| 669 | + 'success' => (bool)$success |
|
| 670 | 670 | ]; |
| 671 | 671 | |
| 672 | 672 | if (!$success) { |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | */ |
| 695 | 695 | public function getRandom(array $options = []) |
| 696 | 696 | { |
| 697 | - $length = (int) ArrayUtils::get($options, 'length', 32); |
|
| 697 | + $length = (int)ArrayUtils::get($options, 'length', 32); |
|
| 698 | 698 | |
| 699 | 699 | return $this->createResponseFromData([ |
| 700 | 700 | 'success' => true, |