Test Failed
Branch v5 (12d602)
by Alexey
04:51
created
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.
system/modules/Db/objects/InjiStorage/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         return $this->connection->updateItems($tableName, $this->whereArray, $values, $this->dbOptions);
62 62
     }
63 63
 
64
-    public function delete(string $tableName='') {
64
+    public function delete(string $tableName = '') {
65 65
         if (!$tableName) {
66 66
             $tableName = $this->table;
67 67
         }
Please login to merge, or discard this patch.
system/modules/Ui/objects/ActiveForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         return true;
249 249
     }
250 250
 
251
-    public static function getOptionsList($inputParams, $params = [], $modelName = '', $aditionalInputNamePrefix = 'aditional', $options = [],$model=false) {
251
+    public static function getOptionsList($inputParams, $params = [], $modelName = '', $aditionalInputNamePrefix = 'aditional', $options = [], $model = false) {
252 252
         $values = [];
253 253
         switch ($inputParams['source']) {
254 254
             case 'model':
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                 break;
260 260
             case 'method':
261 261
                 if (!empty($inputParams['params'])) {
262
-                    $values = call_user_func_array([\App::$cur->{$inputParams['module']}, $inputParams['method']], $inputParams['params']+[$model]);
262
+                    $values = call_user_func_array([\App::$cur->{$inputParams['module']}, $inputParams['method']], $inputParams['params'] + [$model]);
263 263
                 } else {
264 264
                     $values = \App::$cur->{$inputParams['module']}->{$inputParams['method']}($model);
265 265
                 }
Please login to merge, or discard this patch.