@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | return [ |
184 | 184 | 'status' => 200, |
185 | 185 | 'message' => $this->say('Snapshot deleted.'), |
186 | - 'action' => ['redirect' => $uri] |
|
186 | + 'action' => [ 'redirect' => $uri ] |
|
187 | 187 | ]; |
188 | 188 | } else { |
189 | 189 | return $this->responses->redirect($uri); |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | return [ |
231 | 231 | 'status' => 200, |
232 | 232 | 'message' => $this->say('Snapshots deleted.'), |
233 | - 'action' => ['redirect' => $uri] |
|
233 | + 'action' => [ 'redirect' => $uri ] |
|
234 | 234 | ]; |
235 | 235 | } else { |
236 | 236 | return $this->responses->redirect($uri); |
@@ -273,12 +273,12 @@ discard block |
||
273 | 273 | |
274 | 274 | $snapshotSource->delete($snapshot); |
275 | 275 | |
276 | - $uri = $this->vault->uri('snapshots:edit', ['id' => $aggregation->id]); |
|
276 | + $uri = $this->vault->uri('snapshots:edit', [ 'id' => $aggregation->id ]); |
|
277 | 277 | if ($this->input->isAjax()) { |
278 | 278 | return [ |
279 | 279 | 'status' => 200, |
280 | 280 | 'message' => $this->say('Snapshot deleted.'), |
281 | - 'action' => ['redirect' => $uri] |
|
281 | + 'action' => [ 'redirect' => $uri ] |
|
282 | 282 | ]; |
283 | 283 | } else { |
284 | 284 | return $this->responses->redirect($uri); |
@@ -57,8 +57,8 @@ |
||
57 | 57 | * {@inheritdoc} |
58 | 58 | */ |
59 | 59 | protected $indexes = [ |
60 | - [self::UNIQUE, 'exception_hash'], |
|
61 | - [self::INDEX, 'exception_teaser'] |
|
60 | + [ self::UNIQUE, 'exception_hash' ], |
|
61 | + [ self::INDEX, 'exception_teaser' ] |
|
62 | 62 | ]; |
63 | 63 | |
64 | 64 | /** |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function findWithSnapshots() |
32 | 32 | { |
33 | - return $this->find()->where(['count_stored' => ['>=' => 1]]); |
|
33 | + return $this->find()->where([ 'count_stored' => [ '>=' => 1 ] ]); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -53,7 +53,7 @@ |
||
53 | 53 | ]; |
54 | 54 | |
55 | 55 | if (!empty($aggregation)) { |
56 | - $where['aggregation_id'] = $aggregation->id; |
|
56 | + $where[ 'aggregation_id' ] = $aggregation->id; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | return $this->find($where); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | // 'aggregation_id' => 'bigint', |
41 | 41 | 'aggregation' => [ |
42 | 42 | self::BELONGS_TO => Aggregation::class, |
43 | - self::INVERSE => [self::HAS_MANY, 'snapshots'] |
|
43 | + self::INVERSE => [ self::HAS_MANY, 'snapshots' ] |
|
44 | 44 | ], |
45 | 45 | |
46 | 46 | //exception fields |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * {@inheritdoc} |
58 | 58 | */ |
59 | 59 | protected $indexes = [ |
60 | - [self::INDEX, 'exception_hash'] |
|
60 | + [ self::INDEX, 'exception_hash' ] |
|
61 | 61 | ]; |
62 | 62 | |
63 | 63 | /** |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | <?php if ($snapshot->stored()) { ?> |
18 | 18 | <vault:uri target="snapshots:removeSnapshot" icon="delete" |
19 | 19 | class="btn red waves-effect waves-light" |
20 | - options="<?= ['id' => $snapshot->id] ?>"> |
|
20 | + options="<?= [ 'id' => $snapshot->id ] ?>"> |
|
21 | 21 | [[Remove]] |
22 | 22 | </vault:uri> |
23 | 23 | <?php } ?> |
24 | 24 | |
25 | 25 | <vault:uri target="snapshots:edit" class="btn-flat teal-text waves-effect" |
26 | - post-icon="trending_flat" options="<?= ['id' => $snapshot->aggregation_id] ?>"> |
|
26 | + post-icon="trending_flat" options="<?= [ 'id' => $snapshot->aggregation_id ] ?>"> |
|
27 | 27 | [[BACK]] |
28 | 28 | </vault:uri> |
29 | 29 | </define:actions> |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | break; |
48 | 48 | default: |
49 | 49 | ?> |
50 | - <iframe src="<?= vault()->uri('snapshots:iframe', ['id' => $snapshot->id]) ?>" |
|
50 | + <iframe src="<?= vault()->uri('snapshots:iframe', [ 'id' => $snapshot->id ]) ?>" |
|
51 | 51 | width="100%" height="100%" frameborder="0" scrolling="no" |
52 | 52 | onload="javascript:resizeIframe(this);"></iframe> |
53 | 53 | <?php } ?> |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | </vault:uri> |
15 | 15 | |
16 | 16 | <vault:uri target="snapshots:edit" icon="edit" class="btn teal waves-effect waves-light" |
17 | - options="<?= ['id' => $lastSnapshot->id] ?>"> |
|
17 | + options="<?= [ 'id' => $lastSnapshot->id ] ?>"> |
|
18 | 18 | [[View last]] |
19 | 19 | </vault:uri> |
20 | 20 | <?php } ?> |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | </grid:cell> |
56 | 56 | |
57 | 57 | <grid:cell style="text-align:right"> |
58 | - <vault:uri target="snapshots:edit" icon="edit" options="<?= ['id' => $entity->id] ?>" |
|
58 | + <vault:uri target="snapshots:edit" icon="edit" options="<?= [ 'id' => $entity->id ] ?>" |
|
59 | 59 | class="btn-flat waves-effect"/> |
60 | 60 | </grid:cell> |
61 | 61 | <grid:cell style="text-align:right"> |
62 | 62 | <vault:uri target="snapshots:removeSnapshots" icon="delete" |
63 | 63 | class="btn red waves-effect waves-light" |
64 | - options="<?= ['id' => $entity->id] ?>"></vault:uri> |
|
64 | + options="<?= [ 'id' => $entity->id ] ?>"></vault:uri> |
|
65 | 65 | </grid:cell> |
66 | 66 | </vault:grid> |
67 | 67 | </define:content> |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | <?php if (!empty($aggregation->count_stored)) { ?> |
20 | 20 | <vault:uri target="snapshots:removeSnapshots" icon="delete" |
21 | 21 | class="btn red waves-effect waves-light" |
22 | - options="<?= ['id' => $aggregation->id] ?>"> |
|
22 | + options="<?= [ 'id' => $aggregation->id ] ?>"> |
|
23 | 23 | [[Remove all]] |
24 | 24 | </vault:uri> |
25 | 25 | <?php } ?> |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | ?> |
98 | 98 | <?php if (!empty($snapshot)) { ?> |
99 | 99 | <p class="card-panel-title">[[You have only one snapshot occurred.]]</p> |
100 | - <iframe src="<?= vault()->uri('snapshots:iframe', ['id' => $snapshot->id]) ?>" width="100%" |
|
100 | + <iframe src="<?= vault()->uri('snapshots:iframe', [ 'id' => $snapshot->id ]) ?>" width="100%" |
|
101 | 101 | height="100%" frameborder="0" scrolling="no" |
102 | 102 | onload="javascript:resizeIframe(this);"></iframe> |
103 | 103 | <?php } else { ?> |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | <grid:cell style="text-align:right"> |
117 | 117 | <?php if ($entity->stored()) { ?> |
118 | 118 | <vault:uri target="snapshots:snapshot" icon="edit" class="btn-flat waves-effect" |
119 | - options="<?= ['id' => $entity->id] ?>"/> |
|
119 | + options="<?= [ 'id' => $entity->id ] ?>"/> |
|
120 | 120 | <?php } ?> |
121 | 121 | </grid:cell> |
122 | 122 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | <?php if ($entity->stored()) { ?> |
125 | 125 | <vault:uri target="snapshots:removeSnapshot" icon="delete" |
126 | 126 | class="btn red waves-effect waves-light" |
127 | - options="<?= ['id' => $entity->id] ?>"> |
|
127 | + options="<?= [ 'id' => $entity->id ] ?>"> |
|
128 | 128 | [[Remove]] |
129 | 129 | </vault:uri> |
130 | 130 | <?php } ?> |