Completed
Pull Request — master (#4)
by Joao
01:15
created
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
@@ -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   +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.