Completed
Push — 57-formatter-per-extension ( 73b3c8 )
by Nicolas
40:17 queued 36:16
created
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/Logging/OutputInterfaceAdapter.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
     private function writeLevel($level)
51 51
     {
52 52
         $message = str_pad(sprintf(
53
-           '[%s]',
54
-           strtoupper($level)
53
+            '[%s]',
54
+            strtoupper($level)
55 55
         ), 10);
56 56
 
57 57
         $this->output->write($this->colorizeMessage($level, $message));
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         if(isset($colors[$level]))
68 68
         {
69 69
             $message = sprintf(
70
-               '<%1$s>%2$s</%1$s>',
70
+                '<%1$s>%2$s</%1$s>',
71 71
                 'fg=' . $colors[$level],
72 72
                 $message
73 73
             );
Please login to merge, or discard this patch.
src/Karma/ProfileReader.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         catch(ParseException $e)
57 57
         {
58 58
             throw new \RuntimeException(sprintf(
59
-               'Error while parsing profile : %s',
59
+                'Error while parsing profile : %s',
60 60
                 $e->getMessage()
61 61
             ));
62 62
         }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
29 29
 
30 30
     private function parseFormatters($content)
31 31
     {
32
-        if(! is_array($content))
32
+        if( ! is_array($content))
33 33
         {
34 34
             throw new \InvalidArgumentException('Syntax error in profile [formatters]');
35 35
         }
36 36
 
37 37
         foreach($content as $name => $rules)
38 38
         {
39
-            if(! is_array($rules))
39
+            if( ! is_array($rules))
40 40
             {
41 41
                 throw new \InvalidArgumentException('Syntax error in profile [formatters]');
42 42
             }
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 2 patches
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.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
42 42
 
43 43
             if($this->vcs->isTracked($targetFile))
44 44
             {
45
-                $this->logger->info("Untrack $targetFile");
45
+                $this->logger->info("untrack $targetFile");
46 46
                 $this->vcs->untrackFile($targetFile);
47 47
             }
48 48
 
49 49
             if($this->vcs->isIgnored($targetFile) === false)
50 50
             {
51
-                $this->logger->info("Ignore $targetFile");
51
+                $this->logger->info("ignore $targetFile");
52 52
                 $this->vcs->ignoreFile($targetFile);
53 53
             }
54 54
         }
Please login to merge, or discard this patch.
src/Karma/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
         
155 155
         $this['vcs'] = $this['git'];
156 156
         
157
-        $this['vcsHandler'] = $this->protect(function (Vcs $vcs) {
157
+        $this['vcsHandler'] = $this->protect(function(Vcs $vcs) {
158 158
             $handler = new VcsHandler($vcs, $this['finder']);
159 159
 
160 160
             $handler->setLogger($this['logger'])
Please login to merge, or discard this patch.
src/Karma/Command/Diff.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $table->enableFormattingTags()
46 46
                 ->setHeaders(array($environment1, $environment2))
47 47
                 ->displayKeys()
48
-                ->setValueRenderingFunction(function($value){
48
+                ->setValueRenderingFunction(function($value) {
49 49
                     return $this->formatValue($value);
50 50
                 });
51 51
                 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $table->enableFormattingTags()
46 46
                 ->setHeaders(array($environment1, $environment2))
47 47
                 ->displayKeys()
48
-                ->setValueRenderingFunction(function($value){
48
+                ->setValueRenderingFunction(function($value) {
49 49
                     return $this->formatValue($value);
50 50
                 });
51 51
                 
Please login to merge, or discard this patch.
src/Karma/Command/Hydrate.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
         foreach($overrides as $variable => $value)
166 166
         {
167 167
             $logger->info(sprintf(
168
-               'Override <important>%s</important> with value <important>%s</important>',
169
-               $variable,
170
-               $value
168
+                'Override <important>%s</important> with value <important>%s</important>',
169
+                $variable,
170
+                $value
171 171
             ));
172 172
             
173 173
             $reader->overrideVariable($variable, $this->filterValue($value));
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
         foreach($data as $variable => $value)
183 183
         {
184 184
             $logger->info(sprintf(
185
-               'Set custom data <important>%s</important> with value <important>%s</important>',
186
-               $variable,
187
-               $value
185
+                'Set custom data <important>%s</important> with value <important>%s</important>',
186
+                $variable,
187
+                $value
188 188
             ));
189 189
             
190 190
             $reader->setCustomData($variable, $this->filterValue($value));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
     {
126 126
         $strings = $input->getOption($optionName);
127 127
 
128
-        if(! is_array($strings))
128
+        if( ! is_array($strings))
129 129
         {
130 130
             $strings = array($strings);
131 131
         }
Please login to merge, or discard this patch.
src/Karma/Command/Rollback.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     }
45 45
     
46 46
     private function processInputs(InputInterface $input)
47
-    {        
47
+    {
48 48
         $sourcePath = $input->getArgument('sourcePath');
49 49
         if($sourcePath === null)
50 50
         {
Please login to merge, or discard this patch.