Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | protected function fileIsInExcludedPath($file) |
||
45 | { |
||
46 | $excludedPaths = [ |
||
47 | '/vendor/laravel/framework/src/Illuminate/Database', |
||
48 | '/vendor/laravel/framework/src/Illuminate/Events', |
||
49 | ]; |
||
50 | |||
51 | $normalizedPath = str_replace('\\', '/', $file); |
||
52 | |||
53 | foreach ($excludedPaths as $excludedPath) { |
||
54 | if (strpos($normalizedPath, $excludedPath) !== false) { |
||
55 | return true; |
||
56 | } |
||
57 | } |
||
58 | |||
59 | return false; |
||
60 | } |
||
76 | } |