Completed
Pull Request — master (#4)
by Joao
01:21
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 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     protected $methodCall = [];
28 28
 
29 29
     /**
30
-     * @param $containerInterface ContainerInterface
30
+     * @param Container $containerInterface ContainerInterface
31 31
      * @return DependencyInjection
32 32
      */
33 33
     public function injectContainer($containerInterface)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     protected function getArgs()
63 63
     {
64
-        return array_map(function ($value) {
64
+        return array_map(function($value) {
65 65
             if ($value instanceof Param) {
66 66
                 return $this->containerInterface->get($value->getParam());
67 67
             }
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
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
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)) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function setCache(CacheInterface $cache, $env = "live")
65 65
     {
66
-        foreach ((array)$env as $item) {
66
+        foreach ((array) $env as $item) {
67 67
             try {
68 68
                 $date = new DateInterval('P7D');
69 69
             } catch (Exception $ex) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function setCacheTTL(DateInterval $ttl, $env = "live")
85 85
     {
86
-        foreach ((array)$env as $item) {
86
+        foreach ((array) $env as $item) {
87 87
             if (!isset($this->cache[$item])) {
88 88
                 throw new EnvironmentException('Environment does not exists. Could not set Cache TTL.');
89 89
             }
Please login to merge, or discard this patch.