Passed
Push — master ( 227fa5...84d0c3 )
by Alexey
06:13
created
system/program/admin/templates/default/config.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
     'file' => 'index.html',
6 6
     'css' => ['style.css'],
7 7
     'libs' => [
8
-       'JqueryUi',  'PaperTheme','FancyBox'
8
+        'JqueryUi',  'PaperTheme','FancyBox'
9 9
     ]
10 10
 ];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
     'file' => 'index.html',
6 6
     'css' => ['style.css'],
7 7
     'libs' => [
8
-       'JqueryUi',  'PaperTheme','FancyBox'
8
+       'JqueryUi', 'PaperTheme', 'FancyBox'
9 9
     ]
10 10
 ];
Please login to merge, or discard this patch.
system/Inji/Cache.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -128,6 +128,7 @@
 block discarded – undo
128 128
      * Get cache dir for app
129 129
      * 
130 130
      * @param App $app
131
+     * @param string $dirname
131 132
      * @return string
132 133
      */
133 134
     public static function getDir($dirname, $app = null) {
Please login to merge, or discard this patch.
system/modules/Ecommerce/appControllers/EcommerceController.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         $user = Users\User::$cur;
18 18
         if (!empty($_POST) && !empty($_POST['card_id'])) {
19 19
             $error = false;
20
-            $card = \Ecommerce\Card::get((int)$_POST['card_id']);
20
+            $card = \Ecommerce\Card::get((int) $_POST['card_id']);
21 21
             if (!$card) {
22 22
                 $error = true;
23 23
                 Msg::add('Такой карты не существует', 'danger');
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         //search
104 104
         if (!empty($_GET['search'])) {
105 105
             if (!empty($_GET['inCatalog'])) {
106
-                $category_id = (int)$_GET['inCatalog'];
106
+                $category_id = (int) $_GET['inCatalog'];
107 107
             }
108 108
             $search = $_GET['search'];
109 109
         } else {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $category_id = 0;
138 138
         }
139 139
         $active = $category_id;
140
-        if(!empty($_GET['categorys'])){
140
+        if (!empty($_GET['categorys'])) {
141 141
             $categorysList = $_GET['categorys'];
142 142
         }
143 143
         else {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     }
216 216
 
217 217
     public function viewAction($id = '', $quick = 0) {
218
-        $item = \Ecommerce\Item::get((int)$id);
218
+        $item = \Ecommerce\Item::get((int) $id);
219 219
         if (!$item) {
220 220
             Tools::redirect('/ecommerce/', 'Такой товар не найден');
221 221
         }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $bread[] = ['text' => $item->name()];
235 235
         $this->view->setTitle($item->name());
236 236
         $options = [
237
-            'data' => compact('item', 'active', 'catalog', 'bread','quick'),
237
+            'data' => compact('item', 'active', 'catalog', 'bread', 'quick'),
238 238
             'content' => $item->view ? $item->view : 'view',
239 239
         ];
240 240
         if (isset($_GET['quickview'])) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,10 +137,9 @@
 block discarded – undo
137 137
             $category_id = 0;
138 138
         }
139 139
         $active = $category_id;
140
-        if(!empty($_GET['categorys'])){
140
+        if(!empty($_GET['categorys'])) {
141 141
             $categorysList = $_GET['categorys'];
142
-        }
143
-        else {
142
+        } else {
144 143
             $categorysList = $category_id;
145 144
         }
146 145
 
Please login to merge, or discard this patch.