Completed
Push — master ( 797c9e...b671da )
by Matteo
02:15
created
src/Manager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
 
174 174
     public function setLastConnection($id)
175 175
     {
176
-        uksort($this->connections, function ($a, $b) use ($id) {
176
+        uksort($this->connections, function($a, $b) use ($id) {
177 177
             if ($a === $id) return 1;
178 178
             if ($b === $id) return -1;
179 179
             return 0;
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,8 +174,12 @@
 block discarded – undo
174 174
     public function setLastConnection($id)
175 175
     {
176 176
         uksort($this->connections, function ($a, $b) use ($id) {
177
-            if ($a === $id) return 1;
178
-            if ($b === $id) return -1;
177
+            if ($a === $id) {
178
+                return 1;
179
+            }
180
+            if ($b === $id) {
181
+                return -1;
182
+            }
179 183
             return 0;
180 184
         });
181 185
     }
Please login to merge, or discard this patch.
src/BridgeComponents/ManageConnections.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
         return $this->manager->connect("mysql:host={$server};", $username, $password, $options, $newLink);
32 32
     }
33 33
 
34
+    /**
35
+     * @param integer $clientFlags
36
+     */
34 37
     protected function parseClientFlags($clientFlags)
35 38
     {
36 39
         $options = [];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function connect($server = null, $username = null, $password = null, $newLink = false, $clientFlags = 0)
24 24
     {
25
-        if ($server   === null) $server   = ini_get("mysql.default_host");
25
+        if ($server === null) $server   = ini_get("mysql.default_host");
26 26
         if ($username === null) $username = ini_get("mysql.default_user");
27 27
         if ($password === null) $password = ini_get("mysql.default_password");
28 28
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,9 +46,15 @@
 block discarded – undo
46 46
 
47 47
     public function connect($server = null, $username = null, $password = null, $newLink = false, $clientFlags = 0)
48 48
     {
49
-        if ($server   === null) $server   = ini_get("mysql.default_host");
50
-        if ($username === null) $username = ini_get("mysql.default_user");
51
-        if ($password === null) $password = ini_get("mysql.default_password");
49
+        if ($server   === null) {
50
+            $server   = ini_get("mysql.default_host");
51
+        }
52
+        if ($username === null) {
53
+            $username = ini_get("mysql.default_user");
54
+        }
55
+        if ($password === null) {
56
+            $password = ini_get("mysql.default_password");
57
+        }
52 58
 
53 59
         // @todo: implement $newLInk and $clientFlags
54 60
 
Please login to merge, or discard this patch.
src/Result.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -93,6 +93,9 @@
 block discarded – undo
93 93
         $this->cursor = $rowNumber;
94 94
     }
95 95
 
96
+    /**
97
+     * @param integer $columnNumber
98
+     */
96 99
     public function getColumnMeta($columnNumber)
97 100
     {
98 101
         return $this->statement->getColumnMeta($columnNumber);
Please login to merge, or discard this patch.
src/BridgeComponents/EscapeInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
         $escaped = $connection->quote($unescapedString);
17 17
         // Hack!
18
-        if ($escaped[0] === "'" && $escaped[strlen($escaped)-1] === "'") {
18
+        if ($escaped[0] === "'" && $escaped[strlen($escaped) - 1] === "'") {
19 19
             return substr($escaped, 1, -1);
20 20
         }
21 21
 
Please login to merge, or discard this patch.