Code Duplication    Length = 20-20 lines in 4 locations

lib/PhpParser/Node/Stmt/Break_.php 1 location

@@ 7-26 (lines=20) @@
4
5
use PhpParser\Node;
6
7
class Break_ extends Node\Stmt
8
{
9
    /** @var null|Node\Expr Number of loops to break */
10
    public $num;
11
12
    /**
13
     * Constructs a break node.
14
     *
15
     * @param null|Node\Expr $num        Number of loops to break
16
     * @param array          $attributes Additional attributes
17
     */
18
    public function __construct(Node\Expr $num = null, array $attributes = array()) {
19
        parent::__construct($attributes);
20
        $this->num = $num;
21
    }
22
23
    public function getSubNodeNames() {
24
        return array('num');
25
    }
26
}
27

lib/PhpParser/Node/Stmt/Continue_.php 1 location

@@ 7-26 (lines=20) @@
4
5
use PhpParser\Node;
6
7
class Continue_ extends Node\Stmt
8
{
9
    /** @var null|Node\Expr Number of loops to continue */
10
    public $num;
11
12
    /**
13
     * Constructs a continue node.
14
     *
15
     * @param null|Node\Expr $num        Number of loops to continue
16
     * @param array          $attributes Additional attributes
17
     */
18
    public function __construct(Node\Expr $num = null, array $attributes = array()) {
19
        parent::__construct($attributes);
20
        $this->num = $num;
21
    }
22
23
    public function getSubNodeNames() {
24
        return array('num');
25
    }
26
}
27

lib/PhpParser/Node/Stmt/Return_.php 1 location

@@ 7-26 (lines=20) @@
4
5
use PhpParser\Node;
6
7
class Return_ extends Node\Stmt
8
{
9
    /** @var null|Node\Expr Expression */
10
    public $expr;
11
12
    /**
13
     * Constructs a return node.
14
     *
15
     * @param null|Node\Expr $expr       Expression
16
     * @param array          $attributes Additional attributes
17
     */
18
    public function __construct(Node\Expr $expr = null, array $attributes = array()) {
19
        parent::__construct($attributes);
20
        $this->expr = $expr;
21
    }
22
23
    public function getSubNodeNames() {
24
        return array('expr');
25
    }
26
}
27

lib/PhpParser/Node/Stmt/Throw_.php 1 location

@@ 7-26 (lines=20) @@
4
5
use PhpParser\Node;
6
7
class Throw_ extends Node\Stmt
8
{
9
    /** @var Node\Expr Expression */
10
    public $expr;
11
12
    /**
13
     * Constructs a throw node.
14
     *
15
     * @param Node\Expr $expr       Expression
16
     * @param array     $attributes Additional attributes
17
     */
18
    public function __construct(Node\Expr $expr, array $attributes = array()) {
19
        parent::__construct($attributes);
20
        $this->expr = $expr;
21
    }
22
23
    public function getSubNodeNames() {
24
        return array('expr');
25
    }
26
}
27