@@ -15,13 +15,13 @@ |
||
15 | 15 | * @param Expr $expr Expression |
16 | 16 | * @param array $attributes Additional attributes |
17 | 17 | */ |
18 | - public function __construct(Expr $expr, array $attributes = []) { |
|
18 | + public function __construct( Expr $expr, array $attributes = [ ] ) { |
|
19 | 19 | $this->attributes = $attributes; |
20 | 20 | $this->expr = $expr; |
21 | 21 | } |
22 | 22 | |
23 | 23 | public function getSubNodeNames() : array { |
24 | - return ['expr']; |
|
24 | + return [ 'expr' ]; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function getType() : string { |
@@ -23,14 +23,14 @@ |
||
23 | 23 | * @param int $type Type of include |
24 | 24 | * @param array $attributes Additional attributes |
25 | 25 | */ |
26 | - public function __construct(Expr $expr, int $type, array $attributes = []) { |
|
26 | + public function __construct( Expr $expr, int $type, array $attributes = [ ] ) { |
|
27 | 27 | $this->attributes = $attributes; |
28 | 28 | $this->expr = $expr; |
29 | 29 | $this->type = $type; |
30 | 30 | } |
31 | 31 | |
32 | 32 | public function getSubNodeNames() : array { |
33 | - return ['expr', 'type']; |
|
33 | + return [ 'expr', 'type' ]; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public function getType() : string { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | // For use in "kind" attribute |
10 | 10 | const KIND_DOUBLE = 1; // "double" syntax |
11 | - const KIND_FLOAT = 2; // "float" syntax |
|
11 | + const KIND_FLOAT = 2; // "float" syntax |
|
12 | 12 | const KIND_REAL = 3; // "real" syntax |
13 | 13 | |
14 | 14 | public function getType() : string { |
@@ -15,13 +15,13 @@ |
||
15 | 15 | * @param Expr $var Variable |
16 | 16 | * @param array $attributes Additional attributes |
17 | 17 | */ |
18 | - public function __construct(Expr $var, array $attributes = []) { |
|
18 | + public function __construct( Expr $var, array $attributes = [ ] ) { |
|
19 | 19 | $this->attributes = $attributes; |
20 | 20 | $this->var = $var; |
21 | 21 | } |
22 | 22 | |
23 | 23 | public function getSubNodeNames() : array { |
24 | - return ['var']; |
|
24 | + return [ 'var' ]; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function getType() : string { |
@@ -21,14 +21,14 @@ |
||
21 | 21 | * @param array<Arg|VariadicPlaceholder> $args Arguments |
22 | 22 | * @param array $attributes Additional attributes |
23 | 23 | */ |
24 | - public function __construct($class, array $args = [], array $attributes = []) { |
|
24 | + public function __construct( $class, array $args = [ ], array $attributes = [ ] ) { |
|
25 | 25 | $this->attributes = $attributes; |
26 | 26 | $this->class = $class; |
27 | 27 | $this->args = $args; |
28 | 28 | } |
29 | 29 | |
30 | 30 | public function getSubNodeNames() : array { |
31 | - return ['class', 'args']; |
|
31 | + return [ 'class', 'args' ]; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function getType() : string { |
@@ -15,13 +15,13 @@ |
||
15 | 15 | * @param Node\Expr $expr Expression |
16 | 16 | * @param array $attributes Additional attributes |
17 | 17 | */ |
18 | - public function __construct(Node\Expr $expr, array $attributes = []) { |
|
18 | + public function __construct( Node\Expr $expr, array $attributes = [ ] ) { |
|
19 | 19 | $this->attributes = $attributes; |
20 | 20 | $this->expr = $expr; |
21 | 21 | } |
22 | 22 | |
23 | 23 | public function getSubNodeNames() : array { |
24 | - return ['expr']; |
|
24 | + return [ 'expr' ]; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function getType() : string { |
@@ -18,13 +18,13 @@ |
||
18 | 18 | * @param Expr $expr Expression |
19 | 19 | * @param array $attributes Additional attributes |
20 | 20 | */ |
21 | - public function __construct(Expr $var, Expr $expr, array $attributes = []) { |
|
21 | + public function __construct( Expr $var, Expr $expr, array $attributes = [ ] ) { |
|
22 | 22 | $this->attributes = $attributes; |
23 | 23 | $this->var = $var; |
24 | 24 | $this->expr = $expr; |
25 | 25 | } |
26 | 26 | |
27 | 27 | public function getSubNodeNames() : array { |
28 | - return ['var', 'expr']; |
|
28 | + return [ 'var', 'expr' ]; |
|
29 | 29 | } |
30 | 30 | } |
@@ -15,13 +15,13 @@ |
||
15 | 15 | * @param Expr[] $vars Variables |
16 | 16 | * @param array $attributes Additional attributes |
17 | 17 | */ |
18 | - public function __construct(array $vars, array $attributes = []) { |
|
18 | + public function __construct( array $vars, array $attributes = [ ] ) { |
|
19 | 19 | $this->attributes = $attributes; |
20 | 20 | $this->vars = $vars; |
21 | 21 | } |
22 | 22 | |
23 | 23 | public function getSubNodeNames() : array { |
24 | - return ['vars']; |
|
24 | + return [ 'vars' ]; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function getType() : string { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param bool $byRef Whether to assign by reference |
24 | 24 | * @param array $attributes Additional attributes |
25 | 25 | */ |
26 | - public function __construct(Expr $value, Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) { |
|
26 | + public function __construct( Expr $value, Expr $key = null, bool $byRef = false, array $attributes = [ ], bool $unpack = false ) { |
|
27 | 27 | $this->attributes = $attributes; |
28 | 28 | $this->key = $key; |
29 | 29 | $this->value = $value; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | public function getSubNodeNames() : array { |
35 | - return ['key', 'value', 'byRef', 'unpack']; |
|
35 | + return [ 'key', 'value', 'byRef', 'unpack' ]; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function getType() : string { |