@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * See LICENSE bundled with this library for license details. |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -require_once __DIR__.'/../autoloader.php'; |
|
| 7 | +require_once __DIR__ . '/../autoloader.php'; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class CustomOperator |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * @param string $class The fully-qualified class name. |
| 9 | 9 | * @return void |
| 10 | 10 | */ |
| 11 | -spl_autoload_register(function ($class) { |
|
| 11 | +spl_autoload_register(function($class) { |
|
| 12 | 12 | |
| 13 | 13 | // project-specific namespace prefix |
| 14 | 14 | $prefix = 'LogicTree\\'; |
@@ -117,8 +117,8 @@ |
||
| 117 | 117 | |
| 118 | 118 | private function retrieveDefaultOperators(): array |
| 119 | 119 | { |
| 120 | - return array_map(static function ($operators) { |
|
| 121 | - return array_map(static function ($operator) { |
|
| 120 | + return array_map(static function($operators) { |
|
| 121 | + return array_map(static function($operator) { |
|
| 122 | 122 | return new $operator(); |
| 123 | 123 | }, $operators); |
| 124 | 124 | }, self::DEFAULT_OPERATORS); |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * @param string $operator |
| 25 | 25 | * @return NodeInterface |
| 26 | 26 | */ |
| 27 | - public function setOperator(string $operator);//: NodeInterface; |
|
| 27 | + public function setOperator(string $operator); //: NodeInterface; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Retrieve the parent combine |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * @param CombineInterface|null $condition |
| 40 | 40 | * @return NodeInterface |
| 41 | 41 | */ |
| 42 | - public function setParent(?CombineInterface $condition);//: NodeInterface; |
|
| 42 | + public function setParent(?CombineInterface $condition); //: NodeInterface; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * Check if it has an existing parent |