| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function main() |
||
| 18 | { |
||
| 19 | $this->out('The following commands can be used when deploying the application.', 2); |
||
| 20 | $this->out('<info>Available commands:</info>', 2); |
||
| 21 | $names = []; |
||
| 22 | foreach ($this->tasks as $task => $value) { |
||
| 23 | $names[] = Inflector::underscore($task); |
||
| 24 | } |
||
| 25 | sort($names); |
||
| 26 | foreach ($names as $name) { |
||
| 27 | $this->out('- <error>' . $name . '</error>'); |
||
| 28 | } |
||
| 29 | $this->out(''); |
||
| 30 | $this->out('By using <info>`cake deployer [name]`</info> you can invoke a specific bake task.'); |
||
| 31 | } |
||
| 32 | |||
| 50 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.