@@ -33,11 +33,9 @@ discard block |
||
| 33 | 33 | try{ |
| 34 | 34 | $this->get($configuration); |
| 35 | 35 | return true; |
| 36 | - } |
|
| 37 | - catch(NotFoundExceptionInterface $e){ |
|
| 36 | + } catch(NotFoundExceptionInterface $e){ |
|
| 38 | 37 | return false; |
| 39 | - } |
|
| 40 | - catch(ContainerExceptionInterface $e){ |
|
| 38 | + } catch(ContainerExceptionInterface $e){ |
|
| 41 | 39 | return false; |
| 42 | 40 | } |
| 43 | 41 | } |
@@ -63,8 +61,9 @@ discard block |
||
| 63 | 61 | } |
| 64 | 62 | if (preg_match('/.+Interface$/', $configuration, $m) === 1) { |
| 65 | 63 | $wire = $this->get('settings.interface_implementations'); |
| 66 | - if(isset($wire[$configuration])) |
|
| 67 | - return $this->getInstance($wire[$configuration]); |
|
| 64 | + if(isset($wire[$configuration])) { |
|
| 65 | + return $this->getInstance($wire[$configuration]); |
|
| 66 | + } |
|
| 68 | 67 | } |
| 69 | 68 | |
| 70 | 69 | throw new ConfigurationException($configuration); |