| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function actionShow($release = null) |
||
| 32 | { |
||
| 33 | $version = $this->getComponent(); |
||
| 34 | $version->load(); |
||
| 35 | $version->setRelease($release); |
||
| 36 | $dir = dirname($version->getAbspath()); |
||
| 37 | $pretty = $version->pretty(); |
||
| 38 | $name = $this->take('package')->name; |
||
| 39 | echo "$name $pretty\n"; |
||
| 40 | echo "(run from $dir)\n"; |
||
| 41 | } |
||
| 42 | |||
| 55 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.