Completed
Push — master ( 776132...4b8bb5 )
by Alexey
13:36
created
system/Inji/Model.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
     /**
358 358
      * Information extractor for col relations path
359 359
      * 
360
-     * @param string|array $info
360
+     * @param string $info
361 361
      * @return array
362 362
      */
363 363
     public static function parseColRecursion($info)
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
      * Generate params string for col by name
434 434
      * 
435 435
      * @param string $colName
436
-     * @return boolean|string
436
+     * @return false|string
437 437
      */
438 438
     public static function genColParams($colName)
439 439
     {
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
     /**
574 574
      * return relations list
575 575
      * 
576
-     * @return array
576
+     * @return string
577 577
      */
578 578
     public static function relations()
579 579
     {
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
      * 
1066 1066
      * @param array $params
1067 1067
      * @param array $where
1068
-     * @return boolean
1068
+     * @return false|null
1069 1069
      */
1070 1070
     public static function update($params, $where = [])
1071 1071
     {
Please login to merge, or discard this patch.
system/modules/View/View.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -178,15 +178,15 @@  discard block
 block discarded – undo
178 178
     public function cutTag($source, $rawTag) {
179 179
         $pos = strpos($source, $rawTag) - 1;
180 180
         echo substr($source, 0, $pos);
181
-        return substr($source, ( $pos + strlen($rawTag) + 2));
181
+        return substr($source, ($pos + strlen($rawTag) + 2));
182 182
     }
183 183
 
184 184
     public function getHref($type, $params) {
185 185
         $href = '';
186 186
         if (is_string($params)) {
187
-            $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $params;
187
+            $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $params;
188 188
         } elseif (empty($params['template']) && !empty($params['file'])) {
189
-            $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $params['file'];
189
+            $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $params['file'];
190 190
         } elseif (!empty($params['template']) && !empty($params['file'])) {
191 191
             $href = $this->app->templatesPath . "/{$this->template->name}/{$type}/{$params['file']}";
192 192
         }
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
                     if (strpos($css, '//') !== false) {
341 341
                                             $href = $css;
342 342
                     } else {
343
-                                            $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $css;
343
+                                            $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $css;
344 344
                     }
345 345
                     $hrefs[$href] = $href;
346 346
                 }
Please login to merge, or discard this patch.
Braces   +13 added lines, -10 removed lines patch added patch discarded remove patch
@@ -133,8 +133,9 @@  discard block
 block discarded – undo
133 133
     }
134 134
 
135 135
     private function parseRaw($source) {
136
-        if (!$source)
137
-            return [];
136
+        if (!$source) {
137
+                    return [];
138
+        }
138 139
 
139 140
         preg_match_all("|{([^}]+)}|", $source, $result);
140 141
         return $result[1];
@@ -311,10 +312,11 @@  discard block
 block discarded – undo
311 312
                         $this->ResolveCssHref($css, $type, $hrefs);
312 313
                         continue;
313 314
                     }
314
-                    if (strpos($css, '//') !== false)
315
-                        $href = $css;
316
-                    else
317
-                        $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $css;
315
+                    if (strpos($css, '//') !== false) {
316
+                                            $href = $css;
317
+                    } else {
318
+                                            $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $css;
319
+                    }
318 320
                     $hrefs[$href] = $href;
319 321
                 }
320 322
                 break;
@@ -324,10 +326,11 @@  discard block
 block discarded – undo
324 326
                         $this->ResolveCssHref($css, $type, $hrefs);
325 327
                         continue;
326 328
                     }
327
-                    if (strpos($css, '://') !== false)
328
-                        $href = $css;
329
-                    else
330
-                        $href = $this->app->templatesPath . "/{$this->template->name}/css/{$css}";
329
+                    if (strpos($css, '://') !== false) {
330
+                                            $href = $css;
331
+                    } else {
332
+                                            $href = $this->app->templatesPath . "/{$this->template->name}/css/{$css}";
333
+                    }
331 334
                     $hrefs[$href] = $href;
332 335
                 }
333 336
                 break;
Please login to merge, or discard this patch.
system/modules/Db/objects/Mysql/Mysql.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 class Mysql extends \Object {
15 15
 
16
-    public $config = [];       // настройки подключения выбраной базы
17
-    public $connect = false;        // ярлык соединения с MySQL
18
-    public $encoding = 'utf-8';        // установленная кодировка
19
-    public $db_name = 'test';         // выбраная в данный момент база
20
-    public $table_prefix = 'inji_';   // префикс названий таблиц
16
+    public $config = []; // настройки подключения выбраной базы
17
+    public $connect = false; // ярлык соединения с MySQL
18
+    public $encoding = 'utf-8'; // установленная кодировка
19
+    public $db_name = 'test'; // выбраная в данный момент база
20
+    public $table_prefix = 'inji_'; // префикс названий таблиц
21 21
     public $pdo = null;
22 22
     public $lastQuery = '';
23 23
     public $last_error = '';
Please login to merge, or discard this patch.
system/modules/Db/objects/Mysql/Query.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                             $concatenation = '';
185 185
             }
186 186
 
187
-            if ($this->whereString == NULL) {
187
+            if ($this->whereString == null) {
188 188
                             $this->whereString = ' WHERE ';
189 189
             }
190 190
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
                         $this->whereString .= "{$concatenation} ";
233 233
                     }
234 234
 
235
-                    if ($this->whereString != NULL) {
235
+                    if ($this->whereString != null) {
236 236
                                             $this->whereString .= '(';
237 237
                     } else {
238 238
                                             $this->whereString = 'WHERE (';
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
                             $concatenation = '';
272 272
             }
273 273
 
274
-            if ($this->havingString == NULL) {
274
+            if ($this->havingString == null) {
275 275
                             $this->havingString = ' HAVING ';
276 276
             }
277 277
 
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
                         $this->havingString .= "{$concatenation} ";
320 320
                     }
321 321
 
322
-                    if ($this->havingString != NULL) {
322
+                    if ($this->havingString != null) {
323 323
                                             $this->havingString .= '(';
324 324
                     } else {
325 325
                                             $this->havingString = 'HAVING (';
Please login to merge, or discard this patch.
system/Inji/Tools.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,9 @@
 block discarded – undo
55 55
      * @return boolean
56 56
      */
57 57
     public static function createDir($path) {
58
-        if (file_exists($path))
59
-            return true;
58
+        if (file_exists($path)) {
59
+                    return true;
60
+        }
60 61
 
61 62
         $path = explode('/', $path);
62 63
         $cur = '';
Please login to merge, or discard this patch.