Completed
Push — fix-unused-variables ( 9f6b94 )
by Nicolas
36:14 queued 32:12
created
src/Karma/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
         $this['vcs'] = $this['git'];
158 158
 
159
-        $this['vcsHandler'] = $this->protect(function (Vcs $vcs) {
159
+        $this['vcsHandler'] = $this->protect(function(Vcs $vcs) {
160 160
             $handler = new VcsHandler($vcs, $this['finder']);
161 161
 
162 162
             $handler->setLogger($this['logger'])
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             return new \Psr\Log\NullLogger();
173 173
         });
174 174
 
175
-        $this['formatter.provider'] = $this->share(function ($c) {
175
+        $this['formatter.provider'] = $this->share(function($c) {
176 176
             return new ProfileProvider($c['profile']);
177 177
         });
178 178
 
Please login to merge, or discard this patch.
src/Karma/Command/Hydrate.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         {
147 147
             $processor->setSystemEnvironment($this->systemEnvironment);
148 148
 
149
-             $this->app['logger']->info(sprintf(
149
+                $this->app['logger']->info(sprintf(
150 150
                 'Hydrate <important>system</important> variables with <important>%s</important> values',
151 151
                 $this->systemEnvironment
152 152
             ));
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
         foreach($overrides as $variable => $value)
198 198
         {
199 199
             $logger->info(sprintf(
200
-               'Override <important>%s</important> with value <important>%s</important>',
201
-               $variable,
202
-               $value
200
+                'Override <important>%s</important> with value <important>%s</important>',
201
+                $variable,
202
+                $value
203 203
             ));
204 204
 
205 205
             $value = $this->parseList($value);
@@ -216,9 +216,9 @@  discard block
 block discarded – undo
216 216
         foreach($data as $variable => $value)
217 217
         {
218 218
             $logger->info(sprintf(
219
-               'Set custom data <important>%s</important> with value <important>%s</important>',
220
-               $variable,
221
-               $value
219
+                'Set custom data <important>%s</important> with value <important>%s</important>',
220
+                $variable,
221
+                $value
222 222
             ));
223 223
 
224 224
             $reader->setCustomData($variable, $this->filterValue($value));
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,11 +141,11 @@  discard block
 block discarded – undo
141 141
         $hydrator = $this->app['hydrator'];
142 142
         $unusedVariables = $hydrator->getUnusedVariables();
143 143
 
144
-        if(! empty($unusedVariables))
144
+        if( ! empty($unusedVariables))
145 145
         {
146 146
             $logger = $this->app['logger'];
147 147
 
148
-            $logger->warning('You have unused variables : you should remove them or check if you have not mispelled them').
148
+            $logger->warning('You have unused variables : you should remove them or check if you have not mispelled them') .
149 149
             $logger->warning(sprintf(
150 150
                 'Unused variables : %s',
151 151
                 implode(', ', $unusedVariables)
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         $strings = $input->getOption($optionName);
159 159
 
160
-        if(! is_array($strings))
160
+        if( ! is_array($strings))
161 161
         {
162 162
             $strings = array($strings);
163 163
         }
Please login to merge, or discard this patch.