Completed
Push — master ( 11ab7e...3f4149 )
by Greg
01:38
created
src/Loader/ConfigProcessor.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,6 @@
 block discarded – undo
145 145
     /**
146 146
      * Evaluate one configuration item.
147 147
      *
148
-     * @param array $processed
149 148
      * @param array $config
150 149
      * @return array
151 150
      */
Please login to merge, or discard this patch.
src/Inject/ConfigForSetters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         foreach ($settings as $setterMethod => $args) {
29 29
             $fn = [$object, $setterMethod];
30 30
             if (is_callable($fn)) {
31
-                $result = call_user_func_array($fn, (array)$args);
31
+                $result = call_user_func_array($fn, (array) $args);
32 32
 
33 33
                 // We require that $fn must only be used with setter methods.
34 34
                 // Setter methods are required to always return $this so that
Please login to merge, or discard this patch.
src/Inject/ConfigForCommand.php 2 patches
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
         }
53 53
     }
54 54
 
55
+    /**
56
+     * @param \Symfony\Component\Console\Input\InputInterface $input
57
+     */
55 58
     protected function injectConfigurationForGlobalOptions($input)
56 59
     {
57 60
         if (!$this->application) {
@@ -66,6 +69,10 @@  discard block
 block discarded – undo
66 69
         return $this->injectConfigGroupIntoOptions($configGroup, $options, $input);
67 70
     }
68 71
 
72
+    /**
73
+     * @param null|\Symfony\Component\Console\Command\Command $command
74
+     * @param \Symfony\Component\Console\Input\InputInterface $input
75
+     */
69 76
     protected function injectConfigurationForCommand($command, $input)
70 77
     {
71 78
         $commandName = $command->getName();
@@ -78,6 +85,9 @@  discard block
 block discarded – undo
78 85
         return $this->injectConfigGroupIntoOptions($configGroup, $options, $input);
79 86
     }
80 87
 
88
+    /**
89
+     * @param ConfigFallback $configGroup
90
+     */
81 91
     protected function injectConfigGroupIntoOptions($configGroup, $options, $input)
82 92
     {
83 93
         foreach ($options as $option => $inputOption) {
@@ -97,6 +107,10 @@  discard block
 block discarded – undo
97 107
         }
98 108
     }
99 109
 
110
+    /**
111
+     * @param null|\Symfony\Component\Console\Command\Command $command
112
+     * @param \Symfony\Component\Console\Input\InputInterface $input
113
+     */
100 114
     protected function getHelpCommandTarget($command, $input)
101 115
     {
102 116
         if (($command->getName() != 'help') || (!isset($this->application))) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,12 +3,10 @@
 block discarded – undo
3 3
 
4 4
 use Consolidation\Config\ConfigInterface;
5 5
 use Consolidation\Config\Util\ConfigFallback;
6
-
7 6
 use Symfony\Component\Console\ConsoleEvents;
8 7
 use Symfony\Component\Console\Event\ConsoleCommandEvent;
9 8
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
10 9
 use Symfony\Component\Console\Application;
11
-use Symfony\Component\Console\Input\InputOption;
12 10
 
13 11
 class ConfigForCommand implements EventSubscriberInterface
14 12
 {
Please login to merge, or discard this patch.
src/Util/ConfigOverlay.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -33,6 +33,7 @@  discard block
 block discarded – undo
33 33
      * highest priority.
34 34
      *
35 35
      * If a context has already been added, its priority will not change.
36
+     * @param string $name
36 37
      */
37 38
     public function addContext($name, ConfigInterface $config)
38 39
     {
@@ -78,6 +79,9 @@  discard block
 block discarded – undo
78 79
         return isset($this->contexts[$name]);
79 80
     }
80 81
 
82
+    /**
83
+     * @param string $name
84
+     */
81 85
     public function getContext($name)
82 86
     {
83 87
         if ($this->hasContext($name)) {
@@ -123,6 +127,10 @@  discard block
 block discarded – undo
123 127
         return $this->getSingle($key, $default);
124 128
     }
125 129
 
130
+    /**
131
+     * @param string $key
132
+     * @param string $default
133
+     */
126 134
     public function getSingle($key, $default = null)
127 135
     {
128 136
         $context = $this->findContext($key);
@@ -132,6 +140,9 @@  discard block
 block discarded – undo
132 140
         return $default;
133 141
     }
134 142
 
143
+    /**
144
+     * @param string $key
145
+     */
135 146
     public function getUnion($key)
136 147
     {
137 148
         $result = [];
@@ -177,6 +188,7 @@  discard block
 block discarded – undo
177 188
 
178 189
     /**
179 190
      * @inheritdoc
191
+     * @param string $fn
180 192
      */
181 193
     protected function unsupported($fn)
182 194
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Consolidation\Config\Config;
5 5
 use Consolidation\Config\ConfigInterface;
6
-use Consolidation\Config\Util\ArrayUtil;
7 6
 use Consolidation\Config\Util\ConfigInterpolatorInterface;
8 7
 use Consolidation\Config\Util\ConfigInterpolatorTrait;
9 8
 
Please login to merge, or discard this patch.
src/Util/Interpolator.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -69,6 +69,7 @@  discard block
 block discarded – undo
69 69
      * Replacements looks up all of the replacements in the configuration
70 70
      * object, given the token keys from the provided message. Keys that
71 71
      * do not exist in the configuration are replaced with the default value.
72
+     * @param string $message
72 73
      */
73 74
     public function replacements($data, $message, $default = '')
74 75
     {
@@ -84,6 +85,10 @@  discard block
 block discarded – undo
84 85
         return $replacements;
85 86
     }
86 87
 
88
+    /**
89
+     * @param string $key
90
+     * @param string $default
91
+     */
87 92
     protected function get($data, $key, $default)
88 93
     {
89 94
         if (is_array($data)) {
Please login to merge, or discard this patch.