@@ -1,7 +1,7 @@ |
||
| 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 |
@@ -1,8 +1,10 @@ |
||
| 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 | +} |
|
@@ -21,7 +21,7 @@ |
||
| 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 | /** |
@@ -27,7 +27,7 @@ |
||
| 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); |
@@ -311,7 +311,7 @@ |
||
| 311 | 311 | // Use gmmktime because the timestamp will always be given in UTC. |
| 312 | 312 | $ts = gmmktime($hour, $minute, $second, $month, $day, $year); |
| 313 | 313 | |
| 314 | - $value = new \DateTime('@'.$ts, new \DateTimeZone('UTC')); |
|
| 314 | + $value = new \DateTime('@' . $ts, new \DateTimeZone('UTC')); |
|
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | return $value; |