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

Commit

Permalink
Globally remove trailing whitespace
Browse files Browse the repository at this point in the history
Using php-cs-fixer - http://cs.sensiolabs.org/

php-cs-fixer fix --fixers=trailing_spaces .
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AbstractPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class AbstractPluginManager extends ServiceManager implements ServiceLo

/**
* Whether or not to auto-add a class as an invokable class if it exists
*
*
* @var bool
*/
protected $autoAddInvokableClass = true;
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function addAbstractFactory($factory, $topOfStack = true)
public function addInitializer($initializer, $topOfStack = true)
{
if (!is_callable($initializer) && !$initializer instanceof InitializerInterface) {
if (!is_string($initializer)
if (!is_string($initializer)
|| !$this->isSubclassOf($initializer, __NAMESPACE__ . '\InitializerInterface')
) {
throw new Exception\InvalidArgumentException('$initializer should be callable.');
Expand Down

0 comments on commit ca437e5

Please sign in to comment.