Code Duplication    Length = 8-8 lines in 2 locations

src/Parser/CommandInfo.php 2 locations

@@ 292-299 (lines=8) @@
289
     *
290
     * @param string|string[] $aliases
291
     */
292
    public function setAliases($aliases)
293
    {
294
        if (is_string($aliases)) {
295
            $aliases = explode(',', static::convertListToCommaSeparated($aliases));
296
        }
297
        $this->aliases = array_filter($aliases);
298
        return $this;
299
    }
300
301
    /**
302
     * Return the examples for this command. This is @usage instead of
@@ 351-358 (lines=8) @@
348
        return $this->calls;
349
    }
350
351
    public function setCalls($calls) {
352
        if (is_string($calls)) {
353
            $calls = explode(',', static::convertListToCommaSeparated($calls));
354
        }
355
        $this->calls = array_filter($calls);
356
357
        return $this;
358
    }
359
360
    /**
361
     * Return the list of refleaction parameters.