Completed
Push — master ( b6a8e0...839427 )
by Patrick
23s
created
Data/DataSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         throw new \Exception('Unimplemented');
40 40
     }
41 41
 
42
-    public function quote(string $string, int $type = \PDO::PARAM_STR): string|false
42
+    public function quote(string $string, int $type = \PDO::PARAM_STR): string | false
43 43
     {
44 44
         throw new \Exception('Unimplemented');
45 45
     }
Please login to merge, or discard this patch.
Data/FilterClause.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $this->var2  = $rest;
97 97
         if($this->op === 'in')
98 98
         {
99
-            $this->var2 = explode(",",trim($rest, " ()"));
99
+            $this->var2 = explode(",", trim($rest, " ()"));
100 100
         }
101 101
     }
102 102
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                 {
116 116
                     $array[$i] = $dataset->quote($this->var2[$i]);
117 117
                 }
118
-                return $this->var1.' IN ('.implode(',',$array).')';
118
+                return $this->var1.' IN ('.implode(',', $array).')';
119 119
             default:
120 120
                 return $this->var1.$this->op.$this->var2;
121 121
                 break;
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,9 +152,9 @@
 block discarded – undo
152 152
             $case = true;
153 153
         }
154 154
         if($case)
155
-	    {
155
+        {
156 156
             if(class_exists('MongoRegex'))
157
-	        {
157
+            {
158 158
                 return array($field=>array('$regex'=>new \MongoRegex('/'.$this->var2.'/i')));
159 159
             }
160 160
             else
Please login to merge, or discard this patch.
Data/DataTableSessionHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         return true;
29 29
     }
30 30
 
31
-    public function read($id): string|false
31
+    public function read($id): string | false
32 32
     {
33 33
         $filter = new \Flipside\Data\Filter("sessionId eq '$id'");
34 34
 	$data = $this->dataTable->read($filter, array('sessionData'));
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
         return $this->dataTable->delete($filter);
61 61
     }
62 62
 
63
-    public function gc($maxlifetime): int|false
63
+    public function gc($maxlifetime): int | false
64 64
     {
65
-        $date = date("Y-m-d H:i:s", time()-$maxlifetime);
65
+        $date = date("Y-m-d H:i:s", time() - $maxlifetime);
66 66
         $filter = new \Flipside\Data\Filter("sessionLastAccess lt '$date'");
67 67
         return $this->dataTable->delete($filter);
68 68
     }
Please login to merge, or discard this patch.
Data/SQLDataSet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         $stmt = $this->pdo->query($sql);
261 261
         if($stmt === false)
262 262
         {
263
-            if (php_sapi_name() !== "cli") {
263
+            if(php_sapi_name() !== "cli") {
264 264
               error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true));
265 265
             }
266 266
             return false;
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
         $sql = "INSERT INTO `$tablename` ($cols) VALUES ($set);";
311 311
         if($this->pdo->exec($sql) === false)
312 312
         {
313
-            if (php_sapi_name() !== "cli") {
313
+            if(php_sapi_name() !== "cli") {
314 314
                 error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true));
315 315
             }
316 316
             return false;
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
         return $this->pdo->errorInfo();
368 368
     }
369 369
 
370
-    public function quote(string $string, int $type = \PDO::PARAM_STR): string|false
370
+    public function quote(string $string, int $type = \PDO::PARAM_STR): string | false
371 371
     {
372 372
         return $this->pdo->quote($string, $type);
373 373
     }
Please login to merge, or discard this patch.