Code Duplication    Length = 10-13 lines in 4 locations

src/Core/Condition/IfCondition.php 1 location

@@ 40-50 (lines=11) @@
37
    /**
38
     * Initializes a new instance of this class.
39
     */
40
    public function __construct()
41
    {
42
        parent::__construct();
43
44
        $this->createSocket(self::SOCKET_EQUAL);
45
        $this->createSocket(self::SOCKET_NOT_EQUAL);
46
        $this->createSocket(self::SOCKET_LESS_THAN);
47
        $this->createSocket(self::SOCKET_GREATER_THAN);
48
        $this->createSocket(self::SOCKET_VALUELFT);
49
        $this->createSocket(self::SOCKET_VALUERGT);
50
    }
51
52
    /**
53
     * Executes the node's logic.

src/Core/Condition/RangeCondition.php 1 location

@@ 37-46 (lines=10) @@
34
    /**
35
     * Initializes a new instance of this class.
36
     */
37
    public function __construct()
38
    {
39
        parent::__construct();
40
41
        $this->createSocket(self::SOCKET_TRUE);
42
        $this->createSocket(self::SOCKET_FALSE);
43
        $this->createSocket(self::SOCKET_MIN);
44
        $this->createSocket(self::SOCKET_MAX);
45
        $this->createSocket(self::SOCKET_VALUE);
46
    }
47
48
    /**
49
     * Executes the node's logic.

src/Mail/Action/SendMailAction.php 1 location

@@ 50-62 (lines=13) @@
47
     *
48
     * @param TransportInterface $transport The mail transport used to send email messages.
49
     */
50
    public function __construct(TransportInterface $transport)
51
    {
52
        parent::__construct();
53
54
        $this->createSocket(self::SOCKET_OUTPUT_SUCCESS);
55
        $this->createSocket(self::SOCKET_OUTPUT_ERROR);
56
        $this->createSocket(self::SOCKET_TO);
57
        $this->createSocket(self::SOCKET_SUBJECT);
58
        $this->createSocket(self::SOCKET_MESSAGE);
59
        $this->createSocket(self::SOCKET_FROM);
60
61
        $this->transport = $transport;
62
    }
63
64
    /**
65
     * Executes the node's logic.

src/Regex/Action/ReplaceAction.php 1 location

@@ 37-46 (lines=10) @@
34
    /**
35
     * Initializes a new instance of this class.
36
     */
37
    public function __construct()
38
    {
39
        parent::__construct();
40
41
        $this->createSocket(self::SOCKET_OUTPUT);
42
        $this->createSocket(self::SOCKET_PATTERN);
43
        $this->createSocket(self::SOCKET_REPLACEMENT);
44
        $this->createSocket(self::SOCKET_SUBJECT);
45
        $this->createSocket(self::SOCKET_RESULT);
46
    }
47
48
    /**
49
     * Executes the node's logic.