Completed
Pull Request — master (#430)
by
unknown
02:43
created
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -7,33 +7,33 @@
 block discarded – undo
7 7
 
8 8
 class FuncCall extends CallLike
9 9
 {
10
-    /** @var Node\Name|Expr Function name */
11
-    public $name;
12
-    /** @var array<Node\Arg|Node\VariadicPlaceholder> Arguments */
13
-    public $args;
10
+	/** @var Node\Name|Expr Function name */
11
+	public $name;
12
+	/** @var array<Node\Arg|Node\VariadicPlaceholder> Arguments */
13
+	public $args;
14 14
 
15
-    /**
16
-     * Constructs a function call node.
17
-     *
18
-     * @param Node\Name|Expr                           $name       Function name
19
-     * @param array<Node\Arg|Node\VariadicPlaceholder> $args       Arguments
20
-     * @param array                                    $attributes Additional attributes
21
-     */
22
-    public function __construct($name, array $args = [], array $attributes = []) {
23
-        $this->attributes = $attributes;
24
-        $this->name = $name;
25
-        $this->args = $args;
26
-    }
15
+	/**
16
+	 * Constructs a function call node.
17
+	 *
18
+	 * @param Node\Name|Expr                           $name       Function name
19
+	 * @param array<Node\Arg|Node\VariadicPlaceholder> $args       Arguments
20
+	 * @param array                                    $attributes Additional attributes
21
+	 */
22
+	public function __construct($name, array $args = [], array $attributes = []) {
23
+		$this->attributes = $attributes;
24
+		$this->name = $name;
25
+		$this->args = $args;
26
+	}
27 27
 
28
-    public function getSubNodeNames() : array {
29
-        return ['name', 'args'];
30
-    }
28
+	public function getSubNodeNames() : array {
29
+		return ['name', 'args'];
30
+	}
31 31
     
32
-    public function getType() : string {
33
-        return 'Expr_FuncCall';
34
-    }
32
+	public function getType() : string {
33
+		return 'Expr_FuncCall';
34
+	}
35 35
 
36
-    public function getRawArgs(): array {
37
-        return $this->args;
38
-    }
36
+	public function getRawArgs(): array {
37
+		return $this->args;
38
+	}
39 39
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use PhpParser\Node;
6 6
 use PhpParser\Node\Expr;
7 7
 
8
-class FuncCall extends CallLike
9
-{
8
+class FuncCall extends CallLike {
10 9
     /** @var Node\Name|Expr Function name */
11 10
     public $name;
12 11
     /** @var array<Node\Arg|Node\VariadicPlaceholder> Arguments */
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -6,33 +6,33 @@
 block discarded – undo
6 6
 
7 7
 class Ternary extends Expr
8 8
 {
9
-    /** @var Expr Condition */
10
-    public $cond;
11
-    /** @var null|Expr Expression for true */
12
-    public $if;
13
-    /** @var Expr Expression for false */
14
-    public $else;
9
+	/** @var Expr Condition */
10
+	public $cond;
11
+	/** @var null|Expr Expression for true */
12
+	public $if;
13
+	/** @var Expr Expression for false */
14
+	public $else;
15 15
 
16
-    /**
17
-     * Constructs a ternary operator node.
18
-     *
19
-     * @param Expr      $cond       Condition
20
-     * @param null|Expr $if         Expression for true
21
-     * @param Expr      $else       Expression for false
22
-     * @param array                    $attributes Additional attributes
23
-     */
24
-    public function __construct(Expr $cond, $if, Expr $else, array $attributes = []) {
25
-        $this->attributes = $attributes;
26
-        $this->cond = $cond;
27
-        $this->if = $if;
28
-        $this->else = $else;
29
-    }
16
+	/**
17
+	 * Constructs a ternary operator node.
18
+	 *
19
+	 * @param Expr      $cond       Condition
20
+	 * @param null|Expr $if         Expression for true
21
+	 * @param Expr      $else       Expression for false
22
+	 * @param array                    $attributes Additional attributes
23
+	 */
24
+	public function __construct(Expr $cond, $if, Expr $else, array $attributes = []) {
25
+		$this->attributes = $attributes;
26
+		$this->cond = $cond;
27
+		$this->if = $if;
28
+		$this->else = $else;
29
+	}
30 30
 
31
-    public function getSubNodeNames() : array {
32
-        return ['cond', 'if', 'else'];
33
-    }
31
+	public function getSubNodeNames() : array {
32
+		return ['cond', 'if', 'else'];
33
+	}
34 34
     
35
-    public function getType() : string {
36
-        return 'Expr_Ternary';
37
-    }
35
+	public function getType() : string {
36
+		return 'Expr_Ternary';
37
+	}
38 38
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use PhpParser\Node\Expr;
6 6
 
7
-class Ternary extends Expr
8
-{
7
+class Ternary extends Expr {
9 8
     /** @var Expr Condition */
10 9
     public $cond;
11 10
     /** @var null|Expr Expression for true */
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 
7 7
 class Print_ extends Expr
8 8
 {
9
-    /** @var Expr Expression */
10
-    public $expr;
9
+	/** @var Expr Expression */
10
+	public $expr;
11 11
 
12
-    /**
13
-     * Constructs an print() node.
14
-     *
15
-     * @param Expr  $expr       Expression
16
-     * @param array $attributes Additional attributes
17
-     */
18
-    public function __construct(Expr $expr, array $attributes = []) {
19
-        $this->attributes = $attributes;
20
-        $this->expr = $expr;
21
-    }
12
+	/**
13
+	 * Constructs an print() node.
14
+	 *
15
+	 * @param Expr  $expr       Expression
16
+	 * @param array $attributes Additional attributes
17
+	 */
18
+	public function __construct(Expr $expr, array $attributes = []) {
19
+		$this->attributes = $attributes;
20
+		$this->expr = $expr;
21
+	}
22 22
 
23
-    public function getSubNodeNames() : array {
24
-        return ['expr'];
25
-    }
23
+	public function getSubNodeNames() : array {
24
+		return ['expr'];
25
+	}
26 26
     
27
-    public function getType() : string {
28
-        return 'Expr_Print';
29
-    }
27
+	public function getType() : string {
28
+		return 'Expr_Print';
29
+	}
30 30
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use PhpParser\Node\Expr;
6 6
 
7
-class Print_ extends Expr
8
-{
7
+class Print_ extends Expr {
9 8
     /** @var Expr Expression */
10 9
     public $expr;
11 10
 
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 
7 7
 class BitwiseNot extends Expr
8 8
 {
9
-    /** @var Expr Expression */
10
-    public $expr;
9
+	/** @var Expr Expression */
10
+	public $expr;
11 11
 
12
-    /**
13
-     * Constructs a bitwise not node.
14
-     *
15
-     * @param Expr  $expr       Expression
16
-     * @param array $attributes Additional attributes
17
-     */
18
-    public function __construct(Expr $expr, array $attributes = []) {
19
-        $this->attributes = $attributes;
20
-        $this->expr = $expr;
21
-    }
12
+	/**
13
+	 * Constructs a bitwise not node.
14
+	 *
15
+	 * @param Expr  $expr       Expression
16
+	 * @param array $attributes Additional attributes
17
+	 */
18
+	public function __construct(Expr $expr, array $attributes = []) {
19
+		$this->attributes = $attributes;
20
+		$this->expr = $expr;
21
+	}
22 22
 
23
-    public function getSubNodeNames() : array {
24
-        return ['expr'];
25
-    }
23
+	public function getSubNodeNames() : array {
24
+		return ['expr'];
25
+	}
26 26
     
27
-    public function getType() : string {
28
-        return 'Expr_BitwiseNot';
29
-    }
27
+	public function getType() : string {
28
+		return 'Expr_BitwiseNot';
29
+	}
30 30
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use PhpParser\Node\Expr;
6 6
 
7
-class BitwiseNot extends Expr
8
-{
7
+class BitwiseNot extends Expr {
9 8
     /** @var Expr Expression */
10 9
     public $expr;
11 10
 
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 
7 7
 class List_ extends Expr
8 8
 {
9
-    /** @var (ArrayItem|null)[] List of items to assign to */
10
-    public $items;
9
+	/** @var (ArrayItem|null)[] List of items to assign to */
10
+	public $items;
11 11
 
12
-    /**
13
-     * Constructs a list() destructuring node.
14
-     *
15
-     * @param (ArrayItem|null)[] $items      List of items to assign to
16
-     * @param array              $attributes Additional attributes
17
-     */
18
-    public function __construct(array $items, array $attributes = []) {
19
-        $this->attributes = $attributes;
20
-        $this->items = $items;
21
-    }
12
+	/**
13
+	 * Constructs a list() destructuring node.
14
+	 *
15
+	 * @param (ArrayItem|null)[] $items      List of items to assign to
16
+	 * @param array              $attributes Additional attributes
17
+	 */
18
+	public function __construct(array $items, array $attributes = []) {
19
+		$this->attributes = $attributes;
20
+		$this->items = $items;
21
+	}
22 22
 
23
-    public function getSubNodeNames() : array {
24
-        return ['items'];
25
-    }
23
+	public function getSubNodeNames() : array {
24
+		return ['items'];
25
+	}
26 26
     
27
-    public function getType() : string {
28
-        return 'Expr_List';
29
-    }
27
+	public function getType() : string {
28
+		return 'Expr_List';
29
+	}
30 30
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use PhpParser\Node\Expr;
6 6
 
7
-class List_ extends Expr
8
-{
7
+class List_ extends Expr {
9 8
     /** @var (ArrayItem|null)[] List of items to assign to */
10 9
     public $items;
11 10
 
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 
7 7
 class Empty_ extends Expr
8 8
 {
9
-    /** @var Expr Expression */
10
-    public $expr;
9
+	/** @var Expr Expression */
10
+	public $expr;
11 11
 
12
-    /**
13
-     * Constructs an empty() node.
14
-     *
15
-     * @param Expr  $expr       Expression
16
-     * @param array $attributes Additional attributes
17
-     */
18
-    public function __construct(Expr $expr, array $attributes = []) {
19
-        $this->attributes = $attributes;
20
-        $this->expr = $expr;
21
-    }
12
+	/**
13
+	 * Constructs an empty() node.
14
+	 *
15
+	 * @param Expr  $expr       Expression
16
+	 * @param array $attributes Additional attributes
17
+	 */
18
+	public function __construct(Expr $expr, array $attributes = []) {
19
+		$this->attributes = $attributes;
20
+		$this->expr = $expr;
21
+	}
22 22
 
23
-    public function getSubNodeNames() : array {
24
-        return ['expr'];
25
-    }
23
+	public function getSubNodeNames() : array {
24
+		return ['expr'];
25
+	}
26 26
     
27
-    public function getType() : string {
28
-        return 'Expr_Empty';
29
-    }
27
+	public function getType() : string {
28
+		return 'Expr_Empty';
29
+	}
30 30
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use PhpParser\Node\Expr;
6 6
 
7
-class Empty_ extends Expr
8
-{
7
+class Empty_ extends Expr {
9 8
     /** @var Expr Expression */
10 9
     public $expr;
11 10
 
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -7,29 +7,29 @@
 block discarded – undo
7 7
 
8 8
 class Instanceof_ extends Expr
9 9
 {
10
-    /** @var Expr Expression */
11
-    public $expr;
12
-    /** @var Name|Expr Class name */
13
-    public $class;
10
+	/** @var Expr Expression */
11
+	public $expr;
12
+	/** @var Name|Expr Class name */
13
+	public $class;
14 14
 
15
-    /**
16
-     * Constructs an instanceof check node.
17
-     *
18
-     * @param Expr      $expr       Expression
19
-     * @param Name|Expr $class      Class name
20
-     * @param array     $attributes Additional attributes
21
-     */
22
-    public function __construct(Expr $expr, $class, array $attributes = []) {
23
-        $this->attributes = $attributes;
24
-        $this->expr = $expr;
25
-        $this->class = $class;
26
-    }
15
+	/**
16
+	 * Constructs an instanceof check node.
17
+	 *
18
+	 * @param Expr      $expr       Expression
19
+	 * @param Name|Expr $class      Class name
20
+	 * @param array     $attributes Additional attributes
21
+	 */
22
+	public function __construct(Expr $expr, $class, array $attributes = []) {
23
+		$this->attributes = $attributes;
24
+		$this->expr = $expr;
25
+		$this->class = $class;
26
+	}
27 27
 
28
-    public function getSubNodeNames() : array {
29
-        return ['expr', 'class'];
30
-    }
28
+	public function getSubNodeNames() : array {
29
+		return ['expr', 'class'];
30
+	}
31 31
     
32
-    public function getType() : string {
33
-        return 'Expr_Instanceof';
34
-    }
32
+	public function getType() : string {
33
+		return 'Expr_Instanceof';
34
+	}
35 35
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use PhpParser\Node\Expr;
6 6
 use PhpParser\Node\Name;
7 7
 
8
-class Instanceof_ extends Expr
9
-{
8
+class Instanceof_ extends Expr {
10 9
     /** @var Expr Expression */
11 10
     public $expr;
12 11
     /** @var Name|Expr Class name */
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -6,29 +6,29 @@
 block discarded – undo
6 6
 
7 7
 class Assign extends Expr
8 8
 {
9
-    /** @var Expr Variable */
10
-    public $var;
11
-    /** @var Expr Expression */
12
-    public $expr;
9
+	/** @var Expr Variable */
10
+	public $var;
11
+	/** @var Expr Expression */
12
+	public $expr;
13 13
 
14
-    /**
15
-     * Constructs an assignment node.
16
-     *
17
-     * @param Expr  $var        Variable
18
-     * @param Expr  $expr       Expression
19
-     * @param array $attributes Additional attributes
20
-     */
21
-    public function __construct(Expr $var, Expr $expr, array $attributes = []) {
22
-        $this->attributes = $attributes;
23
-        $this->var = $var;
24
-        $this->expr = $expr;
25
-    }
14
+	/**
15
+	 * Constructs an assignment node.
16
+	 *
17
+	 * @param Expr  $var        Variable
18
+	 * @param Expr  $expr       Expression
19
+	 * @param array $attributes Additional attributes
20
+	 */
21
+	public function __construct(Expr $var, Expr $expr, array $attributes = []) {
22
+		$this->attributes = $attributes;
23
+		$this->var = $var;
24
+		$this->expr = $expr;
25
+	}
26 26
 
27
-    public function getSubNodeNames() : array {
28
-        return ['var', 'expr'];
29
-    }
27
+	public function getSubNodeNames() : array {
28
+		return ['var', 'expr'];
29
+	}
30 30
     
31
-    public function getType() : string {
32
-        return 'Expr_Assign';
33
-    }
31
+	public function getType() : string {
32
+		return 'Expr_Assign';
33
+	}
34 34
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use PhpParser\Node\Expr;
6 6
 
7
-class Assign extends Expr
8
-{
7
+class Assign extends Expr {
9 8
     /** @var Expr Variable */
10 9
     public $var;
11 10
     /** @var Expr Expression */
Please login to merge, or discard this patch.
vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php 2 patches
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -8,72 +8,72 @@
 block discarded – undo
8 8
 
9 9
 class ArrowFunction extends Expr implements FunctionLike
10 10
 {
11
-    /** @var bool */
12
-    public $static;
11
+	/** @var bool */
12
+	public $static;
13 13
 
14
-    /** @var bool */
15
-    public $byRef;
14
+	/** @var bool */
15
+	public $byRef;
16 16
 
17
-    /** @var Node\Param[] */
18
-    public $params = [];
17
+	/** @var Node\Param[] */
18
+	public $params = [];
19 19
 
20
-    /** @var null|Node\Identifier|Node\Name|Node\ComplexType */
21
-    public $returnType;
20
+	/** @var null|Node\Identifier|Node\Name|Node\ComplexType */
21
+	public $returnType;
22 22
 
23
-    /** @var Expr */
24
-    public $expr;
25
-    /** @var Node\AttributeGroup[] */
26
-    public $attrGroups;
23
+	/** @var Expr */
24
+	public $expr;
25
+	/** @var Node\AttributeGroup[] */
26
+	public $attrGroups;
27 27
 
28
-    /**
29
-     * @param array $subNodes   Array of the following optional subnodes:
30
-     *                          'static'     => false   : Whether the closure is static
31
-     *                          'byRef'      => false   : Whether to return by reference
32
-     *                          'params'     => array() : Parameters
33
-     *                          'returnType' => null    : Return type
34
-     *                          'expr'       => Expr    : Expression body
35
-     *                          'attrGroups' => array() : PHP attribute groups
36
-     * @param array $attributes Additional attributes
37
-     */
38
-    public function __construct(array $subNodes = [], array $attributes = []) {
39
-        $this->attributes = $attributes;
40
-        $this->static = $subNodes['static'] ?? false;
41
-        $this->byRef = $subNodes['byRef'] ?? false;
42
-        $this->params = $subNodes['params'] ?? [];
43
-        $returnType = $subNodes['returnType'] ?? null;
44
-        $this->returnType = \is_string($returnType) ? new Node\Identifier($returnType) : $returnType;
45
-        $this->expr = $subNodes['expr'];
46
-        $this->attrGroups = $subNodes['attrGroups'] ?? [];
47
-    }
28
+	/**
29
+	 * @param array $subNodes   Array of the following optional subnodes:
30
+	 *                          'static'     => false   : Whether the closure is static
31
+	 *                          'byRef'      => false   : Whether to return by reference
32
+	 *                          'params'     => array() : Parameters
33
+	 *                          'returnType' => null    : Return type
34
+	 *                          'expr'       => Expr    : Expression body
35
+	 *                          'attrGroups' => array() : PHP attribute groups
36
+	 * @param array $attributes Additional attributes
37
+	 */
38
+	public function __construct(array $subNodes = [], array $attributes = []) {
39
+		$this->attributes = $attributes;
40
+		$this->static = $subNodes['static'] ?? false;
41
+		$this->byRef = $subNodes['byRef'] ?? false;
42
+		$this->params = $subNodes['params'] ?? [];
43
+		$returnType = $subNodes['returnType'] ?? null;
44
+		$this->returnType = \is_string($returnType) ? new Node\Identifier($returnType) : $returnType;
45
+		$this->expr = $subNodes['expr'];
46
+		$this->attrGroups = $subNodes['attrGroups'] ?? [];
47
+	}
48 48
 
49
-    public function getSubNodeNames() : array {
50
-        return ['attrGroups', 'static', 'byRef', 'params', 'returnType', 'expr'];
51
-    }
49
+	public function getSubNodeNames() : array {
50
+		return ['attrGroups', 'static', 'byRef', 'params', 'returnType', 'expr'];
51
+	}
52 52
 
53
-    public function returnsByRef() : bool {
54
-        return $this->byRef;
55
-    }
53
+	public function returnsByRef() : bool {
54
+		return $this->byRef;
55
+	}
56 56
 
57
-    public function getParams() : array {
58
-        return $this->params;
59
-    }
57
+	public function getParams() : array {
58
+		return $this->params;
59
+	}
60 60
 
61
-    public function getReturnType() {
62
-        return $this->returnType;
63
-    }
61
+	public function getReturnType() {
62
+		return $this->returnType;
63
+	}
64 64
 
65
-    public function getAttrGroups() : array {
66
-        return $this->attrGroups;
67
-    }
65
+	public function getAttrGroups() : array {
66
+		return $this->attrGroups;
67
+	}
68 68
 
69
-    /**
70
-     * @return Node\Stmt\Return_[]
71
-     */
72
-    public function getStmts() : array {
73
-        return [new Node\Stmt\Return_($this->expr)];
74
-    }
69
+	/**
70
+	 * @return Node\Stmt\Return_[]
71
+	 */
72
+	public function getStmts() : array {
73
+		return [new Node\Stmt\Return_($this->expr)];
74
+	}
75 75
 
76
-    public function getType() : string {
77
-        return 'Expr_ArrowFunction';
78
-    }
76
+	public function getType() : string {
77
+		return 'Expr_ArrowFunction';
78
+	}
79 79
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 use PhpParser\Node\Expr;
7 7
 use PhpParser\Node\FunctionLike;
8 8
 
9
-class ArrowFunction extends Expr implements FunctionLike
10
-{
9
+class ArrowFunction extends Expr implements FunctionLike {
11 10
     /** @var bool */
12 11
     public $static;
13 12
 
Please login to merge, or discard this patch.