1 | <?php |
||
14 | class Memcached implements StorageInterface { |
||
15 | |||
16 | protected $memcached; |
||
17 | |||
18 | protected $prefix; |
||
19 | |||
20 | public function __construct($host, $port = 11211, $prefix = 'PHPProm:', $weight = 0) { |
||
25 | |||
26 | public function storeMeasurement($prefix, $key, $value) { |
||
29 | |||
30 | public function getMeasurements($prefix, array $keys) { |
||
41 | } |
||
42 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.