Completed
Pull Request — master (#6)
by
unknown
01:25
created
autoload.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // if library is in dev environement with its own vendor, include its autoload
4
-if(file_exists(__DIR__ . '/vendor'))
4
+if (file_exists(__DIR__ . '/vendor'))
5 5
     require_once __DIR__ . '/vendor/autoload.php';
6 6
 // if library is in vendor of another project, include the global autolaod
7 7
 else
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // if library is in dev environement with its own vendor, include its autoload
4
-if(file_exists(__DIR__ . '/vendor'))
4
+if(file_exists(__DIR__ . '/vendor')) {
5 5
     require_once __DIR__ . '/vendor/autoload.php';
6
+}
6 7
 // if library is in vendor of another project, include the global autolaod
7
-else
8
+else {
8 9
     require_once __DIR__ . '/../../autoload.php';
10
+}
Please login to merge, or discard this patch.
src/Error/FilterException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public static function syntaxError($message, $previous = null)
23 23
     {
24
-        return new static('[Syntax Error] '.$message, 0, $previous);
24
+        return new static('[Syntax Error] ' . $message, 0, $previous);
25 25
     }
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
src/Ast/AttributePath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function __toString()
28 28
     {
29 29
         if ($this->schema) {
30
-            return $this->schema.' : '.implode('.', $this->attributeNames);
30
+            return $this->schema . ' : ' . implode('.', $this->attributeNames);
31 31
         }
32 32
 
33 33
         return implode('.', $this->attributeNames);
Please login to merge, or discard this patch.
src/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $terms[] = $this->conjunction();
129 129
 
130 130
         $isNextTokenOr = true;
131
-        while($this->lexer->isNextToken(Tokens::T_SP) && $isNextTokenOr) {
131
+        while ($this->lexer->isNextToken(Tokens::T_SP) && $isNextTokenOr) {
132 132
             $nextToken = $this->lexer->glimpse();
133 133
             if ($this->isName('or', $nextToken)) {
134 134
                 $this->match(Tokens::T_SP);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         $factors[] = $this->factor();
157 157
 
158 158
         $isNextTokenAnd = true;
159
-        while($this->lexer->isNextToken(Tokens::T_SP) && $isNextTokenAnd) {
159
+        while ($this->lexer->isNextToken(Tokens::T_SP) && $isNextTokenAnd) {
160 160
             $nextToken = $this->lexer->glimpse();
161 161
             if ($this->isName('and', $nextToken)) {
162 162
                 $this->match(Tokens::T_SP);
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
             // Use gmmktime because the timestamp will always be given in UTC.
318 318
             $ts = gmmktime($hour, $minute, $second, $month, $day, $year);
319 319
 
320
-            $value = new \DateTime('@'.$ts, new \DateTimeZone('UTC'));
320
+            $value = new \DateTime('@' . $ts, new \DateTimeZone('UTC'));
321 321
         }
322 322
 
323 323
         return $value;
Please login to merge, or discard this patch.