Completed
Push — master ( 1cb0dd...d7bbfe )
by Joao
02:20 queued 11s
created
config/config-closure.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
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
 ];
Please login to merge, or discard this patch.
src/Definition.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
      */
34 34
     private function loadConfig($currentConfig, $env)
35 35
     {
36
-        $file = __DIR__ . '/../../../../config/config-' . $env .  '.php';
36
+        $file = __DIR__ . '/../../../../config/config-' . $env . '.php';
37 37
 
38 38
         if (!file_exists($file)) {
39
-            $file = __DIR__ . '/../config/config-' . $env .  '.php';
39
+            $file = __DIR__ . '/../config/config-' . $env . '.php';
40 40
         }
41 41
 
42 42
         if (!file_exists($file)) {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function setCache(CacheInterface $cache, $env = "live")
62 62
     {
63
-        foreach ((array)$env as $item) {
63
+        foreach ((array) $env as $item) {
64 64
             try {
65 65
                 $date = new \DateInterval('P7D');
66 66
             } catch (\Exception $ex) {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function setCacheTTL(\DateInterval $ttl, $env = "live")
82 82
     {
83
-        foreach ((array)$env as $item) {
83
+        foreach ((array) $env as $item) {
84 84
             if (!isset($this->cache[$item])) {
85 85
                 throw new EnvironmentException('Environment does not exists. Could not set Cache TTL.');
86 86
             }
Please login to merge, or discard this patch.
config/config-test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.