Completed
Push — master ( 5b5792...2b84bd )
by Schlaefer
03:33 queued 11s
created
config/Seeds/SmiliesSeed.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function run()
20 20
     {
21 21
         $data =
22
-          [
22
+            [
23 23
             [
24 24
                 'id' => 1,
25 25
                 'sort' => 1,
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 'sort' => 17,
106 106
                 'icon' => 'angry',
107 107
             ]
108
-          ];
108
+            ];
109 109
 
110 110
         $table = $this->table('smilies');
111 111
         $table->insert($data)->save();
Please login to merge, or discard this patch.
plugins/Api/src/Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Saito - The Threaded Web Forum
Please login to merge, or discard this patch.
plugins/SaitoSearch/tests/TestCase/Controller/SearchesControllerTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 use Saito\Exception\SaitoForbiddenException;
16 16
 use Saito\Test\IntegrationTestCase;
17 17
 
18
- /*
18
+    /*
19 19
 class SearchesMockController extends SearchesController
20 20
 {
21 21
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Saito - The Threaded Web Forum
Please login to merge, or discard this patch.
plugins/SaitoSearch/src/Model/Behavior/SaitoSearchBehavior.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Saito - The Threaded Web Forum
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $minWordLength = $connection
94 94
             ->execute("SHOW VARIABLES LIKE 'ft_min_word_len'")
95 95
             ->fetch()[1];
96
-        $options['searchTerm']->setMinWordLength((int)$minWordLength);
96
+        $options['searchTerm']->setMinWordLength((int) $minWordLength);
97 97
 
98 98
         $query
99 99
             ->where(['Entries.category_id IN' => $options['categories']])
Please login to merge, or discard this patch.
plugins/Bookmarks/tests/TestCase/Controller/BookmarksControllerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Saito - The Threaded Web Forum
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $this->get('api/v2/bookmarks');
61 61
 
62
-        $response = json_decode((string)$this->_response->getBody(), true);
62
+        $response = json_decode((string) $this->_response->getBody(), true);
63 63
 
64 64
         $this->assertNotEmpty($response['data'][0]['attributes']['threadline_html']);
65 65
         $response = Hash::remove($response, 'data.{n}.attributes.threadline_html');
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         $this->assertTrue($this->Bookmarks->exists(['entry_id' => 4, 'user_id' => 3]));
210 210
 
211 211
         $this->assertResponseCode(200);
212
-        $response = json_decode((string)$this->_response->getBody(), true);
212
+        $response = json_decode((string) $this->_response->getBody(), true);
213 213
         $expected = [
214 214
             'data' => [
215 215
                 'id' => 6,
Please login to merge, or discard this patch.
plugins/Bookmarks/src/Controller/BookmarksController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Saito - The Threaded Web Forum
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function edit($id)
86 86
     {
87
-        $id = (int)$id;
87
+        $id = (int) $id;
88 88
         $bookmark = $this->getBookmark($id);
89 89
 
90 90
         $this->Bookmarks->patchEntity(
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function delete($id)
111 111
     {
112
-        $id = (int)$id;
112
+        $id = (int) $id;
113 113
         $bookmark = $this->getBookmark($id);
114 114
         if (!$this->Bookmarks->delete($bookmark)) {
115 115
             throw new GenericApiException('The bookmark could not be deleted.');
Please login to merge, or discard this patch.
plugins/Admin/src/Controller/UsersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      */
73 73
     public function delete($id)
74 74
     {
75
-        $id = (int)$id;
75
+        $id = (int) $id;
76 76
         $exists = $this->Users->exists($id);
77 77
         if (!$exists) {
78 78
             $this->Flash->set(__('User not found.'), ['element' => 'error']);
Please login to merge, or discard this patch.
plugins/Admin/src/Controller/CategoriesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 
124 124
         switch ($this->request->getData('mode')) {
125 125
             case ('move'):
126
-                $targetId = (int)$this->request->getData('targetCategory');
126
+                $targetId = (int) $this->request->getData('targetCategory');
127 127
                 try {
128 128
                     $this->Categories->merge($category->get('id'), $targetId);
129 129
                     $this->Flash->set(
Please login to merge, or discard this patch.
src/Controller/ContactsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
                         'subject' => $this->request->getData('subject'),
106 106
                         'message' => $this->request->getData('text'),
107 107
                         'template' => 'user_contact',
108
-                        'ccsender' => (bool)$this->request->getData('cc'),
108
+                        'ccsender' => (bool) $this->request->getData('cc'),
109 109
                     ];
110 110
                     $this->SaitoEmail->email($email);
111 111
                     $message = __('Message was send.');
Please login to merge, or discard this patch.