Completed
Push — master ( 0675a5...c513b3 )
by Maxence
03:29 queued 14s
created
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -6,42 +6,42 @@
 block discarded – undo
6 6
 
7 7
 class Use_ extends Stmt
8 8
 {
9
-    /**
10
-     * Unknown type. Both Stmt\Use_ / Stmt\GroupUse and Stmt\UseUse have a $type property, one of them will always be
11
-     * TYPE_UNKNOWN while the other has one of the three other possible types. For normal use statements the type on the
12
-     * Stmt\UseUse is unknown. It's only the other way around for mixed group use declarations.
13
-     */
14
-    const TYPE_UNKNOWN = 0;
15
-    /** Class or namespace import */
16
-    const TYPE_NORMAL = 1;
17
-    /** Function import */
18
-    const TYPE_FUNCTION = 2;
19
-    /** Constant import */
20
-    const TYPE_CONSTANT = 3;
9
+	/**
10
+	 * Unknown type. Both Stmt\Use_ / Stmt\GroupUse and Stmt\UseUse have a $type property, one of them will always be
11
+	 * TYPE_UNKNOWN while the other has one of the three other possible types. For normal use statements the type on the
12
+	 * Stmt\UseUse is unknown. It's only the other way around for mixed group use declarations.
13
+	 */
14
+	const TYPE_UNKNOWN = 0;
15
+	/** Class or namespace import */
16
+	const TYPE_NORMAL = 1;
17
+	/** Function import */
18
+	const TYPE_FUNCTION = 2;
19
+	/** Constant import */
20
+	const TYPE_CONSTANT = 3;
21 21
 
22
-    /** @var int Type of alias */
23
-    public $type;
24
-    /** @var UseUse[] Aliases */
25
-    public $uses;
22
+	/** @var int Type of alias */
23
+	public $type;
24
+	/** @var UseUse[] Aliases */
25
+	public $uses;
26 26
 
27
-    /**
28
-     * Constructs an alias (use) list node.
29
-     *
30
-     * @param UseUse[] $uses       Aliases
31
-     * @param int      $type       Type of alias
32
-     * @param array    $attributes Additional attributes
33
-     */
34
-    public function __construct(array $uses, int $type = self::TYPE_NORMAL, array $attributes = []) {
35
-        $this->attributes = $attributes;
36
-        $this->type = $type;
37
-        $this->uses = $uses;
38
-    }
27
+	/**
28
+	 * Constructs an alias (use) list node.
29
+	 *
30
+	 * @param UseUse[] $uses       Aliases
31
+	 * @param int      $type       Type of alias
32
+	 * @param array    $attributes Additional attributes
33
+	 */
34
+	public function __construct(array $uses, int $type = self::TYPE_NORMAL, array $attributes = []) {
35
+		$this->attributes = $attributes;
36
+		$this->type = $type;
37
+		$this->uses = $uses;
38
+	}
39 39
 
40
-    public function getSubNodeNames() : array {
41
-        return ['type', 'uses'];
42
-    }
40
+	public function getSubNodeNames() : array {
41
+		return ['type', 'uses'];
42
+	}
43 43
     
44
-    public function getType() : string {
45
-        return 'Stmt_Use';
46
-    }
44
+	public function getType() : string {
45
+		return 'Stmt_Use';
46
+	}
47 47
 }
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\Stmt;
6 6
 
7
-class Use_ extends Stmt
8
-{
7
+class Use_ extends Stmt {
9 8
     /**
10 9
      * Unknown type. Both Stmt\Use_ / Stmt\GroupUse and Stmt\UseUse have a $type property, one of them will always be
11 10
      * TYPE_UNKNOWN while the other has one of the three other possible types. For normal use statements the type on the
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php 1 patch
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 TraitUse extends Node\Stmt
8 8
 {
9
-    /** @var Node\Name[] Traits */
10
-    public $traits;
11
-    /** @var TraitUseAdaptation[] Adaptations */
12
-    public $adaptations;
9
+	/** @var Node\Name[] Traits */
10
+	public $traits;
11
+	/** @var TraitUseAdaptation[] Adaptations */
12
+	public $adaptations;
13 13
 
14
-    /**
15
-     * Constructs a trait use node.
16
-     *
17
-     * @param Node\Name[]          $traits      Traits
18
-     * @param TraitUseAdaptation[] $adaptations Adaptations
19
-     * @param array                $attributes  Additional attributes
20
-     */
21
-    public function __construct(array $traits, array $adaptations = [], array $attributes = []) {
22
-        $this->attributes = $attributes;
23
-        $this->traits = $traits;
24
-        $this->adaptations = $adaptations;
25
-    }
14
+	/**
15
+	 * Constructs a trait use node.
16
+	 *
17
+	 * @param Node\Name[]          $traits      Traits
18
+	 * @param TraitUseAdaptation[] $adaptations Adaptations
19
+	 * @param array                $attributes  Additional attributes
20
+	 */
21
+	public function __construct(array $traits, array $adaptations = [], array $attributes = []) {
22
+		$this->attributes = $attributes;
23
+		$this->traits = $traits;
24
+		$this->adaptations = $adaptations;
25
+	}
26 26
 
27
-    public function getSubNodeNames() : array {
28
-        return ['traits', 'adaptations'];
29
-    }
27
+	public function getSubNodeNames() : array {
28
+		return ['traits', 'adaptations'];
29
+	}
30 30
     
31
-    public function getType() : string {
32
-        return 'Stmt_TraitUse';
33
-    }
31
+	public function getType() : string {
32
+		return 'Stmt_TraitUse';
33
+	}
34 34
 }
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -7,31 +7,31 @@
 block discarded – undo
7 7
 
8 8
 class StaticVar extends Node\Stmt
9 9
 {
10
-    /** @var Expr\Variable Variable */
11
-    public $var;
12
-    /** @var null|Node\Expr Default value */
13
-    public $default;
10
+	/** @var Expr\Variable Variable */
11
+	public $var;
12
+	/** @var null|Node\Expr Default value */
13
+	public $default;
14 14
 
15
-    /**
16
-     * Constructs a static variable node.
17
-     *
18
-     * @param Expr\Variable  $var         Name
19
-     * @param null|Node\Expr $default    Default value
20
-     * @param array          $attributes Additional attributes
21
-     */
22
-    public function __construct(
23
-        Expr\Variable $var, ?Node\Expr $default = null, array $attributes = []
24
-    ) {
25
-        $this->attributes = $attributes;
26
-        $this->var = $var;
27
-        $this->default = $default;
28
-    }
15
+	/**
16
+	 * Constructs a static variable node.
17
+	 *
18
+	 * @param Expr\Variable  $var         Name
19
+	 * @param null|Node\Expr $default    Default value
20
+	 * @param array          $attributes Additional attributes
21
+	 */
22
+	public function __construct(
23
+		Expr\Variable $var, ?Node\Expr $default = null, array $attributes = []
24
+	) {
25
+		$this->attributes = $attributes;
26
+		$this->var = $var;
27
+		$this->default = $default;
28
+	}
29 29
 
30
-    public function getSubNodeNames() : array {
31
-        return ['var', 'default'];
32
-    }
30
+	public function getSubNodeNames() : array {
31
+		return ['var', 'default'];
32
+	}
33 33
     
34
-    public function getType() : string {
35
-        return 'Stmt_StaticVar';
36
-    }
34
+	public function getType() : string {
35
+		return 'Stmt_StaticVar';
36
+	}
37 37
 }
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -6,38 +6,38 @@
 block discarded – undo
6 6
 
7 7
 interface FunctionLike extends Node
8 8
 {
9
-    /**
10
-     * Whether to return by reference
11
-     *
12
-     * @return bool
13
-     */
14
-    public function returnsByRef() : bool;
9
+	/**
10
+	 * Whether to return by reference
11
+	 *
12
+	 * @return bool
13
+	 */
14
+	public function returnsByRef() : bool;
15 15
 
16
-    /**
17
-     * List of parameters
18
-     *
19
-     * @return Param[]
20
-     */
21
-    public function getParams() : array;
16
+	/**
17
+	 * List of parameters
18
+	 *
19
+	 * @return Param[]
20
+	 */
21
+	public function getParams() : array;
22 22
 
23
-    /**
24
-     * Get the declared return type or null
25
-     *
26
-     * @return null|Identifier|Name|ComplexType
27
-     */
28
-    public function getReturnType();
23
+	/**
24
+	 * Get the declared return type or null
25
+	 *
26
+	 * @return null|Identifier|Name|ComplexType
27
+	 */
28
+	public function getReturnType();
29 29
 
30
-    /**
31
-     * The function body
32
-     *
33
-     * @return Stmt[]|null
34
-     */
35
-    public function getStmts();
30
+	/**
31
+	 * The function body
32
+	 *
33
+	 * @return Stmt[]|null
34
+	 */
35
+	public function getStmts();
36 36
 
37
-    /**
38
-     * Get PHP attribute groups.
39
-     *
40
-     * @return AttributeGroup[]
41
-     */
42
-    public function getAttrGroups() : array;
37
+	/**
38
+	 * Get PHP attribute groups.
39
+	 *
40
+	 * @return AttributeGroup[]
41
+	 */
42
+	public function getAttrGroups() : array;
43 43
 }
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;
6 6
 
7
-interface FunctionLike extends Node
8
-{
7
+interface FunctionLike extends Node {
9 8
     /**
10 9
      * Whether to return by reference
11 10
      *
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php 2 patches
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -6,55 +6,55 @@
 block discarded – undo
6 6
 
7 7
 class Param extends NodeAbstract
8 8
 {
9
-    /** @var null|Identifier|Name|ComplexType Type declaration */
10
-    public $type;
11
-    /** @var bool Whether parameter is passed by reference */
12
-    public $byRef;
13
-    /** @var bool Whether this is a variadic argument */
14
-    public $variadic;
15
-    /** @var Expr\Variable|Expr\Error Parameter variable */
16
-    public $var;
17
-    /** @var null|Expr Default value */
18
-    public $default;
19
-    /** @var int */
20
-    public $flags;
21
-    /** @var AttributeGroup[] PHP attribute groups */
22
-    public $attrGroups;
9
+	/** @var null|Identifier|Name|ComplexType Type declaration */
10
+	public $type;
11
+	/** @var bool Whether parameter is passed by reference */
12
+	public $byRef;
13
+	/** @var bool Whether this is a variadic argument */
14
+	public $variadic;
15
+	/** @var Expr\Variable|Expr\Error Parameter variable */
16
+	public $var;
17
+	/** @var null|Expr Default value */
18
+	public $default;
19
+	/** @var int */
20
+	public $flags;
21
+	/** @var AttributeGroup[] PHP attribute groups */
22
+	public $attrGroups;
23 23
 
24
-    /**
25
-     * Constructs a parameter node.
26
-     *
27
-     * @param Expr\Variable|Expr\Error                $var        Parameter variable
28
-     * @param null|Expr                               $default    Default value
29
-     * @param null|string|Identifier|Name|ComplexType $type       Type declaration
30
-     * @param bool                                    $byRef      Whether is passed by reference
31
-     * @param bool                                    $variadic   Whether this is a variadic argument
32
-     * @param array                                   $attributes Additional attributes
33
-     * @param int                                     $flags      Optional visibility flags
34
-     * @param AttributeGroup[]                        $attrGroups PHP attribute groups
35
-     */
36
-    public function __construct(
37
-        $var, ?Expr $default = null, $type = null,
38
-        bool $byRef = false, bool $variadic = false,
39
-        array $attributes = [],
40
-        int $flags = 0,
41
-        array $attrGroups = []
42
-    ) {
43
-        $this->attributes = $attributes;
44
-        $this->type = \is_string($type) ? new Identifier($type) : $type;
45
-        $this->byRef = $byRef;
46
-        $this->variadic = $variadic;
47
-        $this->var = $var;
48
-        $this->default = $default;
49
-        $this->flags = $flags;
50
-        $this->attrGroups = $attrGroups;
51
-    }
24
+	/**
25
+	 * Constructs a parameter node.
26
+	 *
27
+	 * @param Expr\Variable|Expr\Error                $var        Parameter variable
28
+	 * @param null|Expr                               $default    Default value
29
+	 * @param null|string|Identifier|Name|ComplexType $type       Type declaration
30
+	 * @param bool                                    $byRef      Whether is passed by reference
31
+	 * @param bool                                    $variadic   Whether this is a variadic argument
32
+	 * @param array                                   $attributes Additional attributes
33
+	 * @param int                                     $flags      Optional visibility flags
34
+	 * @param AttributeGroup[]                        $attrGroups PHP attribute groups
35
+	 */
36
+	public function __construct(
37
+		$var, ?Expr $default = null, $type = null,
38
+		bool $byRef = false, bool $variadic = false,
39
+		array $attributes = [],
40
+		int $flags = 0,
41
+		array $attrGroups = []
42
+	) {
43
+		$this->attributes = $attributes;
44
+		$this->type = \is_string($type) ? new Identifier($type) : $type;
45
+		$this->byRef = $byRef;
46
+		$this->variadic = $variadic;
47
+		$this->var = $var;
48
+		$this->default = $default;
49
+		$this->flags = $flags;
50
+		$this->attrGroups = $attrGroups;
51
+	}
52 52
 
53
-    public function getSubNodeNames() : array {
54
-        return ['attrGroups', 'flags', 'type', 'byRef', 'variadic', 'var', 'default'];
55
-    }
53
+	public function getSubNodeNames() : array {
54
+		return ['attrGroups', 'flags', 'type', 'byRef', 'variadic', 'var', 'default'];
55
+	}
56 56
 
57
-    public function getType() : string {
58
-        return 'Param';
59
-    }
57
+	public function getType() : string {
58
+		return 'Param';
59
+	}
60 60
 }
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\NodeAbstract;
6 6
 
7
-class Param extends NodeAbstract
8
-{
7
+class Param extends NodeAbstract {
9 8
     /** @var null|Identifier|Name|ComplexType Type declaration */
10 9
     public $type;
11 10
     /** @var bool Whether parameter is passed by reference */
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,6 +4,5 @@
 block discarded – undo
4 4
 
5 5
 use PhpParser\NodeAbstract;
6 6
 
7
-abstract class Stmt extends NodeAbstract
8
-{
7
+abstract class Stmt extends NodeAbstract {
9 8
 }
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/MatchArm.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -7,25 +7,25 @@
 block discarded – undo
7 7
 
8 8
 class MatchArm extends NodeAbstract
9 9
 {
10
-    /** @var null|Node\Expr[] */
11
-    public $conds;
12
-    /** @var Node\Expr */
13
-    public $body;
10
+	/** @var null|Node\Expr[] */
11
+	public $conds;
12
+	/** @var Node\Expr */
13
+	public $body;
14 14
 
15
-    /**
16
-     * @param null|Node\Expr[] $conds
17
-     */
18
-    public function __construct($conds, Node\Expr $body, array $attributes = []) {
19
-        $this->conds = $conds;
20
-        $this->body = $body;
21
-        $this->attributes = $attributes;
22
-    }
15
+	/**
16
+	 * @param null|Node\Expr[] $conds
17
+	 */
18
+	public function __construct($conds, Node\Expr $body, array $attributes = []) {
19
+		$this->conds = $conds;
20
+		$this->body = $body;
21
+		$this->attributes = $attributes;
22
+	}
23 23
 
24
-    public function getSubNodeNames() : array {
25
-        return ['conds', 'body'];
26
-    }
24
+	public function getSubNodeNames() : array {
25
+		return ['conds', 'body'];
26
+	}
27 27
 
28
-    public function getType() : string {
29
-        return 'MatchArm';
30
-    }
28
+	public function getType() : string {
29
+		return 'MatchArm';
30
+	}
31 31
 }
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\NodeAbstract;
7 7
 
8
-class MatchArm extends NodeAbstract
9
-{
8
+class MatchArm extends NodeAbstract {
10 9
     /** @var null|Node\Expr[] */
11 10
     public $conds;
12 11
     /** @var Node\Expr */
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,6 +4,5 @@
 block discarded – undo
4 4
 
5 5
 use PhpParser\NodeAbstract;
6 6
 
7
-abstract class Expr extends NodeAbstract
8
-{
7
+abstract class Expr extends NodeAbstract {
9 8
 }
Please login to merge, or discard this patch.
php-scoper/vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -7,28 +7,28 @@
 block discarded – undo
7 7
 
8 8
 class Attribute extends NodeAbstract
9 9
 {
10
-    /** @var Name Attribute name */
11
-    public $name;
10
+	/** @var Name Attribute name */
11
+	public $name;
12 12
 
13
-    /** @var Arg[] Attribute arguments */
14
-    public $args;
13
+	/** @var Arg[] Attribute arguments */
14
+	public $args;
15 15
 
16
-    /**
17
-     * @param Node\Name $name       Attribute name
18
-     * @param Arg[]     $args       Attribute arguments
19
-     * @param array     $attributes Additional node attributes
20
-     */
21
-    public function __construct(Name $name, array $args = [], array $attributes = []) {
22
-        $this->attributes = $attributes;
23
-        $this->name = $name;
24
-        $this->args = $args;
25
-    }
16
+	/**
17
+	 * @param Node\Name $name       Attribute name
18
+	 * @param Arg[]     $args       Attribute arguments
19
+	 * @param array     $attributes Additional node attributes
20
+	 */
21
+	public function __construct(Name $name, array $args = [], array $attributes = []) {
22
+		$this->attributes = $attributes;
23
+		$this->name = $name;
24
+		$this->args = $args;
25
+	}
26 26
 
27
-    public function getSubNodeNames() : array {
28
-        return ['name', 'args'];
29
-    }
27
+	public function getSubNodeNames() : array {
28
+		return ['name', 'args'];
29
+	}
30 30
 
31
-    public function getType() : string {
32
-        return 'Attribute';
33
-    }
31
+	public function getType() : string {
32
+		return 'Attribute';
33
+	}
34 34
 }
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\NodeAbstract;
7 7
 
8
-class Attribute extends NodeAbstract
9
-{
8
+class Attribute extends NodeAbstract {
10 9
     /** @var Name Attribute name */
11 10
     public $name;
12 11
 
Please login to merge, or discard this patch.