@@ -5,8 +5,8 @@ |
||
| 5 | 5 | /** Is thrown when no dependency exists or can be created for the supplied name. */ |
| 6 | 6 | class UnresolvableDependency extends DiException |
| 7 | 7 | { |
| 8 | - /** @param string $name Name of the dependency. */ |
|
| 9 | - public function __construct(string $name) { |
|
| 10 | - parent::__construct(['name' => $name]); |
|
| 11 | - } |
|
| 8 | + /** @param string $name Name of the dependency. */ |
|
| 9 | + public function __construct(string $name) { |
|
| 10 | + parent::__construct(['name' => $name]); |
|
| 11 | + } |
|
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | /** @return string default exception message */ |
| 34 | 34 | public function buildMessage(array $vars) { |
| 35 | - $message = $this->getId() . ':'; |
|
| 35 | + $message = $this->getId().':'; |
|
| 36 | 36 | foreach ($vars as $key => $value) |
| 37 | 37 | $message .= " $key = $value;"; |
| 38 | 38 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | class AppContext extends AppContextBase |
| 8 | 8 | { |
| 9 | 9 | use |
| 10 | - storage\LocalStorage |
|
| 10 | + storage\LocalStorage |
|
| 11 | 11 | , storage\SessionStorage |
| 12 | 12 | , storage\GlobalStorage |
| 13 | 13 | , creator\MethodCreator |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function store(Bean $bean) { |
| 45 | 45 | $this->storage->store(self::DI_VALUE_PREFIX.$bean->name, $bean->value); |
| 46 | - foreach($bean->aliases as $alias) |
|
| 46 | + foreach ($bean->aliases as $alias) |
|
| 47 | 47 | $this->storage->store(self::DI_ALIAS_PREFIX.$alias, $bean->name); |
| 48 | 48 | |
| 49 | 49 | return $bean->value; |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | /** Is thrown when a required factory method is missing, thus providing no storage for an active scope */ |
| 6 | 6 | class StorageFactoryNotDefined extends \evelikto\di\DiException |
| 7 | 7 | { |
| 8 | - /** @param string $name Name of the required factory */ |
|
| 9 | - public function __construct(string $name) { |
|
| 10 | - parent::__construct(['name' => $name]); |
|
| 11 | - } |
|
| 8 | + /** @param string $name Name of the required factory */ |
|
| 9 | + public function __construct(string $name) { |
|
| 10 | + parent::__construct(['name' => $name]); |
|
| 11 | + } |
|
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | /** Is thrown when autowiring of a method parameter fails */ |
| 6 | 6 | class UnresolvableParameter extends DiException |
| 7 | 7 | { |
| 8 | - /** @param string $name Name of the parameter. */ |
|
| 9 | - public function __construct(string $name) { |
|
| 10 | - parent::__construct(['name' => $name]); |
|
| 11 | - } |
|
| 8 | + /** @param string $name Name of the parameter. */ |
|
| 9 | + public function __construct(string $name) { |
|
| 10 | + parent::__construct(['name' => $name]); |
|
| 11 | + } |
|
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |