Completed
Push — master ( 3c1969...5b5792 )
by Schlaefer
03:16 queued 10s
created
src/Shell/SaitoDummyDataShell.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     public function generatePostings()
113 113
     {
114
-        $nPostings = (int)$this->in(
114
+        $nPostings = (int) $this->in(
115 115
             'Number of postings to generate?',
116 116
             null,
117 117
             100
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         if ($nPostings === 0) {
120 120
             return;
121 121
         }
122
-        $ratio = (int)$this->in('Average answers per thread?', null, 10);
122
+        $ratio = (int) $this->in('Average answers per thread?', null, 10);
123 123
         $seed = $nPostings / $ratio;
124 124
 
125 125
         $CurrentUser = new SaitoUserDummy();
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             $posting = $this->Entries->createPosting($posting);
144 144
             if (empty($posting)) {
145 145
                 throw new \RuntimeException(
146
-                    'Could not create entry: ' . $posting
146
+                    'Could not create entry: '.$posting
147 147
                 );
148 148
             }
149 149
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     public function generateUsers()
161 161
     {
162 162
         $max = count($this->_users);
163
-        $n = (int)$this->in(
163
+        $n = (int) $this->in(
164 164
             "Number of users to generate (max: $max)?",
165 165
             null,
166 166
             0
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         }
197 197
         $this->out('.', 0);
198 198
         if ($i > 1 && !($i % 50)) {
199
-            $percent = (int)floor($i / $off * 100);
199
+            $percent = (int) floor($i / $off * 100);
200 200
             $this->out(sprintf(' %3s%%', $percent), 1);
201 201
         }
202 202
     }
Please login to merge, or discard this patch.
src/Model/Behavior/IpLoggingBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $strlen = strlen($ip);
37 37
         if ($strlen > 6) {
38
-            $divider = (int)floor($strlen / 4) + 1;
38
+            $divider = (int) floor($strlen / 4) + 1;
39 39
             $ip = substr_replace($ip, '…', $divider, $strlen - (2 * $divider));
40 40
         }
41 41
 
Please login to merge, or discard this patch.
src/Model/Table/CategoriesTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
         return $this->rememberStatic(
83 83
             $key,
84
-            function () use ($key) {
84
+            function() use ($key) {
85 85
                 return $this->find('all')
86 86
                     ->cache($key)
87 87
                     ->order(['category_order' => 'ASC'])
Please login to merge, or discard this patch.
src/Model/Table/UserReadsTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $entities = $this->newEntities($data);
64 64
         // @performance is one transaction but multiple inserts
65 65
         $this->getConnection()->transactional(
66
-            function () use ($entities) {
66
+            function() use ($entities) {
67 67
                 foreach ($entities as $entity) {
68 68
                     $this->save($entity, ['atomic' => false]);
69 69
                 }
Please login to merge, or discard this patch.
src/Console/Installer.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         // ask if the permissions should be changed
63 63
         if ($io->isInteractive()) {
64
-            $validator = function ($arg) {
64
+            $validator = function($arg) {
65 65
                 if (in_array($arg, ['Y', 'y', 'N', 'n'])) {
66 66
                     return $arg;
67 67
                 }
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public static function createAppConfig($dir, $io)
99 99
     {
100
-        $appConfig = $dir . '/config/app.php';
101
-        $defaultConfig = $dir . '/config/app.default.php';
100
+        $appConfig = $dir.'/config/app.php';
101
+        $defaultConfig = $dir.'/config/app.default.php';
102 102
         if (!file_exists($appConfig)) {
103 103
             copy($defaultConfig, $appConfig);
104 104
             $io->write('Created `config/app.php` file');
@@ -115,10 +115,10 @@  discard block
 block discarded – undo
115 115
     public static function createWritableDirectories($dir, $io)
116 116
     {
117 117
         foreach (static::WRITABLE_DIRS as $path) {
118
-            $path = $dir . '/' . $path;
118
+            $path = $dir.'/'.$path;
119 119
             if (!file_exists($path)) {
120 120
                 mkdir($path);
121
-                $io->write('Created `' . $path . '` directory');
121
+                $io->write('Created `'.$path.'` directory');
122 122
             }
123 123
         }
124 124
     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     public static function setFolderPermissions($dir, $io)
136 136
     {
137 137
         // Change the permissions on a path and output the results.
138
-        $changePerms = function ($path) use ($io) {
138
+        $changePerms = function($path) use ($io) {
139 139
             $currentPerms = fileperms($path) & 0777;
140 140
             $worldWritable = $currentPerms | 0007;
141 141
             if ($worldWritable == $currentPerms) {
@@ -144,16 +144,16 @@  discard block
 block discarded – undo
144 144
 
145 145
             $res = chmod($path, $worldWritable);
146 146
             if ($res) {
147
-                $io->write('Permissions set on ' . $path);
147
+                $io->write('Permissions set on '.$path);
148 148
             } else {
149
-                $io->write('Failed to set permissions on ' . $path);
149
+                $io->write('Failed to set permissions on '.$path);
150 150
             }
151 151
         };
152 152
 
153
-        $walker = function ($dir) use (&$walker, $changePerms) {
153
+        $walker = function($dir) use (&$walker, $changePerms) {
154 154
             $files = array_diff(scandir($dir), ['.', '..']);
155 155
             foreach ($files as $file) {
156
-                $path = $dir . '/' . $file;
156
+                $path = $dir.'/'.$file;
157 157
 
158 158
                 if (!is_dir($path)) {
159 159
                     continue;
@@ -164,9 +164,9 @@  discard block
 block discarded – undo
164 164
             }
165 165
         };
166 166
 
167
-        $walker($dir . '/tmp');
168
-        $changePerms($dir . '/tmp');
169
-        $changePerms($dir . '/logs');
167
+        $walker($dir.'/tmp');
168
+        $changePerms($dir.'/tmp');
169
+        $changePerms($dir.'/logs');
170 170
     }
171 171
 
172 172
     /**
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public static function setSecuritySaltInFile($dir, $io, $newKey, $file)
195 195
     {
196
-        $config = $dir . '/config/' . $file;
196
+        $config = $dir.'/config/'.$file;
197 197
         $content = file_get_contents($config);
198 198
 
199 199
         $content = str_replace('__SALT__', $newKey, $content, $count);
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 
207 207
         $result = file_put_contents($config, $content);
208 208
         if ($result) {
209
-            $io->write('Updated Security.salt value in config/' . $file);
209
+            $io->write('Updated Security.salt value in config/'.$file);
210 210
 
211 211
             return;
212 212
         }
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     public static function setAppNameInFile($dir, $io, $appName, $file)
226 226
     {
227
-        $config = $dir . '/config/' . $file;
227
+        $config = $dir.'/config/'.$file;
228 228
         $content = file_get_contents($config);
229 229
         $content = str_replace('__APP_NAME__', $appName, $content, $count);
230 230
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
         $result = file_put_contents($config, $content);
238 238
         if ($result) {
239
-            $io->write('Updated __APP_NAME__ value in config/' . $file);
239
+            $io->write('Updated __APP_NAME__ value in config/'.$file);
240 240
 
241 241
             return;
242 242
         }
Please login to merge, or discard this patch.
plugins/BbcodeParser/src/Lib/Preprocessor.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * Constructor
21 21
      *
22
-     * @param array $settings settings
22
+     * @param \Saito\Markup\MarkupSettings $settings settings
23 23
      */
24 24
     public function __construct($settings)
25 25
     {
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/ImageUploader/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/ImageUploader/tests/Fixture/UploadsFixture.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/Bota/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.