Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function simplifyToString(FormatterOptions $options) |
||
25 | { |
||
26 | $result = ''; |
||
27 | $iterator = $this->getIterator(); |
||
28 | while ($iterator->valid()) { |
||
29 | $simplifiedRow = UnstructuredDataTransformation::simplifyRow($iterator->current()); |
||
30 | if (isset($simplifiedRow)) { |
||
31 | $result .= "$simplifiedRow\n"; |
||
32 | } |
||
33 | |||
34 | $iterator->next(); |
||
35 | } |
||
36 | return $result; |
||
37 | } |
||
38 | } |
||
39 |
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: