@@ -19,14 +19,14 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @return mixed |
| 21 | 21 | */ |
| 22 | -return function () { |
|
| 22 | +return function() { |
|
| 23 | 23 | /** |
| 24 | 24 | * @var Controller $this |
| 25 | 25 | */ |
| 26 | 26 | Layout::setTemplate('dashboard.phtml'); |
| 27 | 27 | Layout::breadCrumbs( |
| 28 | 28 | [ |
| 29 | - Layout::ahref('Dashboard', ['dashboard', 'index']), |
|
| 29 | + Layout::ahref('Dashboard', [ 'dashboard', 'index' ]), |
|
| 30 | 30 | __('Media') |
| 31 | 31 | ] |
| 32 | 32 | ); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @return mixed |
| 24 | 24 | */ |
| 25 | -return function ($id, $message = null) { |
|
| 25 | +return function($id, $message = null) { |
|
| 26 | 26 | /** |
| 27 | 27 | * @var Controller $this |
| 28 | 28 | * @var Row $push |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @return mixed |
| 23 | 23 | */ |
| 24 | -return function () { |
|
| 24 | +return function() { |
|
| 25 | 25 | /** |
| 26 | 26 | * @var Controller $this |
| 27 | 27 | */ |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @return mixed |
| 21 | 21 | */ |
| 22 | -return function () { |
|
| 22 | +return function() { |
|
| 23 | 23 | /** |
| 24 | 24 | * @var Controller $this |
| 25 | 25 | */ |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | */ |
| 90 | 90 | public static function sendByUserId($userId, $message): void |
| 91 | 91 | { |
| 92 | - $pushes = Table::findWhere(['userId' => $userId]); |
|
| 92 | + $pushes = Table::findWhere([ 'userId' => $userId ]); |
|
| 93 | 93 | |
| 94 | 94 | foreach ($pushes as $push) { |
| 95 | 95 | self::sendPush($push, $message); |
@@ -28,5 +28,5 @@ |
||
| 28 | 28 | * Primary key(s) |
| 29 | 29 | * @var array |
| 30 | 30 | */ |
| 31 | - protected $primary = ['id']; |
|
| 31 | + protected $primary = [ 'id' ]; |
|
| 32 | 32 | } |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | $table = $this->table('push'); |
| 34 | 34 | $table |
| 35 | 35 | ->addColumn('userId', 'integer') |
| 36 | - ->addColumn('authToken', 'string', ['length' => 255]) |
|
| 37 | - ->addColumn('contentEncoding', 'string', ['length' => 255]) |
|
| 36 | + ->addColumn('authToken', 'string', [ 'length' => 255 ]) |
|
| 37 | + ->addColumn('contentEncoding', 'string', [ 'length' => 255 ]) |
|
| 38 | 38 | ->addColumn('endpoint', 'text') |
| 39 | 39 | ->addColumn('publicKey', 'text') |
| 40 | 40 | ->addTimestamps('created', 'updated') |