Completed
Push — master ( 5b5792...2b84bd )
by Schlaefer
03:33 queued 11s
created
src/Controller/UsersController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         }
229 229
         $code = $this->request->getQuery('c');
230 230
         try {
231
-            $activated = $this->Users->activate((int)$id, $code);
231
+            $activated = $this->Users->activate((int) $id, $code);
232 232
         } catch (\Exception $e) {
233 233
             $activated = false;
234 234
         }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     public function ignore()
287 287
     {
288 288
         $this->request->allowMethod('POST');
289
-        $blockedId = (int)$this->request->getData('id');
289
+        $blockedId = (int) $this->request->getData('id');
290 290
         $this->_ignore($blockedId, true);
291 291
     }
292 292
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     public function unignore()
299 299
     {
300 300
         $this->request->allowMethod('POST');
301
-        $blockedId = (int)$this->request->getData('id');
301
+        $blockedId = (int) $this->request->getData('id');
302 302
         $this->_ignore($blockedId, false);
303 303
     }
304 304
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     protected function _ignore($blockedId, $set)
313 313
     {
314 314
         $userId = $this->CurrentUser->getId();
315
-        if ((int)$userId === (int)$blockedId) {
315
+        if ((int) $userId === (int) $blockedId) {
316 316
             throw new BadRequestException();
317 317
         }
318 318
         if ($set) {
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
             throw new BadRequestException;
535 535
         }
536 536
 
537
-        $id = (int)$this->request->getData('lockUserId');
537
+        $id = (int) $this->request->getData('lockUserId');
538 538
         if (!$this->Users->exists($id)) {
539 539
             throw new NotFoundException('User does not exist.', 1524298280);
540 540
         }
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
             $this->Flash->set($message, ['element' => 'error']);
549 549
         } else {
550 550
             try {
551
-                $duration = (int)$this->request->getData('lockPeriod');
551
+                $duration = (int) $this->request->getData('lockPeriod');
552 552
                 $blocker = new ManualBlocker($this->CurrentUser->getId(), $duration);
553 553
                 $status = $this->Users->UserBlocks->block($blocker, $id);
554 554
                 if (!$status) {
Please login to merge, or discard this patch.
src/View/Helper/JsDataHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 'version' => Configure::read('Saito.v'),
64 64
                 'settings' => [
65 65
                     'autoPageReload' => (isset($View->viewVars['autoPageReload']) ? $View->viewVars['autoPageReload'] : 0),
66
-                    'editPeriod' => (int)Configure::read(
66
+                    'editPeriod' => (int) Configure::read(
67 67
                         'Saito.Settings.edit_period'
68 68
                     ),
69 69
                     'language' => Configure::read('Saito.language'),
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 'csrf' => $this->_getCsrf($View)
90 90
             ],
91 91
             'currentUser' => [
92
-                'id' => (int)$CurrentUser->get('id'),
92
+                'id' => (int) $CurrentUser->get('id'),
93 93
                 'username' => $CurrentUser->get('username'),
94 94
                 'user_show_inline' => $CurrentUser->get('inline_view_on_click') || false,
95 95
                 'user_show_thread_collapsed' => $CurrentUser->get('user_show_thread_collapsed') || false
Please login to merge, or discard this patch.
config/saito_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     ->addType('audio/mp4')
109 109
     ->addType('audio/webm')
110 110
     ->addType('image/jpeg', '19MB')
111
-    ->addType('image/png',  '19MB')
111
+    ->addType('image/png', '19MB')
112 112
     ->addType('image/svg+xml')
113 113
     ->addType('text/plain')
114 114
     ->addType('video/mp4')
Please login to merge, or discard this patch.