| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait Contains |
||
| 9 | { |
||
| 10 | protected function isValidation(string $filename, bool $is_path = false): bool |
||
| 11 | { |
||
| 12 | $this->log('Does the file contain validation messages?', $filename); |
||
|
|
|||
| 13 | |||
| 14 | $filename = $is_path ? Path::filename($filename) : $filename; |
||
| 15 | |||
| 16 | return Str::startsWith($filename, 'validation'); |
||
| 17 | } |
||
| 18 | |||
| 19 | protected function isJson(string $filename): bool |
||
| 24 | } |
||
| 25 | |||
| 26 | protected function isPhp(string $filename): bool |
||
| 33 |