@@ -117,7 +117,7 @@ |
||
| 117 | 117 | 'opts' => [], |
| 118 | 118 | ]; |
| 119 | 119 | |
| 120 | - if (! empty($statement->parameters)) { |
|
| 120 | + if (!empty($statement->parameters)) { |
|
| 121 | 121 | $idx = 0; |
| 122 | 122 | foreach ($statement->parameters as $param) { |
| 123 | 123 | $retval['dir'][$idx] = $param->inOut; |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | if ($state === 1) { |
| 102 | - if (! $this->isLock) { |
|
| 102 | + if (!$this->isLock) { |
|
| 103 | 103 | // UNLOCK statement should not have any more tokens |
| 104 | 104 | $parser->error('Unexpected token.', $token); |
| 105 | 105 | break; |
@@ -27,15 +27,15 @@ |
||
| 27 | 27 | $debug = empty($argv[3]) ? null : rtrim($argv[3], '/'); |
| 28 | 28 | |
| 29 | 29 | // Checking if all directories are valid. |
| 30 | -if (! is_dir($input)) { |
|
| 30 | +if (!is_dir($input)) { |
|
| 31 | 31 | throw new Exception('The input directory does not exist.'); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | -if (! is_dir($output)) { |
|
| 34 | +if (!is_dir($output)) { |
|
| 35 | 35 | throw new Exception('The output directory does not exist.'); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | -if (($debug !== null) && (! is_dir($debug))) { |
|
| 38 | +if (($debug !== null) && (!is_dir($debug))) { |
|
| 39 | 39 | throw new Exception('The debug directory does not exist.'); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | $output = rtrim($argv[2], '/'); |
| 27 | 27 | |
| 28 | 28 | // Checking if all directories are valid. |
| 29 | -if (! is_dir($input)) { |
|
| 29 | +if (!is_dir($input)) { |
|
| 30 | 30 | throw new Exception('The input directory does not exist.'); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | -if (! is_dir($output)) { |
|
| 33 | +if (!is_dir($output)) { |
|
| 34 | 34 | throw new Exception('The output directory does not exist.'); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $str1 = new UtfString($this->testContents); |
| 28 | 28 | for ($i = 0; $i < $str1->length(); $i++) { |
| 29 | - $str1[$i];// Make offset offsetGet work |
|
| 29 | + $str1[$i]; // Make offset offsetGet work |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | foreach ($parser->statements as $statement) { |
| 65 | 65 | if ($statement instanceof TransactionStatement) { |
| 66 | 66 | foreach ($statement->statements as $transactionStatement) { |
| 67 | - if (! $transactionStatement instanceof SetStatement) { |
|
| 67 | + if (!$transactionStatement instanceof SetStatement) { |
|
| 68 | 68 | continue; |
| 69 | 69 | } |
| 70 | 70 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | continue; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - if (! $statement instanceof SetStatement) { |
|
| 77 | + if (!$statement instanceof SetStatement) { |
|
| 78 | 78 | continue; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * Test access to string. |
| 87 | 87 | */ |
| 88 | 88 | #[DataProvider('utf8StringsProvider')] |
| 89 | - public function testAccess(string $text, string|null $pos10, string|null $pos20): void |
|
| 89 | + public function testAccess(string $text, string | null $pos10, string | null $pos20): void |
|
| 90 | 90 | { |
| 91 | 91 | $str = new UtfString($text); |
| 92 | 92 | $this->assertEquals($pos10, $str->offsetGet(10)); |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * |
| 50 | 50 | * @return ArrayObj|Component[] |
| 51 | 51 | */ |
| 52 | - public static function parse(Parser $parser, TokensList $list, array $options = []): ArrayObj|array |
|
| 52 | + public static function parse(Parser $parser, TokensList $list, array $options = []): ArrayObj | array |
|
| 53 | 53 | { |
| 54 | 54 | $ret = empty($options['type']) ? new static() : []; |
| 55 | 55 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | public function build(): string |
| 49 | 49 | { |
| 50 | - if (! isset($this->statement)) { |
|
| 50 | + if (!isset($this->statement)) { |
|
| 51 | 51 | throw new RuntimeException('No statement inside WITH'); |
| 52 | 52 | } |
| 53 | 53 | |