@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'closureProp' => function ($param1, $param2) { |
|
4 | + 'closureProp' => function($param1, $param2) { |
|
5 | 5 | return $param1 . ':' . $param2; |
6 | 6 | }, |
7 | - 'closureProp2' => function () { |
|
7 | + 'closureProp2' => function() { |
|
8 | 8 | return 'No Param'; |
9 | 9 | }, |
10 | - 'closureArray' => function ($param) { |
|
10 | + 'closureArray' => function($param) { |
|
11 | 11 | return is_array($param); |
12 | 12 | }, |
13 | - 'closureWithoutArgs' => function () { |
|
13 | + 'closureWithoutArgs' => function() { |
|
14 | 14 | return true; |
15 | 15 | } |
16 | 16 | ]; |
@@ -3,7 +3,7 @@ |
||
3 | 3 | return [ |
4 | 4 | 'property1' => 'string', |
5 | 5 | 'property2' => true, |
6 | - 'property3' => function () { |
|
6 | + 'property3' => function() { |
|
7 | 7 | return 'calculated'; |
8 | 8 | }, |
9 | 9 | 'property5' => 'test', |
@@ -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()); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | private function loadConfigFile($env) |
51 | 51 | { |
52 | - $file = $this->getBaseDir() . '/config-' . $env . '.php'; |
|
52 | + $file = $this->getBaseDir() . '/config-' . $env . '.php'; |
|
53 | 53 | |
54 | 54 | if (!file_exists($file)) { |
55 | 55 | return null; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function setCache(CacheInterface $cache, $env = "live") |
95 | 95 | { |
96 | - foreach ((array)$env as $item) { |
|
96 | + foreach ((array) $env as $item) { |
|
97 | 97 | try { |
98 | 98 | $date = new DateInterval('P7D'); |
99 | 99 | } catch (Exception $ex) { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | public function setCacheTTL(DateInterval $ttl, $env = "live") |
115 | 115 | { |
116 | - foreach ((array)$env as $item) { |
|
116 | + foreach ((array) $env as $item) { |
|
117 | 117 | if (!isset($this->cache[$item])) { |
118 | 118 | throw new EnvironmentException('Environment does not exists. Could not set Cache TTL.'); |
119 | 119 | } |