Passed
Branch 3.0.0 (bab743)
by Joao
04:18
created
src/Store/DbCached.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             $iterator = $this->dbDriver->getIterator($sql, $params);
54 54
 
55 55
             $cacheItem->set($iterator->toArray());
56
-            $cacheItem->expiresAfter(DateInterval::createFromDateString($this->timeToCache . " seconds"));
56
+            $cacheItem->expiresAfter(DateInterval::createFromDateString($this->timeToCache." seconds"));
57 57
 
58 58
             $this->cacheEngine->save($cacheItem);
59 59
         }
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
 
79 79
         // Define the query key
80 80
         if (is_array($arKey2) && count($arKey2) > 0) {
81
-            $key2 = ":" . md5(json_encode($arKey2));
81
+            $key2 = ":".md5(json_encode($arKey2));
82 82
         } else {
83 83
             $key2 = "";
84 84
         }
85 85
 
86
-        return  "qry:" . $key1 . $key2;
86
+        return  "qry:".$key1.$key2;
87 87
     }
88 88
 
89 89
     public function getScalar($sql, $array = null)
Please login to merge, or discard this patch.
src/Store/Helpers/SqlBind.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
                     "/:$paramName([^\\w\\d]|$)/",
79 79
                 ],
80 80
                 [
81
-                    $dbArg . '',
82
-                    $dbArg . '$1',
81
+                    $dbArg.'',
82
+                    $dbArg.'$1',
83 83
                 ],
84 84
                 $sql,
85 85
                 -1,
Please login to merge, or discard this patch.
src/Store/Helpers/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/Store/Helpers/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/Store/Helpers/DbDblibFunctions.php 2 patches
Indentation   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
 
66 66
     /**
67 67
      * Format date column in sql string given an input format that understands Y M D
68
-
69
-*
68
+     *
70 69
 *@param string $format
71 70
      * @param bool|string $column
72 71
      * @return string
Please login to merge, or discard this 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/Store/Helpers/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/Store/Helpers/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.