| 1 | <?php |
||
| 11 | class ActionPost extends ActionPostAbstract |
||
| 12 | { |
||
| 13 | const LANG_RU = 'ru-RU'; |
||
|
1 ignored issue
–
show
|
|||
| 14 | const VOICE_RU = 'Tatyana'; |
||
| 15 | const LANG_EN = 'en-US'; |
||
|
1 ignored issue
–
show
|
|||
| 16 | const VOICE_EN = 'Salli'; |
||
| 17 | |||
| 18 | public function __construct(ResourceDO $resourceDO, FilesystemInterface $filesystem, Manager $manager) |
||
| 22 | /** |
||
| 23 | * @param ResourceDOInterface $resourceDO |
||
| 24 | * @return mixed |
||
| 25 | * @throws ErrorException |
||
| 26 | */ |
||
| 27 | protected function generate(ResourceDOInterface $resourceDO) |
||
| 46 | |||
| 47 | public function isRussian($text) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param $voiceText |
||
| 57 | * @todo LoD violation |
||
| 58 | */ |
||
| 59 | protected function selectLanguage($voiceText) |
||
| 72 | } |
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.