| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Savannabits\JetstreamInertiaGenerator\Generators\Traits; |
||
| 7 | protected function strReplaceInFile($fileName, $ifExistsRegex, $find, $replaceWith) { |
||
| 8 | $content = File::get($fileName); |
||
| 9 | if (preg_match($ifExistsRegex, $content)) { |
||
| 10 | return null; |
||
| 11 | } |
||
| 12 | |||
| 13 | return File::put($fileName, str_replace($find, $replaceWith, $content)); |
||
| 14 | } |
||
| 15 | protected function strReplaceInFileAnyway($fileName, $find, $replaceWith) { |
||
| 20 |