Completed
Pull Request — master (#28)
by Tom
07:32
created
src/ConfigServiceProvider.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,9 +162,9 @@
 block discarded – undo
162 162
     /**
163 163
      * @param string $name
164 164
      * @param array  $settings
165
-     * @param mixed  $default
165
+     * @param string  $default
166 166
      *
167
-     * @return mixed
167
+     * @return string
168 168
      */
169 169
     private static function getSettingOrDefault($name, array $settings, $default)
170 170
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         if (empty($files)) {
65 65
             throw new NoMatchingFilesException(
66
-                'No files found matching patterns: ' . implode(', ', $patterns)
66
+                'No files found matching patterns: '.implode(', ', $patterns)
67 67
             );
68 68
         }
69 69
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         ]);
74 74
 
75 75
         $configs = array_map(
76
-            function ($filename) use ($factory) {
76
+            function($filename) use ($factory) {
77 77
                 $reader = $factory->create($filename);
78 78
                 return $reader->read($filename);
79 79
             },
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
         $this->config = [];
103 103
 
104 104
         $iterator = new ConfigIterator(new Config($config, $separator), $separator);
105
-        $prefix = $prefix ? $prefix . $separator : '';
105
+        $prefix = $prefix ? $prefix.$separator : '';
106 106
 
107 107
         foreach ($iterator as $key => $value) {
108
-            $this->config[$prefix . $key] = $value;
108
+            $this->config[$prefix.$key] = $value;
109 109
         }
110 110
 
111 111
         $this->subProviders = $subProviders;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     public function register()
121 121
     {
122 122
         foreach ($this->config as $key => $value) {
123
-            $this->getContainer()->add($key, function () use ($value) {
123
+            $this->getContainer()->add($key, function() use ($value) {
124 124
                 return $value;
125 125
             });
126 126
         }
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
         foreach ($path as $node) {
82 82
             if (!is_array($pointer) || !array_key_exists($node, $pointer)) {
83
-                throw new EntryDoesNotExistException("No entry found for " . implode($this->separator, $path));
83
+                throw new EntryDoesNotExistException("No entry found for ".implode($this->separator, $path));
84 84
             }
85 85
 
86 86
             $pointer = &$pointer[$node];
Please login to merge, or discard this patch.