| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | private function generateUniqueReferenceName($referenceName) |
||
| 24 | { |
||
| 25 | if ($this->referenceRepository->hasReference($referenceName)) { |
||
| 26 | $referenceName = $this->incrementReferenceName($referenceName); |
||
| 27 | |||
| 28 | return $this->generateUniqueReferenceName($referenceName); |
||
| 29 | } |
||
| 30 | |||
| 31 | return $referenceName; |
||
| 32 | } |
||
| 33 | |||
| 51 |
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: