Completed
Push — fix-unused-variables ( 9f6b94 )
by Nicolas
36:14 queued 32:12
created
src/Karma/Formatters/Rules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         if($value === '<string>')
51 51
         {
52
-            $result = function ($value) use ($result) {
52
+            $result = function($value) use ($result) {
53 53
                 return str_replace('<string>', $value, $result);
54 54
             };
55 55
         }
Please login to merge, or discard this patch.
src/Karma/Hydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -193,12 +193,12 @@
 block discarded – undo
193 193
         $values = $this->readValueToInject($variable, $environment);
194 194
         $formatter = $this->getFormatterForCurrentTargetFile();
195 195
 
196
-        if(! is_array($values))
196
+        if( ! is_array($values))
197 197
         {
198 198
             $values = array($values);
199 199
         }
200 200
 
201
-        array_walk($values, function (& $value) use ($formatter) {
201
+        array_walk($values, function(& $value) use ($formatter) {
202 202
             $value = $formatter->format($value);
203 203
         });
204 204
 
Please login to merge, or discard this patch.
src/Karma/Logging/OutputAware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         {
43 43
             if($verbosity <= $this->output->getVerbosity())
44 44
             {
45
-                if(! is_array($messages))
45
+                if( ! is_array($messages))
46 46
                 {
47 47
                     $messages = array($messages);
48 48
                 }
Please login to merge, or discard this patch.
src/Karma/VCS/Git.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
             $titleLineNumber = count($lines);
124 124
 
125 125
             // ensure an empty line preceeds comment
126
-            if(! empty($lines[$titleLineNumber - 1]))
126
+            if( ! empty($lines[$titleLineNumber - 1]))
127 127
             {
128 128
                 $lines[$titleLineNumber] = '';
129 129
                 $titleLineNumber++;
Please login to merge, or discard this patch.
src/Karma/VcsHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             $rootPath = '';
65 65
         }
66 66
 
67
-        if(! empty($rootPath))
67
+        if( ! empty($rootPath))
68 68
         {
69 69
             $rootPath .= $directorySeparator;
70 70
         }
Please login to merge, or discard this patch.
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 1 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.