Passed
Branch master (b79870)
by Darío
03:47
created
src/Mvc/AbstractionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
         if ($_SERVER['REQUEST_METHOD'] != 'JSON')
169 169
             throw new \LogicException("Request method is not JSON");
170 170
 
171
-        $input =  file_get_contents('php://input');
171
+        $input = file_get_contents('php://input');
172 172
         $array = explode("&", $input);
173 173
 
174 174
         $result = array();
Please login to merge, or discard this patch.
src/Mvc/Layout.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
     {
165 165
         foreach ($params as $param => $value)
166 166
         {
167
-            if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set'.$param))
168
-                $this->{'set'.$param}($value);
167
+            if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set' . $param))
168
+                $this->{'set' . $param}($value);
169 169
         }
170 170
     }
171 171
 
@@ -185,9 +185,9 @@  discard block
 block discarded – undo
185 185
 
186 186
         if ($controller->getShowView())
187 187
         {
188
-            $view = 'module/'      . $controller->getModule()->getModuleName() .
189
-                    '/source/view/'. basename(str_replace('\\','/',get_class($controller))) .
190
-                    '/'            . $controller->getMethod() . '.phtml';
188
+            $view = 'module/' . $controller->getModule()->getModuleName() .
189
+                    '/source/view/' . basename(str_replace('\\', '/', get_class($controller))) .
190
+                    '/' . $controller->getMethod() . '.phtml';
191 191
 
192 192
             $this->view = $view;
193 193
         }
Please login to merge, or discard this patch.
src/Db/Driver/AbstractDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,8 +298,8 @@
 block discarded – undo
298 298
     {
299 299
         foreach ($options as $option => $value)
300 300
         {
301
-            if (property_exists(__CLASS__, strtolower($option)) && method_exists($this, 'set'.$option))
302
-                $this->{'set'.$option}($value);
301
+            if (property_exists(__CLASS__, strtolower($option)) && method_exists($this, 'set' . $option))
302
+                $this->{'set' . $option}($value);
303 303
         }
304 304
     }
305 305
 
Please login to merge, or discard this patch.
src/Db/Driver/MySQL.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             {
109 109
                 if (is_string($param_values[$i]))
110 110
                     $bind_types .= 's';
111
-                else if(is_float($param_values[$i]))
111
+                else if (is_float($param_values[$i]))
112 112
                     $bind_types .= 'd';
113 113
                 # [POSSIBLE BUG] - To Future revision (What about non-string and non-decimal types ?)
114 114
                 else
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $this->rowsAffected = $this->result->affected_rows;
165 165
 
166 166
         if ($this->transac_mode)
167
-            $this->transac_result = is_null($this->transac_result) ? $this->result: $this->transac_result && $this->result;
167
+            $this->transac_result = is_null($this->transac_result) ? $this->result : $this->transac_result && $this->result;
168 168
 
169 169
         return $this->result;
170 170
     }
Please login to merge, or discard this patch.
src/Db/Driver/Oracle.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
             ? $this->dbname
53 53
             :
54 54
                 (!is_null($this->dbport) && !empty($this->dbport))
55
-                    ? $this->dbhost .":". $this->dbport ."/". $this->dbname
56
-                    : $this->dbhost ."/". $this->dbname;
55
+                    ? $this->dbhost . ":" . $this->dbport . "/" . $this->dbname
56
+                    : $this->dbhost . "/" . $this->dbname;
57 57
 
58
-        $this->dbconn = @oci_connect($this->dbuser,  $this->dbpass, $connection_string, $this->dbchar);
58
+        $this->dbconn = @oci_connect($this->dbuser, $this->dbpass, $connection_string, $this->dbchar);
59 59
 
60 60
         if ($this->dbconn === false)
61 61
         {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $prev_error_handler = set_error_handler(['\Drone\Error\ErrorHandler', 'errorControlOperator'], E_ALL);
123 123
 
124 124
         // may be throw a Fatal error (Ex: Maximum execution time)
125
-        $r = ($this->transac_mode) ? oci_execute($stid, OCI_NO_AUTO_COMMIT) : oci_execute($stid,  OCI_COMMIT_ON_SUCCESS);
125
+        $r = ($this->transac_mode) ? oci_execute($stid, OCI_NO_AUTO_COMMIT) : oci_execute($stid, OCI_COMMIT_ON_SUCCESS);
126 126
 
127 127
         set_error_handler($prev_error_handler);
128 128
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $this->numFields = oci_num_fields($stid);
144 144
 
145 145
         if ($this->transac_mode)
146
-            $this->transac_result = is_null($this->transac_result) ? $this->result: $this->transac_result && $this->result;
146
+            $this->transac_result = is_null($this->transac_result) ? $this->result : $this->transac_result && $this->result;
147 147
 
148 148
         return $this->result;
149 149
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
         if ($this->result)
188 188
         {
189
-            while ( ($row = @oci_fetch_array($this->result, OCI_BOTH + OCI_RETURN_NULLS)) !== false )
189
+            while (($row = @oci_fetch_array($this->result, OCI_BOTH + OCI_RETURN_NULLS)) !== false)
190 190
             {
191 191
                 $data[] = $row;
192 192
             }
Please login to merge, or discard this patch.
src/Db/Driver/SQLServer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $r = sqlsrv_execute($this->result);
110 110
         }
111 111
         else
112
-            $r = $this->result = sqlsrv_query($this->dbconn, $sql, $params, array( "Scrollable" => SQLSRV_CURSOR_KEYSET ));
112
+            $r = $this->result = sqlsrv_query($this->dbconn, $sql, $params, array("Scrollable" => SQLSRV_CURSOR_KEYSET));
113 113
 
114 114
         if (!$r)
115 115
         {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $this->rowsAffected = sqlsrv_rows_affected($this->result);
131 131
 
132 132
         if ($this->transac_mode)
133
-            $this->transac_result = is_null($this->transac_result) ? $this->result: $this->transac_result && $this->result;
133
+            $this->transac_result = is_null($this->transac_result) ? $this->result : $this->transac_result && $this->result;
134 134
 
135 135
         return $this->result;
136 136
     }
Please login to merge, or discard this patch.