@@ -48,8 +48,8 @@ |
||
48 | 48 | 'requests' => [ |
49 | 49 | 'requests-*' |
50 | 50 | ], |
51 | - 'external' => ['external'], |
|
52 | - 'messages' => ['*'], |
|
51 | + 'external' => [ 'external' ], |
|
52 | + 'messages' => [ '*' ], |
|
53 | 53 | /*{{domains}}*/ |
54 | 54 | ], |
55 | 55 |
@@ -50,8 +50,8 @@ |
||
50 | 50 | * goal is to provide ability to evaluate some functionality at compilation (not runtime) phase. |
51 | 51 | */ |
52 | 52 | 'environment' => [ |
53 | - 'language' => ['translator', 'getLocale'], |
|
54 | - 'basePath' => ['http', 'basePath'], |
|
53 | + 'language' => [ 'translator', 'getLocale' ], |
|
54 | + 'basePath' => [ 'http', 'basePath' ], |
|
55 | 55 | /*{{environment}}*/ |
56 | 56 | ], |
57 | 57 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | 'router' => [ |
65 | 65 | //You can use your own router or entirely replace http endpoint using option above |
66 | 66 | 'class' => Http\Routing\Router::class, |
67 | - 'options' => [] |
|
67 | + 'options' => [ ] |
|
68 | 68 | ], |
69 | 69 | |
70 | 70 | /* |
@@ -8,12 +8,12 @@ |
||
8 | 8 | |
9 | 9 | return [ |
10 | 10 | 'mutators' => [ |
11 | - 'timestamp' => ['accessor' => Accessors\SqlTimestamp::class], |
|
12 | - 'datetime' => ['accessor' => Accessors\SqlTimestamp::class], |
|
13 | - 'php:int' => ['setter' => 'intval', 'getter' => 'intval'], |
|
14 | - 'php:float' => ['setter' => 'floatval', 'getter' => 'floatval'], |
|
15 | - 'php:string' => ['setter' => 'strval'], |
|
16 | - 'php:bool' => ['setter' => 'boolval', 'getter' => 'boolval'], |
|
11 | + 'timestamp' => [ 'accessor' => Accessors\SqlTimestamp::class ], |
|
12 | + 'datetime' => [ 'accessor' => Accessors\SqlTimestamp::class ], |
|
13 | + 'php:int' => [ 'setter' => 'intval', 'getter' => 'intval' ], |
|
14 | + 'php:float' => [ 'setter' => 'floatval', 'getter' => 'floatval' ], |
|
15 | + 'php:string' => [ 'setter' => 'strval' ], |
|
16 | + 'php:bool' => [ 'setter' => 'boolval', 'getter' => 'boolval' ], |
|
17 | 17 | /*{{mutators}}*/ |
18 | 18 | ], |
19 | 19 | 'aliases' => [ |
@@ -15,19 +15,19 @@ |
||
15 | 15 | * Set of mutators to be applied for specific field types. |
16 | 16 | */ |
17 | 17 | 'mutators' => [ |
18 | - 'int' => ['setter' => 'intval'], |
|
19 | - 'float' => ['setter' => 'floatval'], |
|
20 | - 'string' => ['setter' => 'strval'], |
|
21 | - 'bool' => ['setter' => 'boolval'], |
|
18 | + 'int' => [ 'setter' => 'intval' ], |
|
19 | + 'float' => [ 'setter' => 'floatval' ], |
|
20 | + 'string' => [ 'setter' => 'strval' ], |
|
21 | + 'bool' => [ 'setter' => 'boolval' ], |
|
22 | 22 | |
23 | 23 | //Automatic casting of mongoID |
24 | - 'ObjectID' => ['setter' => [ODM::class, 'mongoID']], |
|
24 | + 'ObjectID' => [ 'setter' => [ ODM::class, 'mongoID' ] ], |
|
25 | 25 | |
26 | - 'array::string' => ['accessor' => ODMAccessors\StringArray::class], |
|
27 | - 'array::objectIDs' => ['accessor' => ODMAccessors\ObjectIDsArray::class], |
|
28 | - 'array::integer' => ['accessor' => ODMAccessors\IntegerArray::class], |
|
26 | + 'array::string' => [ 'accessor' => ODMAccessors\StringArray::class ], |
|
27 | + 'array::objectIDs' => [ 'accessor' => ODMAccessors\ObjectIDsArray::class ], |
|
28 | + 'array::integer' => [ 'accessor' => ODMAccessors\IntegerArray::class ], |
|
29 | 29 | |
30 | - 'timestamp' => ['accessor' => Accessors\UTCMongoTimestamp::class], |
|
30 | + 'timestamp' => [ 'accessor' => Accessors\UTCMongoTimestamp::class ], |
|
31 | 31 | /*{{mutators}}*/ |
32 | 32 | ], |
33 | 33 | /* |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | /* |
15 | 15 | * Manually registered set of commands. Use this section when locateCommands is off. |
16 | 16 | */ |
17 | - 'commands' => [], |
|
17 | + 'commands' => [ ], |
|
18 | 18 | |
19 | 19 | /* |
20 | 20 | * This set of commands will be executed when command "configure" run. You can declare command |
21 | 21 | * options, header and footer. |
22 | 22 | */ |
23 | 23 | 'configureSequence' => [ |
24 | - 'views:compile' => ['options' => []], |
|
24 | + 'views:compile' => [ 'options' => [ ] ], |
|
25 | 25 | /*{{sequence.configure}}*/ |
26 | 26 | ], |
27 | 27 | |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | * models with passive schemas. |
32 | 32 | */ |
33 | 33 | 'updateSequence' => [ |
34 | - 'odm:schema' => ['options' => []], |
|
35 | - 'orm:schema' => ['options' => []], |
|
34 | + 'odm:schema' => [ 'options' => [ ] ], |
|
35 | + 'orm:schema' => [ 'options' => [ ] ], |
|
36 | 36 | /*{{sequence.update}}*/ |
37 | 37 | ] |
38 | 38 | ]; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | 'default' => [ |
34 | 34 | 'server' => 'mongodb://localhost:27017', |
35 | 35 | 'database' => 'spiral-empty', |
36 | - 'options' => ['connect' => true] |
|
36 | + 'options' => [ 'connect' => true ] |
|
37 | 37 | ], |
38 | 38 | /*{{databases}}*/ |
39 | 39 | ] |
@@ -35,16 +35,16 @@ |
||
35 | 35 | */ |
36 | 36 | public function getSnapshots(): PaginableArray |
37 | 37 | { |
38 | - $order = []; |
|
39 | - $snapshots = []; |
|
38 | + $order = [ ]; |
|
39 | + $snapshots = [ ]; |
|
40 | 40 | |
41 | 41 | if (!$this->files->exists($this->config->reportingDirectory())) { |
42 | 42 | return new PaginableArray(); |
43 | 43 | } |
44 | 44 | |
45 | 45 | foreach ($this->files->getFiles($this->config->reportingDirectory(), '*.html') as $file) { |
46 | - $snapshots[] = new FileSnapshot($file); |
|
47 | - $order[] = $this->files->time($file); |
|
46 | + $snapshots[ ] = new FileSnapshot($file); |
|
47 | + $order[ ] = $this->files->time($file); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | array_multisort($order, SORT_DESC, $snapshots); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | <vault:guard permission="vault.snapshots.view"> |
36 | 36 | <vault:uri target="snapshots:view" icon="import_contacts" |
37 | 37 | class="btn teal waves-effect waves-light" |
38 | - options="<?= ['id' => $lastSnapshot->primaryKey()] ?>"> |
|
38 | + options="<?= [ 'id' => $lastSnapshot->primaryKey() ] ?>"> |
|
39 | 39 | [[View last]] |
40 | 40 | </vault:uri> |
41 | 41 | </vault:guard> |
@@ -95,13 +95,13 @@ discard block |
||
95 | 95 | <grid:cell style="text-align:right"> |
96 | 96 | <vault:guard permission="vault.snapshots.view"> |
97 | 97 | <vault:uri target="snapshots:view" icon="import_contacts" title="[[View snapshot]]" |
98 | - options="<?= ['id' => $entity->primaryKey()] ?>" |
|
98 | + options="<?= [ 'id' => $entity->primaryKey() ] ?>" |
|
99 | 99 | class="btn teal waves-effect"/> |
100 | 100 | </vault:guard> |
101 | 101 | <vault:guard permission="vault.snapshots.remove"> |
102 | 102 | <vault:uri target="snapshots:remove" icon="delete" title="[[Remove snapshot]]" |
103 | 103 | class="btn red waves-effect waves-light" |
104 | - options="<?= ['id' => $entity->primaryKey()] ?>"/> |
|
104 | + options="<?= [ 'id' => $entity->primaryKey() ] ?>"/> |
|
105 | 105 | </vault:guard> |
106 | 106 | </grid:cell> |
107 | 107 | </vault:grid> |