Code Duplication    Length = 9-10 lines in 2 locations

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

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

@@ 182-191 (lines=10) @@
179
     * @default a []
180
     * @default foo []
181
     */
182
    public function trySymfony(SymfonyStyle $io, InputInterface $input)
183
    {
184
        $io->title('Symfony Style demo');
185
        $a = $input->getArgument('a');
186
        $io->writeln("The parameters passed are:\n" . var_export($a, true));
187
        $foo = $input->getOption('foo');
188
        if (!empty($foo)) {
189
            $this->say("The options passed via --foo are:\n" . var_export($foo, true));
190
        }
191
    }
192
193
    public function tryText()
194
    {