Conditions | 4 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
79 | private function argumentIsValid($indexName): bool |
||
80 | { |
||
81 | if ($indexName === null || |
||
82 | !is_string($indexName) || |
||
83 | mb_strlen($indexName) === 0 |
||
84 | ) { |
||
85 | $this->output->writeln( |
||
86 | '<error>Argument index-name must be a non empty string.</error>' |
||
87 | ); |
||
88 | |||
89 | return false; |
||
90 | } |
||
91 | |||
92 | return true; |
||
93 | } |
||
94 | } |
||
95 |