Completed
Pull Request — master (#1)
by Joao
04:01 queued 01:28
created
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.
src/Repository/NoSqlDataset.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
     private $_connectionManagement;
20 20
 
21 21
     /**
22
-
23 22
      * @var NoSqlDriverInterface
24 23
      */
25 24
     private $_dbDriver = null;
Please login to merge, or discard this patch.
src/Repository/FixedTextFileDataset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         if (!preg_match("~^https?://~", $source)) {
39 39
             if (!file_exists($this->source)) {
40
-                throw new NotFoundException("The specified file " . $this->source . " does not exists");
40
+                throw new NotFoundException("The specified file ".$this->source." does not exists");
41 41
             }
42 42
 
43 43
             $this->sourceType = "FILE";
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
         if (!$handle) {
75 75
             throw new DatasetException("TextFileDataset Socket error: $errstr ($errno)");
76 76
         } else {
77
-            $out = "GET " . $urlParts[4] . " HTTP/1.1\r\n";
78
-            $out .= "Host: " . $urlParts[2] . "\r\n";
77
+            $out = "GET ".$urlParts[4]." HTTP/1.1\r\n";
78
+            $out .= "Host: ".$urlParts[2]."\r\n";
79 79
             $out .= "Connection: Close\r\n\r\n";
80 80
 
81 81
             fwrite($handle, $out);
Please login to merge, or discard this patch.
src/ConnectionManagement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $parts = array();
169 169
         if (!preg_match($pat, $this->getDbConnectionString(), $parts)) {
170 170
             throw new InvalidArgumentException(
171
-                "Connection string " . $this->getDbConnectionString() . " is invalid! Please fix it."
171
+                "Connection string ".$this->getDbConnectionString()." is invalid! Please fix it."
172 172
             );
173 173
         }
174 174
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
         if (!isset($parts['path']) && !isset($parts['host'])) {
179 179
             throw new InvalidArgumentException(
180
-                "Connection string " . $this->getDbConnectionString() . " is invalid! Please fix it."
180
+                "Connection string ".$this->getDbConnectionString()." is invalid! Please fix it."
181 181
             );
182 182
         }
183 183
         
Please login to merge, or discard this patch.