| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | public function load(\Transphporm\FeatureSet $featureSet) { |
||
| 22 | $locale = $this->getLocale(); |
||
| 23 | $featureSet->registerFormatter(new \Transphporm\Formatter\Number($locale)); |
||
| 24 | $featureSet->registerFormatter(new \Transphporm\Formatter\Date($locale)); |
||
| 25 | $featureSet->registerFormatter(new \Transphporm\Formatter\StringFormatter()); |
||
| 26 | } |
||
| 27 | } |
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: