@@ 100-104 (lines=5) @@ | ||
97 | } |
|
98 | ||
99 | switch ($optionIndex) { |
|
100 | case static::OPTION_KEY_INPUT: |
|
101 | if (!is_array($options[$optionIndex])) { |
|
102 | throw new \InvalidArgumentException('extra.' . static::CONFIG_MAIN_KEY . "[].{$optionIndex} should be array!"); |
|
103 | } |
|
104 | break; |
|
105 | case static::OPTION_KEY_OUTPUT: |
|
106 | if (!is_string($options[$optionIndex])) { |
|
107 | throw new \InvalidArgumentException('extra.' . static::CONFIG_MAIN_KEY . "[].{$optionIndex} should string!"); |
|
@@ 105-109 (lines=5) @@ | ||
102 | throw new \InvalidArgumentException('extra.' . static::CONFIG_MAIN_KEY . "[].{$optionIndex} should be array!"); |
|
103 | } |
|
104 | break; |
|
105 | case static::OPTION_KEY_OUTPUT: |
|
106 | if (!is_string($options[$optionIndex])) { |
|
107 | throw new \InvalidArgumentException('extra.' . static::CONFIG_MAIN_KEY . "[].{$optionIndex} should string!"); |
|
108 | } |
|
109 | break; |
|
110 | } |
|
111 | } |
|
112 | } |