Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 2 | Features | 1 |
1 | <?php |
||
47 | public function fire() |
||
48 | { |
||
49 | $nameGroup = $this->argument('name'); |
||
50 | |||
51 | if (! $this->notifynderGroup->addGroup($nameGroup)) { |
||
52 | $this->error('The name must be a string with dots as namespaces'); |
||
53 | |||
54 | return false; |
||
55 | } |
||
56 | $this->info("Group {$nameGroup} has Been created"); |
||
57 | } |
||
58 | |||
71 |
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.