@@ -18,8 +18,8 @@ |
||
| 18 | 18 | public function __construct(array $options = []) |
| 19 | 19 | { |
| 20 | 20 | foreach ($options as $key => $option) { |
| 21 | - $methodName = 'set'.$this->getCamelCase($key); |
|
| 22 | - if(!method_exists($this, $methodName)) { |
|
| 21 | + $methodName = 'set' . $this->getCamelCase($key); |
|
| 22 | + if (!method_exists($this, $methodName)) { |
|
| 23 | 23 | throw new \InvalidArgumentException($key . ' is not a known option - there is no method ' . $methodName); |
| 24 | 24 | } |
| 25 | 25 | $this->$methodName($option); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Matthias Glaub <[email protected]> |
|
| 4 | - * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause |
|
| 5 | - */ |
|
| 3 | + * @author Matthias Glaub <[email protected]> |
|
| 4 | + * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | namespace ComposerRequireChecker\DependencyGuesser; |
| 8 | 8 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | public function __invoke($symbolName) : \Generator |
| 20 | 20 | { |
| 21 | - foreach($this->guessers as $guesser) { |
|
| 21 | + foreach ($this->guessers as $guesser) { |
|
| 22 | 22 | yield from $guesser($symbolName); |
| 23 | 23 | } |
| 24 | 24 | } |