1 | <?php |
||
10 | abstract class GeneratorCommand extends BaseCommand |
||
11 | { |
||
12 | protected $generator; |
||
13 | |||
14 | /** |
||
15 | * Create a new controller creator command instance. |
||
16 | * |
||
17 | * @param \Illuminate\Filesystem\Filesystem $files |
||
18 | */ |
||
19 | 6 | public function __construct(Filesystem $files, Generator $generator) |
|
25 | |||
26 | /** |
||
27 | * Parse the class name and format according to the root namespace. |
||
28 | * |
||
29 | * @param string $name |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | protected function qualifyClass($name) |
||
34 | { |
||
35 | $rootNamespace = $this->rootNamespace(); |
||
36 | |||
37 | if (Str::startsWith($name, $rootNamespace)) { |
||
38 | return $name; |
||
39 | } |
||
40 | |||
41 | $name = str_replace('/', '\\', $name); |
||
42 | |||
43 | return $this->qualifyClass( |
||
44 | $this->getDefaultNamespace(trim($rootNamespace, '\\')).'\\'.$name |
||
45 | ); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Get the root namespace for the class. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | 3 | protected function rootNamespace() |
|
57 | } |
||
58 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.