Conditions | 5 |
Paths | 5 |
Total Lines | 28 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function handle() |
||
40 | { |
||
41 | if ( ! projects_config_published()) { |
||
42 | $this->error('Config has not been published.'); |
||
43 | |||
44 | if ( ! $this->confirm('Would you like to publish the config?')) { |
||
45 | return; |
||
46 | } |
||
47 | |||
48 | $this->call('projects:publish'); |
||
49 | } |
||
50 | |||
51 | $this->line('Starting project seeds.'); |
||
52 | |||
53 | set_time_limit(0); |
||
54 | |||
55 | do { |
||
56 | if (projects_config_published()) { |
||
57 | $this->callSilent('config:cache'); |
||
58 | $this->call(ProjectsSeeder::class); |
||
59 | $this->callSilent('config:clear'); |
||
60 | |||
61 | break; |
||
62 | } |
||
63 | } while (true); |
||
64 | |||
65 | $this->info('Finished project seeds.'); |
||
66 | } |
||
67 | } |
||
68 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.