Completed
Push — master ( e58eb5...5b23f9 )
by James Ekow Abaka
02:57
created
src/FilterCompiler.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         'comma' => ','
43 43
     );
44 44
     private $operators = array(
45
-        array('between', 'or' , 'like'),
45
+        array('between', 'or', 'like'),
46 46
         array('and'),
47 47
         array('not'),
48 48
         array('equals', 'greater', 'less', 'greater_or_equal', 'less_or_equal', 'not_equal', 'is'),
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->getToken();
58 58
         $expression = $this->parseExpression();
59 59
         if ($this->token !== false) {
60
-            throw new FilterCompilerException("Unexpected '" . $this->token . "' in filter [$filter]");
60
+            throw new FilterCompilerException("Unexpected '".$this->token."' in filter [$filter]");
61 61
         }
62 62
         $parsed = $this->renderExpression($expression);
63 63
         return $parsed;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     private function renderExpression($expression) {
67 67
         if (is_array($expression)) {
68
-            $expression = $this->renderExpression($expression['left']) . " {$expression['opr']} " . $this->renderExpression($expression['right']);
68
+            $expression = $this->renderExpression($expression['left'])." {$expression['opr']} ".$this->renderExpression($expression['right']);
69 69
         }
70 70
         return $expression;
71 71
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $tokens = [$tokens];
76 76
         }
77 77
         if (array_search($this->lookahead, $tokens) === false) {
78
-            throw new FilterCompilerException("Expected " . implode(' or ', $tokens) . " but found " . $this->lookahead);
78
+            throw new FilterCompilerException("Expected ".implode(' or ', $tokens)." but found ".$this->lookahead);
79 79
         }
80 80
     }
81 81
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     }
161 161
 
162 162
     private function returnPositionTag() {
163
-        return ":filter_bind_" . ( ++$this->numPositions);
163
+        return ":filter_bind_".( ++$this->numPositions);
164 164
     }
165 165
 
166 166
     private function parseObracket() {
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         }
238 238
 
239 239
         if ($this->token === false && strlen($this->filter) > 0) {
240
-            throw new FilterCompilerException("Unexpected character [" . $this->filter[0] . "] begining " . $this->filter . ".");
240
+            throw new FilterCompilerException("Unexpected character [".$this->filter[0]."] begining ".$this->filter.".");
241 241
         }
242 242
     }
243 243
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $rewritten = [];
252 252
         foreach ($data as $key => $value) {
253 253
             if (is_numeric($key)) {
254
-                $rewritten["filter_bind_" . ($key + 1)] = $value;
254
+                $rewritten["filter_bind_".($key + 1)] = $value;
255 255
             } else {
256 256
                 $rewritten[$key] = $value;
257 257
             }
Please login to merge, or discard this patch.
src/QueryEngine.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
             $valueFields[] = ":{$field}";
30 30
         }
31 31
 
32
-        return "INSERT INTO " . $table .
33
-            " (" . implode(", ", $quotedFields) . ") VALUES (" . implode(', ', $valueFields) . ")";
32
+        return "INSERT INTO ".$table.
33
+            " (".implode(", ", $quotedFields).") VALUES (".implode(', ', $valueFields).")";
34 34
     }
35 35
 
36 36
     public function getBulkUpdateQuery($data, $parameters) {
@@ -71,10 +71,10 @@  discard block
 block discarded – undo
71 71
             }
72 72
         }
73 73
 
74
-        return "UPDATE " .
75
-            $model->getDBStoreInformation()['quoted_table'] .
76
-            " SET " . implode(', ', $valueFields) .
77
-            " WHERE " . implode(' AND ', $conditions);
74
+        return "UPDATE ".
75
+            $model->getDBStoreInformation()['quoted_table'].
76
+            " SET ".implode(', ', $valueFields).
77
+            " WHERE ".implode(' AND ', $conditions);
78 78
     }
79 79
 
80 80
     public function getSelectQuery($parameters) {
Please login to merge, or discard this patch.
src/RecordWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     private $initialized = false;
62 62
 
63 63
     protected function initialize() {
64
-        if($this->initialized) return;
64
+        if ($this->initialized) return;
65 65
         $this->context = ORMContext::getInstance();
66 66
         $this->container = $this->context->getContainer();
67 67
         $this->adapter = $this->container->resolve(DriverAdapter::class);
Please login to merge, or discard this patch.
src/ORMContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     }
81 81
     
82 82
     public static function getInstance() {
83
-        if(self::$instance === null){ 
83
+        if (self::$instance === null) { 
84 84
             throw new NibiiException("A context has not yet been initialized");
85 85
         }
86 86
         return self::$instance;
Please login to merge, or discard this patch.
src/UniqueValidation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         }
69 69
 
70 70
         return $this->evaluateResult(
71
-            $field, $testItem->count() === 0, "The value of " . implode(', ', $field['name']) . " must be unique"
71
+            $field, $testItem->count() === 0, "The value of ".implode(', ', $field['name'])." must be unique"
72 72
         );
73 73
     }
74 74
 
Please login to merge, or discard this patch.