Skip to content
This repository has been archived by the owner on May 24, 2020. It is now read-only.

Commit

Permalink
CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jun 19, 2017
1 parent afc3346 commit 739936f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Config.php
Expand Up @@ -78,7 +78,9 @@ public function getChannel(string $name)
$channel['processors'][] = $this->resolveProcessor($processorId);
}

return $this->channels[$name] = $channel;
$this->channels[$name] = $channel;

return $channel;
}

/**
Expand Down Expand Up @@ -167,7 +169,7 @@ protected function resolveProcessor(string $processorId)
* @param string $option
* @param string $name
*
* @return mixed
* @return object
*/
protected function makeInstance($option, $name)
{
Expand Down Expand Up @@ -221,10 +223,8 @@ protected function formatFormatters(array $formatters = [])
protected function formatHandlers(array $handlers = [])
{
foreach ($handlers as $id => $option) {
if (isset($option['formatter'])) {
if (!isset($this->formatters[$option['formatter']])) {
throw new InvalidArgumentException(sprintf('Formatter %s not configured.', $option['formatter']));
}
if (isset($option['formatter']) && !isset($this->formatters[$option['formatter']])) {
throw new InvalidArgumentException(sprintf('Formatter %s not configured.', $option['formatter']));
}

if (isset($option['processors'])) {
Expand Down

0 comments on commit 739936f

Please sign in to comment.