Completed
Push — master ( f0fcd7...6ac12a )
by Alexey
05:33
created
system/modules/Widgets/appAdminControllers/content/widgetChooser.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,10 +35,11 @@
 block discarded – undo
35 35
     ?>
36 36
 </select>
37 37
 <?php
38
-if (false)
38
+if (false) {
39 39
     foreach ($widgets as $widget) {
40 40
         if ($widget->widget_params) {
41 41
             $params = json_decode($widget->widget_params, true);
42
+}
42 43
             if ($params) {
43 44
                 echo "<div id = 'params{$widget->widget_id}' class = 'widgetParams' style='display:none;'>";
44 45
                 echo "<h3>Параметры</h3>";
Please login to merge, or discard this patch.
system/objects/CodeGenerator/Method.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
             $code .= '$' . $param . ',';
29 29
         }
30 30
         $code = rtrim($code, ',');
31
-        $code.= ") {\n";
32
-        $code.= '    ' . str_replace("\n", "\n    ", $this->body);
33
-        $code .="\n}";
31
+        $code .= ") {\n";
32
+        $code .= '    ' . str_replace("\n", "\n    ", $this->body);
33
+        $code .= "\n}";
34 34
         return $code;
35 35
     }
36 36
 
Please login to merge, or discard this patch.
system/program/setup/modules/Main/appSetupControllers/MainController.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
                 if (empty($config['failTry'])) {
32 32
                     $config['failTry'] = 1;
33 33
                 } else {
34
-                    $config['failTry'] ++;
34
+                    $config['failTry']++;
35 35
                 }
36 36
                 Config::save('share', $config);
37 37
             }
Please login to merge, or discard this patch.
system/modules/Files/models/File.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -83,6 +83,9 @@
 block discarded – undo
83 83
         return null;
84 84
     }
85 85
 
86
+    /**
87
+     * @return string
88
+     */
86 89
     function colName()
87 90
     {
88 91
         return "{$this->activeForm->requestFormName}[{$this->activeForm->modelName}][{$this->colName}]";
Please login to merge, or discard this patch.
system/modules/Materials/models/Category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
         if ($treePath) {
132 132
             $categorys = Category::getList(['where' => ['id', implode(',', $treePath), 'IN']]);
133 133
             foreach ($categorys as $category) {
134
-                $href .="/{$category->alias}";
134
+                $href .= "/{$category->alias}";
135 135
             }
136 136
         }
137 137
         return $href . "/" . ($this->alias ? $this->alias : $this->pk());
Please login to merge, or discard this patch.
system/modules/Migrations/install_script.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 function ($step = NULL, $params = []) {
3
+return function($step = NULL, $params = []) {
4 4
 
5 5
     $groups = [
6 6
         [
Please login to merge, or discard this patch.
system/modules/Money/install_script.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 function ($step = NULL, $params = []) {
3
+return function($step = NULL, $params = []) {
4 4
 
5 5
     $groups = [
6 6
         [
Please login to merge, or discard this patch.
system/Inji/Inji.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * 
44 44
      * @param string $eventName
45 45
      * @param string $listenCode
46
-     * @param array|closure $callback
46
+     * @param Closure $callback
47 47
      * @param boolean $save
48 48
      */
49 49
     function listen($eventName, $listenCode, $callback, $save = false)
Please login to merge, or discard this patch.
system/Inji/Config.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@
 block discarded – undo
47 47
             return self::$_configs['custom'][$path];
48 48
         }
49 49
 
50
-        if (!file_exists($path))
51
-            return [];
50
+        if (!file_exists($path)) {
51
+                    return [];
52
+        }
52 53
 
53 54
         return self::$_configs['custom'][$path] = include $path;
54 55
     }
Please login to merge, or discard this patch.