1 | <?php |
||
15 | class PlanManager |
||
16 | { |
||
17 | /** |
||
18 | * @var PlanParser |
||
19 | */ |
||
20 | private $planParser; |
||
21 | |||
22 | /** |
||
23 | * @var UrlTransformer |
||
24 | */ |
||
25 | private $urlTransformer; |
||
26 | |||
27 | /** |
||
28 | * @var Serializer |
||
29 | */ |
||
30 | private $serializer; |
||
31 | |||
32 | /** |
||
33 | * @var MemcachedCache |
||
34 | */ |
||
35 | private $memcache; |
||
36 | |||
37 | /** |
||
38 | * TrainingManager constructor. |
||
39 | * |
||
40 | * @param PlanParser $planParser |
||
41 | * @param UrlTransformer $urlTransformer |
||
42 | * @param Serializer $serializer |
||
43 | * @param MemcachedCache $memcached |
||
44 | */ |
||
45 | 2 | public function __construct( |
|
56 | |||
57 | /** |
||
58 | * @param int $week |
||
59 | * @param int $seance |
||
60 | * @param string $type |
||
61 | * |
||
62 | * @return Plan |
||
63 | * @throws ConfigurationException |
||
64 | */ |
||
65 | 2 | public function findByType($week, $seance, $type) |
|
89 | } |
||
90 |
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.