Passed
Push — master ( 37fbce...eb9638 )
by Mihail
09:07
created
Extend/Core/Arch/AdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
      */
140 140
     public function getConfigs()
141 141
     {
142
-        return $this->type === 'widget' ? (array)Serialize::decode($this->widget->config) : (array)Serialize::decode($this->application->configs);
142
+        return $this->type === 'widget' ? (array) Serialize::decode($this->widget->config) : (array) Serialize::decode($this->application->configs);
143 143
     }
144 144
 
145 145
     /**
Please login to merge, or discard this patch.
Apps/Controller/Admin/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $search = \Apps\ActiveRecord\App::getItem('app', $controller);
72 72
 
73 73
         // check what we got
74
-        if ($search === null || (int)$search->id < 1) {
74
+        if ($search === null || (int) $search->id < 1) {
75 75
             throw new ForbiddenException('App is not founded');
76 76
         }
77 77
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $search = \Apps\ActiveRecord\App::where('sys_name', '=', $controllerName)->where('type', '=', 'app')->first();
98 98
 
99
-        if ($search === null || (int)$search->id < 1) {
99
+        if ($search === null || (int) $search->id < 1) {
100 100
             throw new ForbiddenException('App is not founded');
101 101
         }
102 102
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/layout/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
                         if ($item->type === 'app') {
160 160
                             $appControllers[] = $item->sys_name;
161 161
                             $appMenuItems[] = $menuItem;
162
-                        } elseif($item->type === 'widget') {
162
+                        } elseif ($item->type === 'widget') {
163 163
                             $widgetControllers[] = $item->sys_name;
164 164
                             $widgetMenuItems[] = $menuItem;
165 165
                         }
Please login to merge, or discard this patch.
Apps/View/Admin/default/widget/index.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
     $route = $widget->sys_name . '/index';
27 27
     $icoStatus = null;
28 28
     $actions = $this->render('macro/widget_actions', ['controller' => $widget->sys_name]);
29
-    if ((int)$widget->disabled !== 0) {
29
+    if ((int) $widget->disabled !== 0) {
30 30
         $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>';
31 31
     } elseif ($widget->checkVersion() !== true) {
32 32
         $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>';
Please login to merge, or discard this patch.
Apps/Model/Admin/Application/FormTurn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     {
13 13
         $status = $object->disabled;
14 14
 
15
-        $object->disabled = (int)!$status; // magic inside: bool to int and reverse - 0 => 1, 1 => 0
15
+        $object->disabled = (int) !$status; // magic inside: bool to int and reverse - 0 => 1, 1 => 0
16 16
         $object->save();
17 17
     }
18 18
 }
19 19
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Front/default/content/list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 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 = [
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             </div>
103 103
         </div>
104 104
         <div class="meta">
105
-            <?php if ((int)$configs['keywordsAsTags'] === 1 && $item['tags'] !== null && Obj::isArray($item['tags'])): ?>
105
+            <?php if ((int) $configs['keywordsAsTags'] === 1 && $item['tags'] !== null && Obj::isArray($item['tags'])): ?>
106 106
             <span><i class="fa fa-tags hidden-xs"></i>
107 107
                 <?php
108 108
                     foreach ($item['tags'] as $tag) {
Please login to merge, or discard this patch.
Apps/View/Admin/default/widget/turn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             [['text' => __('Name')], ['text' => $widget->getLocaleName()]],
32 32
             [['text' => __('System name')], ['text' => $widget->sys_name]],
33 33
             [['text' => __('Last update')], ['text' => Date::convertToDatetime($widget->updated_at, DATE::FORMAT_TO_SECONDS)]],
34
-            [['text' => __('Status')], ['text' => ((int)$widget->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' =>  ((int)$widget->disabled === 0) ? 'alert-success' : 'alert-danger']]
34
+            [['text' => __('Status')], ['text' => ((int) $widget->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' =>  ((int) $widget->disabled === 0) ? 'alert-success' : 'alert-danger']]
35 35
         ]
36 36
     ]
37 37
 ]); ?>
Please login to merge, or discard this patch.
Apps/Controller/Admin/Widget.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $search = \Apps\ActiveRecord\App::getItem('app', $controller);
72 72
 
73 73
         // check what we got
74
-        if ($search === null || (int)$search->id < 1) {
74
+        if ($search === null || (int) $search->id < 1) {
75 75
             throw new ForbiddenException('App is not founded');
76 76
         }
77 77
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $search = \Apps\ActiveRecord\App::where('sys_name', '=', $controllerName)->where('type', '=', 'app')->first();
98 98
 
99
-        if ($search === null || (int)$search->id < 1) {
99
+        if ($search === null || (int) $search->id < 1) {
100 100
             throw new ForbiddenException('App is not founded');
101 101
         }
102 102
 
Please login to merge, or discard this patch.
Apps/ActiveRecord/App.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         $scriptVersion = $this->getScriptVersion();
126 126
 
127
-        return $scriptVersion === (float)$this->version;
127
+        return $scriptVersion === (float) $this->version;
128 128
     }
129 129
 
130 130
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             return false;
143 143
         }
144 144
 
145
-        return (float)constant($class . '::VERSION');
145
+        return (float) constant($class . '::VERSION');
146 146
     }
147 147
 
148 148
 }
149 149
\ No newline at end of file
Please login to merge, or discard this patch.