Test Failed
Branch v5 (12d602)
by Alexey
04:51
created
system/Inji/ComposerCmd.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -122,6 +122,9 @@
 block discarded – undo
122 122
         include getenv('COMPOSER_HOME') . '/vendor/autoload.php';
123 123
     }
124 124
 
125
+    /**
126
+     * @param string $packageName
127
+     */
125 128
     public static function requirePackage($packageName, $version = '', $path = '', $needOutput = false) {
126 129
         if (!$path) {
127 130
             $path = getenv('COMPOSER_HOME');
Please login to merge, or discard this patch.
system/Inji/Model.php 2 patches
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.
system/Inji/Model/Builder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@
 block discarded – undo
91 91
         return $result->fetchAll(empty($options['array']) ? $this->modelName : '', $this->modelName::index());
92 92
     }
93 93
 
94
+    /**
95
+     * @return boolean
96
+     */
94 97
     public function insert($values) {
95 98
         $query = $this->createQuery();
96 99
         return $query->insert('', $values);
Please login to merge, or discard this patch.
system/Inji/Router.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * @param string $folder
17 17
      * @param string $prefix
18
-     * @param int|float $priority
18
+     * @param integer $priority
19 19
      * @param int|bool $moduleIndex
20 20
      * @param array $moduleDirs
21 21
      */
@@ -83,7 +83,6 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * Include class by name
85 85
      *
86
-     * @param string $className
87 86
      * @return boolean
88 87
      */
89 88
     public static function loadClass($classPath) {
Please login to merge, or discard this patch.
system/modules/Db/objects/InjiStorage/Result.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
      */
21 21
     public $query;
22 22
 
23
+    /**
24
+     * @param Query $query
25
+     */
23 26
     public function __construct($dbResult, $query) {
24 27
         $this->result = $dbResult;
25 28
         $this->query = $query;
Please login to merge, or discard this patch.
system/modules/Db/objects/Mysql/Query.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public $dbOptions = [];
34 34
 
35 35
     /**
36
-     * @param  $instance
36
+     * @param   $instance
37 37
      */
38 38
     public function __construct($instance = null) {
39 39
         if (!$instance) {
Please login to merge, or discard this patch.
tests/Inji/ConfigTest.php 1 patch
Unused Use Statements   +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
-use  Inji\Config;
3
+use Inji\Config;
4 4
 
5 5
 class ConfigTest extends \PHPUnit\Framework\TestCase {
6 6
 
Please login to merge, or discard this patch.
system/Inji/App.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         }
107 107
         return false;
108 108
     }
109
-    public function possibleModuleClasses($moduleName){
109
+    public function possibleModuleClasses($moduleName) {
110 110
         $possibleModules = [];
111 111
         if ($this->namespace) {
112 112
             $possibleModules[] = $this->namespace . '\\' . $moduleName;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         }
107 107
         return false;
108 108
     }
109
-    public function possibleModuleClasses($moduleName){
109
+    public function possibleModuleClasses($moduleName) {
110 110
         $possibleModules = [];
111 111
         if ($this->namespace) {
112 112
             $possibleModules[] = $this->namespace . '\\' . $moduleName;
Please login to merge, or discard this patch.
system/Inji/CodeGenerator.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,9 @@
 block discarded – undo
13 13
 
14 14
     public static function genArray($data, $level = 0) {
15 15
         $return = '';
16
-        if ($level == 0)
17
-            $return = "[";
16
+        if ($level == 0) {
17
+                    $return = "[";
18
+        }
18 19
         foreach ($data as $key => $item) {
19 20
             $return .= "\n" . str_repeat(' ', ($level * 4 + 4)) . "'{$key}' => ";
20 21
             if (!is_array($item)) {
Please login to merge, or discard this patch.