Code Duplication    Length = 8-8 lines in 4 locations

src/Task/Testing/Behat.php 2 locations

@@ 122-129 (lines=8) @@
119
     *
120
     * @return $this
121
     */
122
    public function verbose($level = 'v')
123
    {
124
        if (!in_array($level, $this->verbose_levels)) {
125
            throw new \InvalidArgumentException('expected ' . implode(',', $this->verbose_levels));
126
        }
127
        $this->option('-' . $level);
128
        return $this;
129
    }
130
131
    /**
132
     * @param string $formater
@@ 136-143 (lines=8) @@
133
     *
134
     * @return $this
135
     */
136
    public function format($formater)
137
    {
138
        if (!in_array($formater, $this->formaters)) {
139
            throw new \InvalidArgumentException('expected ' . implode(',', $this->formaters));
140
        }
141
        $this->option('format', $formater);
142
        return $this;
143
    }
144
145
    /**
146
     * {@inheritdoc}

src/Task/Testing/Phpspec.php 2 locations

@@ 85-92 (lines=8) @@
82
     *
83
     * @return $this
84
     */
85
    public function verbose($level = 'v')
86
    {
87
        if (!in_array($level, $this->verbose_levels)) {
88
            throw new \InvalidArgumentException('expected ' . implode(',', $this->verbose_levels));
89
        }
90
        $this->option('-' . $level);
91
        return $this;
92
    }
93
94
    /**
95
     * @return $this
@@ 128-135 (lines=8) @@
125
     *
126
     * @return $this
127
     */
128
    public function format($formater)
129
    {
130
        if (!in_array($formater, $this->formaters)) {
131
            throw new \InvalidArgumentException('expected ' . implode(',', $this->formaters));
132
        }
133
        $this->option('format', $formater);
134
        return $this;
135
    }
136
137
    /**
138
     * {@inheritdoc}