Test Failed
Branch v5 (12d602)
by Alexey
04:51
created
system/modules/Money/widgets/cabinet/walletsWidget.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 <?php
3 3
 $blocked = App::$cur->money->getUserBlocks();
4 4
 $wallets = App::$cur->money->getUserWallets();
5
-foreach ($wallets as $wallet) {
5
+foreach ($wallets as $wallet) {
6 6
     ?>
7 7
     <b><?= $wallet->showAmount(); ?></b> <?= $wallet->currency->acronym(); ?><br/>
8 8
     <?php
Please login to merge, or discard this patch.
system/modules/Sliders/install_script.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-return function ($step = NULL, $params = []) {
3
+return function ($step = null, $params = []) {
4 4
     
5 5
 };
Please login to merge, or discard this patch.
system/Inji/Msg.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,9 @@
 block discarded – undo
49 49
      * @return array
50 50
      */
51 51
     public static function get($clean = false) {
52
-        if (empty($_SESSION['_INJI_MSG']))
53
-            return [];
52
+        if (empty($_SESSION['_INJI_MSG'])) {
53
+                    return [];
54
+        }
54 55
         $msgs = $_SESSION['_INJI_MSG'];
55 56
         if ($clean) {
56 57
             $_SESSION['_INJI_MSG'] = [];
Please login to merge, or discard this patch.
system/modules/Materials/widgets/category/materialList.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 <div class ="category-materials">
13 13
     <div class ="row">
14 14
       <?php
15
-      $i = 0;
16
-      foreach ($materials as $material) {
17
-          ?>
15
+        $i = 0;
16
+        foreach ($materials as $material) {
17
+            ?>
18 18
             <div class = "col-sm-6 category-material">
19 19
                 <a class="category-material-name" href ="<?= $material->getHref(); ?>"><h3><?= $material->name; ?></h3></a>
20 20
                 <div class="category-material-preview"><?= $material->preview; ?></div>
Please login to merge, or discard this patch.
system/modules/Materials/migrations/addPublishDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'up' => function() {
4
+    'up' => function () {
5 5
         Materials\Material::createCol('date_publish');
6 6
         foreach (Materials\Material::getList() as $material) {
7 7
             $material->date_publish = $material->date_create;
Please login to merge, or discard this patch.
system/modules/Menu/models/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                 'type' => 'many',
65 65
                 'model' => 'Menu\Item',
66 66
                 'col' => 'Menu_id',
67
-                'where'=>[['parent_id',0]]
67
+                'where'=>[['parent_id', 0]]
68 68
             ],
69 69
             'group' => [
70 70
                 'col' => 'group_id',
Please login to merge, or discard this patch.
system/modules/Menu/widgets/menuCollapse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
     $code = 'main';
7 7
 }
8 8
 $uid = Tools::randomString();
9
-$childDraws = function($item, $childDraws, $uid, $activeFind) {
9
+$childDraws = function ($item, $childDraws, $uid, $activeFind) {
10 10
     if ($item->childs(['order' => ['weight', 'asc']])) {
11 11
         echo "<ul class ='dropdown-menu'>";
12 12
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         echo "</ul>";
24 24
     }
25 25
 };
26
-$activeFind = function($item, $activeFind) {
26
+$activeFind = function ($item, $activeFind) {
27 27
     foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) {
28 28
         if (urldecode($_SERVER['REQUEST_URI']) == $item->href) {
29 29
             return true;
Please login to merge, or discard this patch.
system/modules/Exchange1c/objects/Parser/Item/Options.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
 
34 34
         $options = [];
35
-        $itemParams = \Ecommerce\Item\Param::getList(['where' => ['item_id', $this->model->id],'key'=>'item_option_id']);
35
+        $itemParams = \Ecommerce\Item\Param::getList(['where' => ['item_id', $this->model->id], 'key'=>'item_option_id']);
36 36
         foreach ($this->object->object->params as $param) {
37 37
             if ($param->type == 'paramValue' && isset($itemParams[$param->value])) {
38 38
                 $options[$param->value] = $itemParams[$param->value]->value;
Please login to merge, or discard this patch.
system/Inji/Model.php 3 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1958,7 +1958,7 @@
 block discarded – undo
1958 1958
             }
1959 1959
         }
1960 1960
         if (!$params) {
1961
-            return FALSE;
1961
+            return false;
1962 1962
         }
1963 1963
         return new $model($params);
1964 1964
     }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -201,7 +201,6 @@  discard block
 block discarded – undo
201 201
      * @param Model $item
202 202
      * @param string $colName
203 203
      * @param boolean $manageHref
204
-     * @param array $params
205 204
      * @return string
206 205
      */
207 206
     public static function resloveTypeValue($item, $colName, $manageHref = false, $colInfo = []) {
@@ -845,7 +844,7 @@  discard block
 block discarded – undo
845 844
     /**
846 845
      * return relations list
847 846
      *
848
-     * @return array
847
+     * @return string
849 848
      */
850 849
     public static function relations() {
851 850
         return [];
@@ -1248,7 +1247,7 @@  discard block
 block discarded – undo
1248 1247
     /**
1249 1248
      * Return primary key of object
1250 1249
      *
1251
-     * @return mixed
1250
+     * @return boolean
1252 1251
      */
1253 1252
     public function pk() {
1254 1253
         return $this->{$this->index()};
@@ -1767,7 +1766,7 @@  discard block
 block discarded – undo
1767 1766
      * Return model value in object
1768 1767
      *
1769 1768
      * @param string $name
1770
-     * @return \Value|null
1769
+     * @return Value|null
1771 1770
      */
1772 1771
     public function value($name) {
1773 1772
         $fixedName = $name;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1023,12 +1023,12 @@  discard block
 block discarded – undo
1023 1023
         }
1024 1024
         static::$relJoins = [];
1025 1025
         if (!empty($options['limit'])) {
1026
-            $limit = (int)$options['limit'];
1026
+            $limit = (int) $options['limit'];
1027 1027
         } else {
1028 1028
             $limit = 0;
1029 1029
         }
1030 1030
         if (!empty($options['start'])) {
1031
-            $start = (int)$options['start'];
1031
+            $start = (int) $options['start'];
1032 1032
         } else {
1033 1033
             $start = 0;
1034 1034
         }
@@ -1134,12 +1134,12 @@  discard block
 block discarded – undo
1134 1134
             $query->order($options['order']);
1135 1135
         }
1136 1136
         if (!empty($options['limit'])) {
1137
-            $limit = (int)$options['limit'];
1137
+            $limit = (int) $options['limit'];
1138 1138
         } else {
1139 1139
             $limit = 0;
1140 1140
         }
1141 1141
         if (!empty($options['start'])) {
1142
-            $start = (int)$options['start'];
1142
+            $start = (int) $options['start'];
1143 1143
         } else {
1144 1144
             $start = 0;
1145 1145
         }
@@ -1858,13 +1858,13 @@  discard block
 block discarded – undo
1858 1858
         if (!empty($className::$cols[$shortName])) {
1859 1859
             switch ($className::$cols[$shortName]['type']) {
1860 1860
                 case 'decimal':
1861
-                    $value = (float)$value;
1861
+                    $value = (float) $value;
1862 1862
                     break;
1863 1863
                 case 'number':
1864
-                    $value = (int)$value;
1864
+                    $value = (int) $value;
1865 1865
                     break;
1866 1866
                 case 'bool':
1867
-                    $value = (bool)$value;
1867
+                    $value = (bool) $value;
1868 1868
                     break;
1869 1869
             }
1870 1870
         }
Please login to merge, or discard this patch.