Completed
Pull Request — master (#2)
by
unknown
04:35
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      *
109 109
      * @param $query
110 110
      * @param Connection|null $connection
111
-     * @return mixed
111
+     * @return null|Result
112 112
      */
113 113
     public function query($query, Connection $connection = null)
114 114
     {
Please login to merge, or discard this patch.
src/BridgeComponents/ManageConnections.php 2 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
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function connect($server = null, $username = null, $password = null, $newLink = false, $clientFlags = 0)
25 25
     {
26
-        if ($server   === null) {
26
+        if ($server === null) {
27 27
             $server = ini_get('mysql.default_host');
28 28
         }
29 29
         if ($username === null) {
Please login to merge, or discard this patch.
src/BridgeComponents/FetchResults.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -110,6 +110,9 @@
 block discarded – undo
110 110
         return (int) $countResult->fetch()[0];
111 111
     }
112 112
 
113
+    /**
114
+     * @param integer $style
115
+     */
113 116
     protected function convertFetchStyle($style)
114 117
     {
115 118
         switch ($style) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     {
105 105
         $query = $result->getStatement()->queryString;
106 106
         $countResult = $result->getConnection()->query(
107
-            'SELECT COUNT(*) FROM ('. $query .') AS count_table'
107
+            'SELECT COUNT(*) FROM ('.$query.') AS count_table'
108 108
         );
109 109
 
110 110
         return (int) $countResult->fetch()[0];
Please login to merge, or discard this patch.