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 | 5 | public function __construct(\ReflectionParameter $param) { |
|
24 | 5 | parent::__construct($param->getClass() ? $param->getClass()->name : ''); |
|
25 | |||
26 | 5 | $this->parameter = $param->name; |
|
27 | 5 | $this->function = ($param->getDeclaringClass() ? $param->getDeclaringClass()->name.'::' : ''). |
|
28 | 5 | $param->getDeclaringFunction()->name.'()'; |
|
29 | 5 | } |
|
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
.