Passed
Branch master (7aa34e)
by Anton
03:08
created
Category
application/modules/push/controllers/grid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
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
     );
Please login to merge, or discard this patch.
application/modules/push/controllers/send.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
application/modules/push/controllers/crud.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  *
22 22
  * @return mixed
23 23
  */
24
-return function () {
24
+return function() {
25 25
     /**
26 26
      * @var Controller $this
27 27
      */
Please login to merge, or discard this patch.
application/modules/push/controllers/subscription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  *
20 20
  * @return mixed
21 21
  */
22
-return function () {
22
+return function() {
23 23
     /**
24 24
      * @var Controller $this
25 25
      */
Please login to merge, or discard this patch.
application/models/Push/Gateway.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
application/models/Push/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,5 +28,5 @@
 block discarded – undo
28 28
      * Primary key(s)
29 29
      * @var array
30 30
      */
31
-    protected $primary = ['id'];
31
+    protected $primary = [ 'id' ];
32 32
 }
Please login to merge, or discard this patch.
data/migrations/20181107154249_push.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.