Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function handle() |
||
18 | { |
||
19 | $groupName = $this->argument('group'); |
||
20 | |||
21 | $tagGroupModel = TaggingUtility::tagGroupModelString(); |
||
22 | |||
23 | $tagGroup = new $tagGroupModel; |
||
24 | $tagGroup->name = $groupName; |
||
25 | $tagGroup->slug = TaggingUtility::normalize($groupName); |
||
26 | |||
27 | $tagGroup->save(); |
||
28 | |||
29 | $this->info('Created tag group: '.$groupName); |
||
30 | } |
||
39 |