Skip to content

Commit

Permalink
Shortened a couple of lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxon committed Apr 21, 2017
1 parent 1927ac3 commit a03a5cd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Model/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ private function runIndividualComponents()
$masterConfig = $master[$componentAlias];

// Run that component
$this->state->emulateAreaCode(Area::AREA_ADMINHTML, [$this, 'runComponent'], [$componentAlias, $masterConfig]);
$this->state->emulateAreaCode(
Area::AREA_ADMINHTML,
[$this, 'runComponent'],
[$componentAlias, $masterConfig]
);
}
} catch (ComponentException $e) {
$this->log->logError($e->getMessage());
Expand All @@ -150,7 +154,11 @@ private function runAllComponents()
foreach ($master as $componentAlias => $componentConfig) {

// Run the component in question
$this->state->emulateAreaCode(Area::AREA_ADMINHTML, [$this, 'runComponent'], [$componentAlias, $componentConfig]);
$this->state->emulateAreaCode(
Area::AREA_ADMINHTML,
[$this, 'runComponent'],
[$componentAlias, $componentConfig]
);
}
} catch (ComponentException $e) {
$this->log->logError($e->getMessage());
Expand Down

0 comments on commit a03a5cd

Please sign in to comment.