| 1 | <?php |
||
| 14 | class SeasonRepository extends Repository implements SeasonRepositoryInterface { |
||
| 15 | |||
| 16 | protected $entityType = 'season'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | public function byId($id) { |
||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function all() { |
||
| 39 | |||
| 40 | public function byLeague($leagueId) { |
||
| 47 | |||
| 48 | } |
||
| 49 |
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.