@@ -98,7 +98,7 @@ |
||
| 98 | 98 | |
| 99 | 99 | foreach ($variables as $variable) { |
| 100 | 100 | $data['@new'] = $newData; |
| 101 | - $variableValues[] = ['variable' => $variable, 'value' => AssociativeArray::getFromKey($data, $variable, "")]; |
|
| 101 | + $variableValues[] = ['variable' => $variable, 'value' => AssociativeArray::getFromKey($data, $variable, "")]; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | return $variableValues; |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | |
| 76 | 76 | public function listContents(string $path): array |
| 77 | 77 | { |
| 78 | - $files = scandir($this->rootPath . "/" .$path); |
|
| 78 | + $files = scandir($this->rootPath . "/" . $path); |
|
| 79 | 79 | return $files ?: []; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | * |
| 112 | 112 | * @throws ChainOperationException |
| 113 | 113 | */ |
| 114 | - protected function processItemWithOperation(ItemInterface $item, int $chainNumber, ExecutionContext &$context): ItemInterface |
|
| 114 | + protected function processItemWithOperation(ItemInterface $item, int $chainNumber, ExecutionContext & $context): ItemInterface |
|
| 115 | 115 | { |
| 116 | 116 | try { |
| 117 | 117 | return $this->chainLinks[$chainNumber]->process($item, $context); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | return true; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - while($class = get_parent_class($class)) { |
|
| 71 | + while ($class = get_parent_class($class)) { |
|
| 72 | 72 | if ($class == $targetClass) { |
| 73 | 73 | return true; |
| 74 | 74 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | $returnItems = []; |
| 39 | 39 | foreach ($this->chainProcessors as $chainProcessor) { |
| 40 | - $returnItems[] = $chainProcessor->processItemWithChain($item, 0, $context); |
|
| 40 | + $returnItems[] = $chainProcessor->processItemWithChain($item, 0, $context); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | // Nothing to process. |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public function processStop(StopItem $item, ExecutionContext $context): ItemInterface |
| 48 | 48 | { |
| 49 | 49 | foreach ($this->chainProcessors as $chainProcessor) { |
| 50 | - $result = $chainProcessor->processItemWithChain($item, 0, $context); |
|
| 50 | + $result = $chainProcessor->processItemWithChain($item, 0, $context); |
|
| 51 | 51 | |
| 52 | 52 | if ($result !== $item) { |
| 53 | 53 | // Return a new stop item in order to continue flushing out data with stop items. |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function processData(DataItemInterface $item, ExecutionContext $context): ItemInterface |
| 36 | 36 | { |
| 37 | 37 | foreach ($this->chainProcessors as $chainProcessor) { |
| 38 | - $chainProcessor->processItemWithChain($item, 0, $context); |
|
| 38 | + $chainProcessor->processItemWithChain($item, 0, $context); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | // Nothing to process. |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function processStop(StopItem $item, ExecutionContext $context): ItemInterface |
| 46 | 46 | { |
| 47 | 47 | foreach ($this->chainProcessors as $chainProcessor) { |
| 48 | - $result = $chainProcessor->processItemWithChain($item, 0, $context); |
|
| 48 | + $result = $chainProcessor->processItemWithChain($item, 0, $context); |
|
| 49 | 49 | |
| 50 | 50 | if ($result !== $item) { |
| 51 | 51 | // Return a new stop item in order to continue flushing out data with stop items. |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $logPath = $this->workDir . "/execution.log"; |
| 35 | - if(file_exists($logPath)) { |
|
| 35 | + if (file_exists($logPath)) { |
|
| 36 | 36 | $this->fileSystem->writeStream("execution.log", fopen($logPath, 'r')); |
| 37 | 37 | } |
| 38 | 38 | } |