Passed
Push — master ( 92de75...57f692 )
by Mihail
03:45
created
Apps/View/Front/default/content/list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
 $catConfigs = [];
17 17
 foreach ($model->categoryData['configs'] as $key=>$value) {
18
-    $catConfigs[$key] = (int)$value === 1;
18
+    $catConfigs[$key] = (int) $value === 1;
19 19
 }
20 20
 
21 21
 $catMeta = [
Please login to merge, or discard this patch.
Apps/View/Front/default/content/read.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 
44 44
 <?php
45 45
 $properties = [
46
-    'date' => (int)$model->getCategory()->getProperty('showDate') === 1,
47
-    'author' => (int)$model->getCategory()->getProperty('showAuthor') === 1,
48
-    'views' => (int)$model->getCategory()->getProperty('showViews') === 1,
49
-    'category' => (int)$model->getCategory()->getProperty('showCategory') === 1
46
+    'date' => (int) $model->getCategory()->getProperty('showDate') === 1,
47
+    'author' => (int) $model->getCategory()->getProperty('showAuthor') === 1,
48
+    'views' => (int) $model->getCategory()->getProperty('showViews') === 1,
49
+    'category' => (int) $model->getCategory()->getProperty('showCategory') === 1
50 50
 ];
51
-$showComments = (int)$model->getCategory()->getProperty('showComments') === 1;
52
-$showPoster = (int)$model->getCategory()->getProperty('showPoster') === 1;
51
+$showComments = (int) $model->getCategory()->getProperty('showComments') === 1;
52
+$showPoster = (int) $model->getCategory()->getProperty('showPoster') === 1;
53 53
 
54 54
 \App::$Cache->set('test.me.baby.1', ['key' => 'value']);
55 55
 ?>
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                     </div>
97 97
                 </div>
98 98
             </div>
99
-        <?php endif ;?>
99
+        <?php endif; ?>
100 100
         <?= $model->text ?>
101 101
     </div>
102 102
     <?php if ($model->galleryItems !== null && Obj::isArray($model->galleryItems)): ?>
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             </div>
122 122
         </div>
123 123
     <?php endif; ?>
124
-    <?php if ((int)$configs['keywordsAsTags'] === 1): ?>
124
+    <?php if ((int) $configs['keywordsAsTags'] === 1): ?>
125 125
     <div id="content-tags">
126 126
         <?php
127 127
         if (Obj::isArray($model->metaKeywords) && count($model->metaKeywords) > 0 && Str::length($model->metaKeywords[0]) > 0) {
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/show.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         <?php
45 45
         if ($ratingOn):
46 46
             $rateClass = 'btn-default';
47
-            $rateValue = (int)$user->getProfile()->rating;
47
+            $rateValue = (int) $user->getProfile()->rating;
48 48
             if ($user->getProfile()->rating > 0) {
49 49
                 $rateClass = 'btn-info';
50 50
             } elseif ($user->getProfile()->rating < 0) {
Please login to merge, or discard this patch.
Extend/Core/Arch/AdminAppController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      */
69 69
     public function getConfigs()
70 70
     {
71
-        return (array)unserialize($this->application->configs);
71
+        return (array) unserialize($this->application->configs);
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
Extend/Core/Arch/FrontAppController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         }
52 52
 
53 53
         // check if disabled (0 = enabled, anything else = on)
54
-        return (int)$this->application->disabled === 0;
54
+        return (int) $this->application->disabled === 0;
55 55
     }
56 56
 
57 57
     /**
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
         if ($this->configs !== null) {
64 64
             return $this->configs;
65 65
         }
66
-        $configs = (array)unserialize($this->application->configs); // data always stored like a "string" objects
66
+        $configs = (array) unserialize($this->application->configs); // data always stored like a "string" objects
67 67
         foreach ($configs as $cfg => $value) {
68 68
             if (Obj::isLikeInt($value)) {
69
-                $configs[$cfg] = (int)$value; // convert string 1 "1" to int 1 1
69
+                $configs[$cfg] = (int) $value; // convert string 1 "1" to int 1 1
70 70
             }
71 71
         }
72 72
         $this->configs = $configs;
Please login to merge, or discard this patch.
Extend/Core/Arch/FrontWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         }
29 29
 
30 30
         // if widget is disabled - lets return nothing
31
-        if ((int)$wData->disabled === 1) {
31
+        if ((int) $wData->disabled === 1) {
32 32
             return null;
33 33
         }
34 34
 
Please login to merge, or discard this patch.
Private/Config/Object.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
         return new Session($storage);
22 22
     },
23
-    'User' => function () {
23
+    'User' => function() {
24 24
         return new Apps\ActiveRecord\User();
25 25
     },
26
-    'Database' => function () {
26
+    'Database' => function() {
27 27
         $capsule = new Capsule;
28 28
         $capsule->addConnection(App::$Properties->get('database'));
29 29
         $capsule->setAsGlobal(); // available from any places
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
 
32 32
         return $capsule;
33 33
     },
34
-    'Mailer' => function () {
34
+    'Mailer' => function() {
35 35
         $swiftTransport = Swift_MailTransport::newInstance();
36 36
         return Swift_Mailer::newInstance($swiftTransport);
37 37
     },
38
-    'Captcha' => function () {
38
+    'Captcha' => function() {
39 39
         return new Extend\Core\Captcha\Gregwar();
40 40
     },
41
-    'Cache' => function () {
41
+    'Cache' => function() {
42 42
         phpFastCache::setup('path', root . '/Private/Cache');
43 43
         return \phpFastCache();
44 44
     }
Please login to merge, or discard this patch.
Private/Config/Permissions.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
-return array (
3
+return array(
4 4
   0 => 'global/write',
5 5
   1 => 'global/modify',
6 6
   2 => 'global/file',
Please login to merge, or discard this patch.
Apps/Controller/Admin/Profile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $query = new UserRecords();
27 27
 
28 28
         // set current page and offset
29
-        $page = (int)App::$Request->query->get('page');
29
+        $page = (int) App::$Request->query->get('page');
30 30
         $offset = $page * self::ITEM_PER_PAGE;
31 31
 
32 32
         // build pagination
Please login to merge, or discard this patch.