| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function start(MessageHandlerInterface $handler) |
||
| 42 | {
|
||
| 43 | if ($this->config['prod'] && \extension_loaded('xdebug')) {
|
||
| 44 | throw new \Exception('xdebug is enabled, it\'s a performance issue. Disable that extension or specify "prod" option to false.');
|
||
| 45 | } |
||
| 46 | |||
| 47 | $connection = new Connection($this->connectorFactory->createConnector()); |
||
| 48 | } |
||
| 49 | |||
| 62 | } |
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: