Completed
Pull Request — master (#6)
by Joao
13s
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
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     protected function getArgs($argsToParse = null)
67 67
     {
68
-            return array_map(function ($value) {
68
+            return array_map(function($value) {
69 69
                 if ($value instanceof Param) {
70 70
                     try {
71 71
                         return $this->containerInterface->get($value->getParam());
Please login to merge, or discard this patch.
src/Definition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     private function loadConfigFile($configName)
53 53
     {
54
-        $file = $this->getBaseDir() . '/config-' . $configName .  '.php';
54
+        $file = $this->getBaseDir() . '/config-' . $configName . '.php';
55 55
 
56 56
         if (!file_exists($file)) {
57 57
             return null;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function setCache($configName, CacheInterface $cache, DateInterval $ttl = null)
97 97
     {
98
-        foreach ((array)$configName as $item) {
98
+        foreach ((array) $configName as $item) {
99 99
             try {
100 100
                 $date = empty($ttl) ? new DateInterval('P7D') : $ttl;
101 101
             } catch (Exception $ex) {
Please login to merge, or discard this patch.