| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | View Code Duplication | protected function makeLocaleRoutesPath($locale = null) |
|
| 55 | { |
||
| 56 | $path = $this->laravel->getCachedRoutesPath(); |
||
| 57 | if ($locale === null) { |
||
| 58 | return $path; |
||
| 59 | } |
||
| 60 | $path = substr($path, 0, -4).'_'.$locale.'.php'; |
||
| 61 | |||
| 62 | return $path; |
||
| 63 | } |
||
| 64 | |||
| 75 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: