Completed
Pull Request — master (#1)
by Joao
04:01 queued 01:28
created
src/Database/SqlBind.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $arg = str_replace("_", SqlBind::keyAdj($key), $paramSubstName);
50 50
 
51 51
             $count = 0;
52
-            $sql = preg_replace("/(\[\[$key\]\]|:" . $key . "[\s\W]|:$key\$)/", $arg . ' ', $sql, -1, $count);
52
+            $sql = preg_replace("/(\[\[$key\]\]|:".$key."[\s\W]|:$key\$)/", $arg.' ', $sql, -1, $count);
53 53
             if ($count === 0) {
54 54
                 unset($params[$key]);
55 55
             }
Please login to merge, or discard this patch.
src/Database/Expressions/DbBaseFunctions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             if (isset($pattern[$value])) {
88 88
                 $formatted = $pattern[$value];
89 89
             } else {
90
-                $formatted = $delimitString . $value . $delimitString;
90
+                $formatted = $delimitString.$value.$delimitString;
91 91
             }
92 92
             $prepareString[$key] = $formatted;
93 93
         }
Please login to merge, or discard this patch.
src/Database/Expressions/DbDblibFunctions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         return preg_replace(
42 42
             '~(\s[Tt][Oo][Pp])\s.*?\d+\s~',
43
-            '$1 ' . $qty . ' ',
43
+            '$1 '.$qty.' ',
44 44
             $sql
45 45
         );
46 46
     }
Please login to merge, or discard this patch.
src/Database/Expressions/DbPgsqlFunctions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@
 block discarded – undo
26 26
         }
27 27
 
28 28
         if (stripos($sql, ' LIMIT ') === false) {
29
-            $sql = $sql . " LIMIT x OFFSET y";
29
+            $sql = $sql." LIMIT x OFFSET y";
30 30
         }
31 31
 
32 32
         return preg_replace(
33 33
             '~(\s[Ll][Ii][Mm][Ii][Tt])\s.*?\s([Oo][Ff][Ff][Ss][Ee][Tt])\s.*~',
34
-            '$1 ' . $qty .' $2 ' .$start,
34
+            '$1 '.$qty.' $2 '.$start,
35 35
             $sql
36 36
         );
37 37
     }
Please login to merge, or discard this patch.
src/Database/Expressions/DbMysqlFunctions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
     public function concat($str1, $str2 = null)
11 11
     {
12
-        return "concat(" . implode(func_get_args(), ', ') . ")";
12
+        return "concat(".implode(func_get_args(), ', ').")";
13 13
     }
14 14
 
15 15
     /**
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
         }
27 27
 
28 28
         if (stripos($sql, ' LIMIT ') === false) {
29
-            $sql = $sql . " LIMIT x, y";
29
+            $sql = $sql." LIMIT x, y";
30 30
         }
31 31
 
32 32
         return preg_replace(
33 33
             '~(\s[Ll][Ii][Mm][Ii][Tt])\s.*?,\s*.*~',
34
-            '$1 ' . $start .', ' .$qty,
34
+            '$1 '.$start.', '.$qty,
35 35
             $sql
36 36
         );
37 37
     }
Please login to merge, or discard this patch.
src/Database/Expressions/DbSqliteFunctions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
         }
33 33
 
34 34
         if (stripos($sql, ' LIMIT ') === false) {
35
-            $sql = $sql . " LIMIT x, y";
35
+            $sql = $sql." LIMIT x, y";
36 36
         }
37 37
 
38 38
         return preg_replace(
39 39
             '~(\s[Ll][Ii][Mm][Ii][Tt])\s.*?,\s*.*~',
40
-            '$1 ' . $start .', ' .$qty,
40
+            '$1 '.$start.', '.$qty,
41 41
             $sql
42 42
         );
43 43
     }
Please login to merge, or discard this patch.
src/Database/DbOci8Driver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
 
64 64
         $host = $connMngt->getServer();
65 65
 
66
-        $tns = "(DESCRIPTION = " .
67
-            "	(ADDRESS = (PROTOCOL = $protocol)(HOST = $host)(PORT = $port)) " .
68
-            "		(CONNECT_DATA = (SERVICE_NAME = $svcName)) " .
66
+        $tns = "(DESCRIPTION = ".
67
+            "	(ADDRESS = (PROTOCOL = $protocol)(HOST = $host)(PORT = $port)) ".
68
+            "		(CONNECT_DATA = (SERVICE_NAME = $svcName)) ".
69 69
             ")";
70 70
 
71 71
         return $tns;
Please login to merge, or discard this patch.
src/Database/DbSqlRelayDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             sqlrcur_prepareQuery($cur, $sql);
57 57
             $bindCount = 1;
58 58
             foreach ($array as $key => $value) {
59
-                $field = strval($bindCount ++);
59
+                $field = strval($bindCount++);
60 60
                 sqlrcur_inputBind($cur, $field, $value);
61 61
             }
62 62
             $success = sqlrcur_executeQuery($cur);
Please login to merge, or discard this patch.
src/Database/PdoOci.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function __construct(ConnectionManagement $connMngt)
12 12
     {
13
-        $strcnn = $connMngt->getDriver() . ":dbname=" . DbOci8Driver::getTnsString($connMngt);
13
+        $strcnn = $connMngt->getDriver().":dbname=".DbOci8Driver::getTnsString($connMngt);
14 14
 
15 15
         $postOptions = [
16 16
             PDO::ATTR_EMULATE_PREPARES => true
Please login to merge, or discard this patch.