| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 7 | public function __construct(\ReflectionParameter $param) { |
|
| 24 | 7 | parent::__construct($param->getClass() ? $param->getClass()->name : ''); |
|
| 25 | |||
| 26 | 7 | $this->parameter = $param->name; |
|
| 27 | 7 | $this->function = ($param->getDeclaringClass() ? $param->getDeclaringClass()->name.'::' : ''). |
|
| 28 | 7 | $param->getDeclaringFunction()->name.'()'; |
|
| 29 | 7 | } |
|
| 30 | |||
| 59 |
This check marks parameter names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString.