Completed
Push — master ( 9db94b...c8aa88 )
by Alexey
07:41
created
system/Inji/Model.php 1 patch
Doc Comments   +7 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)
@@ -429,6 +429,9 @@  discard block
 block discarded – undo
429 429
         return Model::$cols[static::table()];
430 430
     }
431 431
 
432
+    /**
433
+     * @param string $colName
434
+     */
432 435
     public static function genColParams($colName)
433 436
     {
434 437
         if (empty(static::$cols[$colName]) || static::$storage['type'] == 'moduleConfig') {
@@ -482,7 +485,7 @@  discard block
 block discarded – undo
482 485
      * Create new col in data base
483 486
      * 
484 487
      * @param string $colName
485
-     * @return boolean
488
+     * @return false|null
486 489
      */
487 490
     public static function createCol($colName)
488 491
     {
@@ -567,7 +570,7 @@  discard block
 block discarded – undo
567 570
     /**
568 571
      * return relations list
569 572
      * 
570
-     * @return array
573
+     * @return string
571 574
      */
572 575
     public static function relations()
573 576
     {
@@ -1063,7 +1066,7 @@  discard block
 block discarded – undo
1063 1066
      * 
1064 1067
      * @param array $params
1065 1068
      * @param array $where
1066
-     * @return boolean
1069
+     * @return false|null
1067 1070
      */
1068 1071
     public static function update($params, $where = [])
1069 1072
     {
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.