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

Commit

Permalink
Merge pull request zendframework/zendframework#6141 from localheinz/b…
Browse files Browse the repository at this point in the history
…ugfix/indentation

Fix: Indentation of method arguments
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/Writer/AbstractWriter.php
Expand Up @@ -295,9 +295,9 @@ public function setFormatter($formatter, array $options = null)

if (!$formatter instanceof Formatter\FormatterInterface) {
throw new Exception\InvalidArgumentException(sprintf(
'Formatter must implement %s\Formatter\FormatterInterface; received "%s"',
__NAMESPACE__,
is_object($formatter) ? get_class($formatter) : gettype($formatter)
'Formatter must implement %s\Formatter\FormatterInterface; received "%s"',
__NAMESPACE__,
is_object($formatter) ? get_class($formatter) : gettype($formatter)
));
}

Expand Down
12 changes: 6 additions & 6 deletions src/Writer/FingersCrossed.php
Expand Up @@ -113,9 +113,9 @@ public function setWriter($writer, array $options = null)

if (!$writer instanceof WriterInterface) {
throw new Exception\InvalidArgumentException(sprintf(
'Writer must implement %s\WriterInterface; received "%s"',
__NAMESPACE__,
is_object($writer) ? get_class($writer) : gettype($writer)
'Writer must implement %s\WriterInterface; received "%s"',
__NAMESPACE__,
is_object($writer) ? get_class($writer) : gettype($writer)
));
}

Expand Down Expand Up @@ -150,9 +150,9 @@ public function setWriterPluginManager($plugins)
}
if (!$plugins instanceof WriterPluginManager) {
throw new Exception\InvalidArgumentException(sprintf(
'Writer plugin manager must extend %s\WriterPluginManager; received %s',
__NAMESPACE__,
is_object($plugins) ? get_class($plugins) : gettype($plugins)
'Writer plugin manager must extend %s\WriterPluginManager; received %s',
__NAMESPACE__,
is_object($plugins) ? get_class($plugins) : gettype($plugins)
));
}

Expand Down
8 changes: 2 additions & 6 deletions src/Writer/MongoDB.php
Expand Up @@ -62,15 +62,11 @@ public function __construct($mongo, $database = null, $collection = null, array
}

if (null === $collection) {
throw new Exception\InvalidArgumentException(
'The collection parameter cannot be empty'
);
throw new Exception\InvalidArgumentException('The collection parameter cannot be empty');
}

if (null === $database) {
throw new Exception\InvalidArgumentException(
'The database parameter cannot be empty'
);
throw new Exception\InvalidArgumentException('The database parameter cannot be empty');
}

if (!($mongo instanceof MongoClient || $mongo instanceof Mongo)) {
Expand Down

0 comments on commit f4d839a

Please sign in to comment.