Conditions | 2 |
Paths | 2 |
Total Lines | 30 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function handle() |
||
15 | { |
||
16 | $name = $this->ask('What is the app name? (required)'); |
||
17 | |||
18 | if (empty($name)) { |
||
19 | $this->handle(); |
||
20 | |||
21 | return; |
||
22 | } |
||
23 | |||
24 | $host = $this->ask('Host: '); |
||
25 | |||
26 | $enable_client_messages = $this->confirm('Would you enable client messages?'); |
||
27 | |||
28 | $enable_statistics = $this->confirm('Would you enable statistics?'); |
||
29 | |||
30 | $this->comment('Creating your application, please wait...'); |
||
31 | |||
32 | $app = App::create([ |
||
|
|||
33 | 'name' => $name, |
||
34 | 'host' => $host, |
||
35 | 'enable_client_messages' => $enable_client_messages, |
||
36 | 'enable_statistics' => $enable_statistics, |
||
37 | ]); |
||
38 | |||
39 | $this->info('Key: '.$app->key); |
||
40 | $this->info('Secret: '.$app->secret); |
||
41 | |||
42 | $this->comment('App has been created. Please save key and secret.'); |
||
43 | } |
||
44 | } |
||
45 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.