| 1 | <?php |
||
| 11 | class VoiceAdapterFactory |
||
| 12 | { |
||
| 13 | const VOICE_PROVIDER_GOOGLE = 'google'; |
||
| 14 | const VOICE_PROVIDER_IVONA = 'ivona'; |
||
|
1 ignored issue
–
show
|
|||
| 15 | /** |
||
| 16 | * @var ConfigInterface|Config |
||
| 17 | */ |
||
| 18 | protected $config; |
||
| 19 | |||
| 20 | public function __construct(ConfigInterface $config) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return \AudioManager\Adapter\AdapterInterface |
||
| 27 | * @throws RuntimeException |
||
| 28 | */ |
||
| 29 | public function __invoke() |
||
| 51 | } |
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.