1 | <?php |
||
10 | class WidgetMakeCommand extends GeneratorCommand |
||
11 | { |
||
12 | /** |
||
13 | * The console command name. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $name = 'make:widget'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Create a new widget (arrilot/laravel-widgets)'; |
||
25 | |||
26 | /** |
||
27 | * The type of class being generated. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $type = 'Widget'; |
||
32 | |||
33 | /** |
||
34 | * Execute the console command for Laravel >= 5.5 |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function handle() |
||
46 | |||
47 | /** |
||
48 | * Execute the console command for Laravel < 5.5 |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | public function fire() |
||
60 | |||
61 | /** |
||
62 | * Build the class with the given name. |
||
63 | * |
||
64 | * @param string $name |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | protected function buildClass($name) |
||
80 | |||
81 | /** |
||
82 | * Get the stub file for the generator. |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | protected function getStub() |
||
98 | |||
99 | /** |
||
100 | * Replace the namespace for the given stub. |
||
101 | * |
||
102 | * @param string $stub |
||
103 | * @param string $name |
||
104 | * |
||
105 | * @return $this |
||
106 | */ |
||
107 | protected function replaceNamespace(&$stub, $name) |
||
119 | |||
120 | /** |
||
121 | * Replace the class name for the given stub. |
||
122 | * |
||
123 | * @param string $stub |
||
124 | * @param string $name |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | protected function replaceClass($stub, $name) |
||
134 | |||
135 | /** |
||
136 | * Replace the view name for the given stub. |
||
137 | * |
||
138 | * @param string $stub |
||
139 | * |
||
140 | * @return string |
||
141 | */ |
||
142 | protected function replaceView($stub) |
||
148 | |||
149 | /** |
||
150 | * Get the default namespace for the class. |
||
151 | * |
||
152 | * @param string $rootNamespace |
||
153 | * |
||
154 | * @return string |
||
155 | */ |
||
156 | protected function getDefaultNamespace($rootNamespace) |
||
166 | |||
167 | /** |
||
168 | * Get the console command options. |
||
169 | * |
||
170 | * @return array |
||
171 | */ |
||
172 | protected function getOptions() |
||
178 | |||
179 | /** |
||
180 | * Create a new view file for the widget. |
||
181 | * |
||
182 | * return void |
||
183 | */ |
||
184 | protected function createView() |
||
198 | |||
199 | /** |
||
200 | * Get the destination view path. |
||
201 | * |
||
202 | * @return string |
||
203 | */ |
||
204 | protected function getViewPath() |
||
208 | |||
209 | /** |
||
210 | * Get the destination view name without extensions. |
||
211 | * |
||
212 | * @return string |
||
213 | */ |
||
214 | protected function makeViewName() |
||
227 | } |
||
228 |
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.