Skip to content

Commit

Permalink
Fix CS v3.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jul 15, 2022
1 parent e9bec84 commit 4a75d39
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if you need an element that is declared inside an array you can use a special sy

Element in config can be defined even manually :

$object->setConfig('element_key',$element);
$object->setConfig('element_key', $element);


Supported Formats
Expand Down
2 changes: 1 addition & 1 deletion src/ContainerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function _uniqueElementName(string $desired): string
/**
* If you are using ContainerTrait only, then you can safely
* use this add() method. If you are also using factory, or
* initializer then redefine add() and call _addContainer, _addFactory,.
* initializer then redefine add() and call _addContainer, _addFactory.
*
* @param mixed $obj
* @param array|string $args
Expand Down
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function _factory($seed, array $defaults = null): object
$defaults = [];
}

if ((!is_array($seed) && !is_object($seed))) {
if (!is_array($seed) && !is_object($seed)) {
throw new Exception('Use of non-array seed ($seed type = ' . gettype($seed) . ') is not supported');
}

Expand Down
4 changes: 2 additions & 2 deletions tests/DynamicMethodTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ public function testRemoveMethod(): void
// simple method
$m = new DynamicMethodMock();
$m->addMethod('sum', $this->createSumFx());
$this->assertTrue($m->hasMethod(('sum')));
$this->assertTrue($m->hasMethod('sum'));
$m->removeMethod('sum');
$this->assertFalse($m->hasMethod(('sum')));
$this->assertFalse($m->hasMethod('sum'));
}

public function testGlobalMethodException1(): void
Expand Down

0 comments on commit 4a75d39

Please sign in to comment.