| @@ -39,13 +39,13 @@ | ||
| 39 | 39 | <grid:cell style="text-align:right"> | 
| 40 | 40 | <vault:guard permission="vault.snapshots.view"> | 
| 41 | 41 | <vault:uri target="snapshots:view" icon="edit" | 
| 42 | - options="<?= ['filename' => $entity->id()] ?>" | |
| 42 | + options="<?= [ 'filename' => $entity->id() ] ?>" | |
| 43 | 43 | class="btn-flat waves-effect"/> | 
| 44 | 44 | </vault:guard> | 
| 45 | 45 | <vault:guard permission="vault.snapshots.remove"> | 
| 46 | 46 | <vault:uri target="snapshots:remove" icon="delete" | 
| 47 | 47 | class="btn red waves-effect waves-light" | 
| 48 | - options="<?= ['filename' => $entity->id()] ?>"/> | |
| 48 | + options="<?= [ 'filename' => $entity->id() ] ?>"/> | |
| 49 | 49 | </vault:guard> | 
| 50 | 50 | </grid:cell> | 
| 51 | 51 | </vault:grid> | 
| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 | <define:actions> | 
| 29 | 29 | <vault:guard permission="vault.snapshots.remove"> | 
| 30 | 30 | <vault:uri target="snapshots:remove" icon="delete" class="btn red waves-effect waves-light" | 
| 31 | - options="<?= ['filename' => $snapshot->id(), 'backToList' => 1] ?>"> | |
| 31 | + options="<?= [ 'filename' => $snapshot->id(), 'backToList' => 1 ] ?>"> | |
| 32 | 32 | [[Remove]] | 
| 33 | 33 | </vault:uri> | 
| 34 | 34 | </vault:guard> | 
| @@ -46,7 +46,7 @@ discard block | ||
| 46 | 46 | </vault:card> | 
| 47 | 47 | <vault:block> | 
| 48 | 48 |              <iframe src="<?= vault()->uri('snapshots:iframe', | 
| 49 | - ['filename' => $snapshot->id()]) ?>" width="100%" height="100%" frameborder="0" | |
| 49 | + [ 'filename' => $snapshot->id() ]) ?>" width="100%" height="100%" frameborder="0" | |
| 50 | 50 | scrolling="no" onload="javascript:resizeIframe(this);"></iframe> | 
| 51 | 51 | </vault:block> | 
| 52 | 52 | </vault:guard> | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | <vault:guard permission="vault.snapshots.view"> | 
| 36 | 36 | <vault:uri target="snapshots:view" icon="edit" | 
| 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,7 +95,7 @@ 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="edit" | 
| 98 | - options="<?= ['id' => $entity->primaryKey()] ?>" | |
| 98 | + options="<?= [ 'id' => $entity->primaryKey() ] ?>" | |
| 99 | 99 | class="btn-flat waves-effect"/> | 
| 100 | 100 | </vault:guard> | 
| 101 | 101 | </grid:cell> | 
| @@ -103,7 +103,7 @@ discard block | ||
| 103 | 103 | <vault:guard permission="vault.snapshots.remove"> | 
| 104 | 104 | <vault:uri target="snapshots:remove" icon="delete" | 
| 105 | 105 | class="btn red waves-effect waves-light" | 
| 106 | - options="<?= ['id' => $entity->primaryKey()] ?>"/> | |
| 106 | + options="<?= [ 'id' => $entity->primaryKey() ] ?>"/> | |
| 107 | 107 | </vault:guard> | 
| 108 | 108 | </grid:cell> | 
| 109 | 109 | </vault:grid> | 
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 |          <?php if ($incident->status->isStored()) { ?> | 
| 24 | 24 | <vault:uri target="snapshots:suppressIncident" class="btn teal waves-effect waves-light" | 
| 25 | 25 | options="<?= [ | 
| 26 | - 'id' => $snapshot->primaryKey(), | |
| 27 | - 'incident' => $incident->primaryKey() | |
| 28 | - ] ?>">[[Suppress]] | |
| 26 | + 'id' => $snapshot->primaryKey(), | |
| 27 | + 'incident' => $incident->primaryKey() | |
| 28 | + ] ?>">[[Suppress]] | |
| 29 | 29 | </vault:uri> | 
| 30 | 30 | <?php } ?> | 
| 31 | 31 | |
| @@ -30,7 +30,7 @@ | ||
| 30 | 30 | <?php } ?> | 
| 31 | 31 | |
| 32 | 32 | <vault:uri target="snapshots:view" class="btn-flat teal-text waves-effect" | 
| 33 | - post-icon="trending_flat" options="<?= ['id' => $snapshot->primaryKey()] ?>"> | |
| 33 | + post-icon="trending_flat" options="<?= [ 'id' => $snapshot->primaryKey() ] ?>"> | |
| 34 | 34 | [[BACK]] | 
| 35 | 35 | </vault:uri> | 
| 36 | 36 | </vault:guard> | 
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 |          <?php if ($selector->count()) { ?> | 
| 37 | 37 | <vault:uri target="snapshots:remove" icon="delete" | 
| 38 | 38 | class="btn red waves-effect waves-light" | 
| 39 | - options="<?= ['id' => $snapshot->primaryKey(), 'backToList' => 1] ?>"> | |
| 39 | + options="<?= [ 'id' => $snapshot->primaryKey(), 'backToList' => 1 ] ?>"> | |
| 40 | 40 | [[Remove]] | 
| 41 | 41 | </vault:uri> | 
| 42 | 42 | <?php } ?> | 
| @@ -52,7 +52,7 @@ discard block | ||
| 52 | 52 | <vault:guard permission="vault.snapshots.view"> | 
| 53 | 53 | <vault:block> | 
| 54 | 54 |                      <iframe src="<?= vault()->uri('snapshots:iframe', | 
| 55 | - ['id' => $snapshot->primaryKey()]) ?>" width="100%" height="100%" | |
| 55 | + [ 'id' => $snapshot->primaryKey() ]) ?>" width="100%" height="100%" | |
| 56 | 56 | frameborder="0" scrolling="no" | 
| 57 | 57 | onload="javascript:resizeIframe(this);"></iframe> | 
| 58 | 58 | </vault:block> | 
| @@ -64,7 +64,7 @@ | ||
| 64 | 64 |       * {@inheritdoc} | 
| 65 | 65 | */ | 
| 66 | 66 | const INDEXES = [ | 
| 67 | - [self::INDEX, 'exception_hash'], | |
| 67 | + [ self::INDEX, 'exception_hash' ], | |
| 68 | 68 | ]; | 
| 69 | 69 | |
| 70 | 70 | /** | 
| @@ -58,7 +58,7 @@ | ||
| 58 | 58 |       * {@inheritdoc} | 
| 59 | 59 | */ | 
| 60 | 60 | const INDEXES = [ | 
| 61 | - [self::UNIQUE, 'exception_hash'], | |
| 61 | + [ self::UNIQUE, 'exception_hash' ], | |
| 62 | 62 | ]; | 
| 63 | 63 | |
| 64 | 64 | /** | 
| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | /** | 
| 18 | 18 | * Values. | 
| 19 | 19 | */ | 
| 20 | - const VALUES = [self::STORED, self::DELETED, self::SUPPRESSED, self::LAST]; | |
| 20 | + const VALUES = [ self::STORED, self::DELETED, self::SUPPRESSED, self::LAST ]; | |
| 21 | 21 | |
| 22 | 22 | /** | 
| 23 | 23 | * Default values. | 
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 |      { | 
| 24 | 24 | $where = [ | 
| 25 | 25 | 'status' => [ | 
| 26 | - 'IN' => new Parameter([IncidentStatus::LAST, IncidentStatus::STORED]) | |
| 26 | + 'IN' => new Parameter([ IncidentStatus::LAST, IncidentStatus::STORED ]) | |
| 27 | 27 | ] | 
| 28 | 28 | ]; | 
| 29 | 29 | |
| @@ -72,7 +72,7 @@ discard block | ||
| 72 | 72 | * @param array $load | 
| 73 | 73 | * @return null|IncidentRecord | 
| 74 | 74 | */ | 
| 75 | - public function findStoredBySnapshotByPK(SnapshotRecord $snapshotRecord, $id, array $load = []) | |
| 75 | + public function findStoredBySnapshotByPK(SnapshotRecord $snapshotRecord, $id, array $load = [ ]) | |
| 76 | 76 |      { | 
| 77 | 77 | /** @var IncidentRecord $incident */ | 
| 78 | 78 | $incident = $this->findByPK($id, $load); | 
| @@ -93,7 +93,7 @@ discard block | ||
| 93 | 93 | * @param array $load | 
| 94 | 94 | * @return null|IncidentRecord | 
| 95 | 95 | */ | 
| 96 | - public function findBySnapshotByPK(SnapshotRecord $snapshotRecord, $id, array $load = []) | |
| 96 | + public function findBySnapshotByPK(SnapshotRecord $snapshotRecord, $id, array $load = [ ]) | |
| 97 | 97 |      { | 
| 98 | 98 | /** @var IncidentRecord $incident */ | 
| 99 | 99 | $incident = $this->findByPK($id, $load); |