Code Duplication    Length = 9-9 lines in 2 locations

examples/src/Robo/Plugin/Commands/ExampleCommands.php 1 location

@@ 181-189 (lines=9) @@
178
     * @default a []
179
     * @default foo []
180
     */
181
    public function trySymfony(InputInterface $input)
182
    {
183
        $a = $input->getArgument('a');
184
        $this->say("The parameters passed are:\n" . var_export($a, true));
185
        $foo = $input->getOption('foo');
186
        if (!empty($foo)) {
187
            $this->say("The options passed via --foo are:\n" . var_export($foo, true));
188
        }
189
    }
190
191
    /**
192
     * Demonstrate Robo boolean options.

tests/src/RoboFileFixture.php 1 location

@@ 209-217 (lines=9) @@
206
     * @default a []
207
     * @default foo []
208
     */
209
    public function testSymfony(InputInterface $input)
210
    {
211
        $a = $input->getArgument('a');
212
        $this->say("The parameters passed are:\n" . var_export($a, true));
213
        $foo = $input->getOption('foo');
214
        if (!empty($foo)) {
215
            $this->say("The options passed via --foo are:\n" . var_export($foo, true));
216
        }
217
    }
218
}
219