Completed
Pull Request — master (#6)
by Joao
47s
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.
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.
src/DependencyInjection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Definition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.