Completed
Push — master ( eb51fb...9d1029 )
by David
01:50
created
Library/Zend/Db/Statement/Mysqli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
                 $row = array_merge($values, $assoc);
309 309
                 break;
310 310
             case Zend_Db::FETCH_OBJ:
311
-                $row = (object) array_combine($this->_keys, $values);
311
+                $row = (object)array_combine($this->_keys, $values);
312 312
                 break;
313 313
             case Zend_Db::FETCH_BOUND:
314 314
                 $assoc = array_combine($this->_keys, $values);
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
          * @see Zend_Db_Statement_Mysqli_Exception
341 341
          */
342 342
         require_once 'Zend/Db/Statement/Mysqli/Exception.php';
343
-        throw new Zend_Db_Statement_Mysqli_Exception(__FUNCTION__.'() is not implemented');
343
+        throw new Zend_Db_Statement_Mysqli_Exception(__FUNCTION__ . '() is not implemented');
344 344
     }
345 345
 
346 346
     /**
Please login to merge, or discard this patch.
Library/Zend/Db/Adapter/Mysqli.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                 'COLUMN_POSITION'  => $i,
258 258
                 'DATA_TYPE'        => $row['Type'],
259 259
                 'DEFAULT'          => $row['Default'],
260
-                'NULLABLE'         => (bool) ($row['Null'] == 'YES'),
260
+                'NULLABLE'         => (bool)($row['Null'] == 'YES'),
261 261
                 'LENGTH'           => $row['Length'],
262 262
                 'SCALE'            => $row['Scale'],
263 263
                 'PRECISION'        => $row['Precision'],
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         }
293 293
 
294 294
         if (isset($this->_config['port'])) {
295
-            $port = (integer) $this->_config['port'];
295
+            $port = (integer)$this->_config['port'];
296 296
         } else {
297 297
             $port = null;
298 298
         }
@@ -305,13 +305,13 @@  discard block
 block discarded – undo
305 305
 
306 306
         $this->_connection = mysqli_init();
307 307
 
308
-        if(!empty($this->_config['driver_options'])) {
309
-            foreach($this->_config['driver_options'] as $option=>$value) {
310
-                if(is_string($option)) {
308
+        if (!empty($this->_config['driver_options'])) {
309
+            foreach ($this->_config['driver_options'] as $option=>$value) {
310
+                if (is_string($option)) {
311 311
                     // Suppress warnings here
312 312
                     // Ignore it if it's not a valid constant
313 313
                     $option = @constant(strtoupper($option));
314
-                    if($option === null)
314
+                    if ($option === null)
315 315
                         continue;
316 316
                 }
317 317
                 mysqli_options($this->_connection, $option, $value);
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      */
353 353
     public function isConnected()
354 354
     {
355
-        return ((bool) ($this->_connection instanceof mysqli));
355
+        return ((bool)($this->_connection instanceof mysqli));
356 356
     }
357 357
 
358 358
     /**
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     public function lastInsertId($tableName = null, $primaryKey = null)
415 415
     {
416 416
         $mysqli = $this->_connection;
417
-        return (string) $mysqli->insert_id;
417
+        return (string)$mysqli->insert_id;
418 418
     }
419 419
 
420 420
     /**
@@ -548,9 +548,9 @@  discard block
 block discarded – undo
548 548
     {
549 549
         $this->_connect();
550 550
         $version = $this->_connection->server_version;
551
-        $major = (int) ($version / 10000);
552
-        $minor = (int) ($version % 10000 / 100);
553
-        $revision = (int) ($version % 100);
551
+        $major = (int)($version / 10000);
552
+        $minor = (int)($version % 10000 / 100);
553
+        $revision = (int)($version % 100);
554 554
         return $major . '.' . $minor . '.' . $revision;
555 555
     }
556 556
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -311,8 +311,9 @@
 block discarded – undo
311 311
                     // Suppress warnings here
312 312
                     // Ignore it if it's not a valid constant
313 313
                     $option = @constant(strtoupper($option));
314
-                    if($option === null)
315
-                        continue;
314
+                    if($option === null) {
315
+                                            continue;
316
+                    }
316 317
                 }
317 318
                 mysqli_options($this->_connection, $option, $value);
318 319
             }
Please login to merge, or discard this patch.