Completed
Pull Request — master (#31)
by Tom
03:45
created
src/ServiceConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function getKeys()
26 26
     {
27 27
         return array_map(
28
-            function (ServiceDefinition $definition) {
28
+            function(ServiceDefinition $definition) {
29 29
                 return $definition->getKey();
30 30
             },
31 31
             $this->config
Please login to merge, or discard this patch.
src/ApplicationConfig.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @api
24 24
      *
25
-     * @param array  $patterns
25
+     * @param string[]  $patterns
26 26
      * @param string $separator
27 27
      *
28 28
      * @return self
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         ]);
44 44
 
45 45
         $configs = array_map(
46
-            function ($filename) use ($factory) {
46
+            function($filename) use ($factory) {
47 47
                 $reader = $factory->create($filename);
48 48
                 return $reader->read($filename);
49 49
             },
Please login to merge, or discard this patch.
src/League/InflectorServiceProvider.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,6 @@
 block discarded – undo
35 35
     }
36 36
 
37 37
     /**
38
-     * @param string $interface
39
-     * @param array  $config
40 38
      */
41 39
     private function configureInterface(InflectorDefinition $definition)
42 40
     {
Please login to merge, or discard this patch.
src/League/ApplicationConfigServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
         $this->prefix   = $prefix;
27 27
         $this->config   = $config;
28 28
         $this->provides = array_map(
29
-            function ($key) {
30
-                return $this->keyPrefix() . $key;
29
+            function($key) {
30
+                return $this->keyPrefix().$key;
31 31
             },
32 32
             $config->getKeys()
33 33
         );
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $prefix = $this->keyPrefix();
39 39
 
40 40
         foreach ($this->config as $key => $value) {
41
-            $this->container->share($prefix . $key, function () use ($value) {
41
+            $this->container->share($prefix.$key, function() use ($value) {
42 42
                 return $value;
43 43
             });
44 44
         }
@@ -53,6 +53,6 @@  discard block
 block discarded – undo
53 53
             return '';
54 54
         }
55 55
 
56
-        return $this->prefix . $this->config->getSeparator();
56
+        return $this->prefix.$this->config->getSeparator();
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
src/Exception/ExceptionFactory.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace TomPHP\ConfigServiceProvider\Exception;
4 4
 
5
-use Exception as PHPException;
6
-
7 5
 trait ExceptionFactory
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
src/Exception/UnknownFileTypeException.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     /**
12 12
      * @param string   $extension
13
-     * @param string[] $availableExtension
13
+     * @param string[] $availableExtensions
14 14
      *
15 15
      * @return self
16 16
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         return self::create(
21 21
             'No reader configured for "%s" files; readers are available for [%s].',
22 22
             $extension,
23
-            '"' . implode('", "', $availableExtensions) . '"'
23
+            '"'.implode('", "', $availableExtensions).'"'
24 24
         );
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Exception/NoMatchingFilesException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public static function fromPatterns(array $patterns)
15 15
     {
16
-        $patterns = '"' . implode('", "', $patterns) . '"';
16
+        $patterns = '"'.implode('", "', $patterns).'"';
17 17
 
18 18
         return self::create(
19 19
             'No files found matching patterns: [%s].',
Please login to merge, or discard this patch.
src/Pimple/Configurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
         }
19 19
 
20 20
         foreach ($config as $key => $value) {
21
-            $container[$prefix . $key] = $value;
21
+            $container[$prefix.$key] = $value;
22 22
         }
23 23
     }
24 24
 
25 25
     public function addServiceConfig($container, ServiceConfig $config)
26 26
     {
27 27
         foreach ($config as $definition) {
28
-            $factory = function () use ($definition) {
28
+            $factory = function() use ($definition) {
29 29
                 $reflection = new ReflectionClass($definition->getClass());
30 30
 
31 31
                 $instance = $reflection->newInstanceArgs($definition->getArguments());
Please login to merge, or discard this patch.