| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function fire(Command $command) |
||
| 18 | { |
||
| 19 | $gitignorePath = base_path('.gitignore'); |
||
| 20 | |||
| 21 | if (!$this->gitignoreContainsComposerLock($gitignorePath)) { |
||
| 22 | return; |
||
| 23 | } |
||
| 24 | |||
| 25 | $removeComposerLock = $command->confirm('Do you want to remove composer.lock from .gitignore ?', true); |
||
| 26 | if ($removeComposerLock) { |
||
| 27 | $out = $this->getGitignoreLinesButComposerLock($gitignorePath); |
||
| 28 | $this->writeNewGitignore($gitignorePath, $out); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 73 |