@@ -27,7 +27,7 @@ |
||
| 27 | 27 | protected $methodCall = []; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @param $containerInterface ContainerInterface |
|
| 30 | + * @param Container $containerInterface ContainerInterface |
|
| 31 | 31 | * @return DependencyInjection |
| 32 | 32 | */ |
| 33 | 33 | public function injectContainer($containerInterface) |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | protected function getArgs() |
| 66 | 66 | { |
| 67 | - return array_map(function ($value) { |
|
| 67 | + return array_map(function($value) { |
|
| 68 | 68 | if ($value instanceof Param) { |
| 69 | 69 | try { |
| 70 | 70 | return $this->containerInterface->get($value->getParam()); |
@@ -36,10 +36,10 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | private function loadConfig($currentConfig, $env) |
| 38 | 38 | { |
| 39 | - $file = __DIR__ . '/../../../../config/config-' . $env . '.php'; |
|
| 39 | + $file = __DIR__ . '/../../../../config/config-' . $env . '.php'; |
|
| 40 | 40 | |
| 41 | 41 | if (!file_exists($file)) { |
| 42 | - $file = __DIR__ . '/../config/config-' . $env . '.php'; |
|
| 42 | + $file = __DIR__ . '/../config/config-' . $env . '.php'; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | if (!file_exists($file)) { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function setCache(CacheInterface $cache, $env = "live") |
| 65 | 65 | { |
| 66 | - foreach ((array)$env as $item) { |
|
| 66 | + foreach ((array) $env as $item) { |
|
| 67 | 67 | try { |
| 68 | 68 | $date = new DateInterval('P7D'); |
| 69 | 69 | } catch (Exception $ex) { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function setCacheTTL(DateInterval $ttl, $env = "live") |
| 85 | 85 | { |
| 86 | - foreach ((array)$env as $item) { |
|
| 86 | + foreach ((array) $env as $item) { |
|
| 87 | 87 | if (!isset($this->cache[$item])) { |
| 88 | 88 | throw new EnvironmentException('Environment does not exists. Could not set Cache TTL.'); |
| 89 | 89 | } |