@@ -1,10 +1,10 @@ |
||
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 | 10 | ]; |
@@ -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 | ]; |
@@ -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)) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function setCache(CacheInterface $cache, $env = "live") |
63 | 63 | { |
64 | - foreach ((array)$env as $item) { |
|
64 | + foreach ((array) $env as $item) { |
|
65 | 65 | $this->cache[$item] = $cache; |
66 | 66 | $this->cacheTTL[$item] = new \DateInterval('P7D'); |
67 | 67 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function setCacheTTL(\DateInterval $ttl, $env = "live") |
78 | 78 | { |
79 | - foreach ((array)$env as $item) { |
|
79 | + foreach ((array) $env as $item) { |
|
80 | 80 | if (!isset($this->cache[$item])) { |
81 | 81 | throw new \Exception('Environment does not exists. Could not set Cache TTL.'); |
82 | 82 | } |