ParametersHandler.php 1 location
|
@@ 37-39 (lines=3) @@
|
| 34 |
|
|
| 35 |
|
$processor = new Processor($event->getIO()); |
| 36 |
|
$parameters = $configs['incenteev-parameters']; |
| 37 |
|
if (array_keys($parameters) !== range(0, count($parameters) - 1)) { |
| 38 |
|
$parameters = array($parameters); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
foreach ($parameters as $config) { |
| 42 |
|
if (!is_array($config)) { |
src/IncenteevParametersProcessor.php 1 location
|
@@ 42-44 (lines=3) @@
|
| 39 |
|
|
| 40 |
|
$processor = new Processor($event->getIO()); |
| 41 |
|
$parameters = $configs['incenteev-parameters']; |
| 42 |
|
if (array_keys($parameters) !== range(0, count($parameters) - 1)) { |
| 43 |
|
$parameters = array($parameters); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
if (empty($parameters['parameter-key'])) { |
| 47 |
|
self::$PARAMETER_KEY = 'parameters'; |