Test Failed
Push — master ( 926856...cf9858 )
by Alexey
04:51
created
system/modules/View/View.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -145,6 +145,9 @@  discard block
 block discarded – undo
145 145
         return $result[1];
146 146
     }
147 147
 
148
+    /**
149
+     * @param string $source
150
+     */
148 151
     public function parseSource($source) {
149 152
         $tags = $this->parseRaw($source);
150 153
         foreach ($tags as $rawTag) {
@@ -190,6 +193,9 @@  discard block
 block discarded – undo
190 193
         return substr($source, ($pos + strlen($rawTag) + 2));
191 194
     }
192 195
 
196
+    /**
197
+     * @param string $type
198
+     */
193 199
     public function getHref($type, $params) {
194 200
         $href = '';
195 201
         if (is_string($params)) {
@@ -518,6 +524,9 @@  discard block
 block discarded – undo
518 524
         }
519 525
     }
520 526
 
527
+    /**
528
+     * @param string $type
529
+     */
521 530
     public function customAsset($type, $asset, $lib = false) {
522 531
         if (!$lib) {
523 532
             $this->dynAssets[$type][] = $asset;
@@ -540,6 +549,9 @@  discard block
 block discarded – undo
540 549
         }
541 550
     }
542 551
 
552
+    /**
553
+     * @param string $lineParams
554
+     */
543 555
     public function widget($_widgetName, $_params = [], $lineParams = null) {
544 556
         $_paths = $this->getWidgetPaths($_widgetName);
545 557
         $find = false;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -311,10 +311,10 @@
 block discarded – undo
311 311
             ?>
312 312
             <script>
313 313
               setInterval(function () {
314
-                var hash = '<?=$hash;?>';
315
-                var files = '<?=http_build_query(['files' => array_keys($urls)]);?>';
314
+                var hash = '<?=$hash; ?>';
315
+                var files = '<?=http_build_query(['files' => array_keys($urls)]); ?>';
316 316
                 var timeHash = '<?=$timeMd5?>';
317
-                var id = '<?=$id;?>';
317
+                var id = '<?=$id; ?>';
318 318
                 // 1. Создаём новый объект XMLHttpRequest
319 319
                 var xhr = new XMLHttpRequest();
320 320
 
Please login to merge, or discard this patch.
system/objects/CodeGenerator.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
         return $return;
31 31
     }
32 32
 
33
+    /**
34
+     * @param string $path
35
+     */
33 36
     public static function parseClass($path) {
34 37
         $code = file_get_contents($path);
35 38
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,20 +12,22 @@
 block discarded – undo
12 12
 
13 13
     public static function genArray($data, $level = 0) {
14 14
         $return = '';
15
-        if ($level == 0)
16
-            $return = "[";
15
+        if ($level == 0) {
16
+                    $return = "[";
17
+        }
17 18
         foreach ($data as $key => $item) {
18 19
             $return .= "\n" . str_repeat(' ', ($level * 4 + 4)) . "'{$key}' => ";
19
-            if (!is_array($item))
20
-                $return .= "'{$item}',";
21
-            else {
20
+            if (!is_array($item)) {
21
+                            $return .= "'{$item}',";
22
+            } else {
22 23
                 $return .= "[";
23 24
                 $return .= rtrim(self::genArray($item, $level + 1), ',');
24 25
                 $return .= "\n" . str_repeat(' ', ($level * 4 + 4)) . "],";
25 26
             }
26 27
         }
27
-        if ($level == 0)
28
-            $return = rtrim($return, ',') . "\n];";
28
+        if ($level == 0) {
29
+                    $return = rtrim($return, ',') . "\n];";
30
+        }
29 31
 
30 32
         return $return;
31 33
     }
Please login to merge, or discard this patch.
system/modules/Migrations/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/modules/UserForms/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/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.
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     }
38 38
 }
39 39
 
40
-require_once( INJI_SYSTEM_DIR . '/init.php' );
40
+require_once(INJI_SYSTEM_DIR . '/init.php');
41 41
 
42 42
 /**
43 43
  * System error messages
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.