Completed
Push — 44-array-list ( b8e3fd )
by Nicolas
12:27 queued 06:38
created
src/Karma/Configuration/ValueFilterIterator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
         $isRegex,
15 15
         $filter;
16 16
 
17
+    /**
18
+     * @param string $filter
19
+     */
17 20
     public function __construct($filter, \Iterator $iterator)
18 21
     {
19 22
         parent::__construct($iterator);
Please login to merge, or discard this patch.
src/Karma/Command/Display.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         foreach($values as $variable => $value)
62 62
         {
63 63
             $this->output->writeln(sprintf(
64
-               '<fg=cyan>%s</fg=cyan> = %s',
64
+                '<fg=cyan>%s</fg=cyan> = %s',
65 65
                 $variable,
66 66
                 $this->formatValue($value)
67 67
             ));
Please login to merge, or discard this patch.
src/Karma/Hydrator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         }
100 100
 
101 101
         $this->info(sprintf(
102
-           '%d files generated',
102
+            '%d files generated',
103 103
             count($distFiles)
104 104
         ));
105 105
     }
Please login to merge, or discard this patch.
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -101,6 +101,11 @@  discard block
 block discarded – undo
101 101
         }
102 102
     }
103 103
     
104
+    /**
105
+     * @param string|boolean $content
106
+     *
107
+     * @return string
108
+     */
104 109
     private function injectValues($sourceFile, $content, $environment)
105 110
     {
106 111
         $formatter = $this->formatterProvider->getFormatter();
@@ -118,6 +123,9 @@  discard block
 block discarded – undo
118 123
         return $targetContent;
119 124
     }
120 125
     
126
+    /**
127
+     * @param string $targetFile
128
+     */
121 129
     private function backupFile($targetFile)
122 130
     {
123 131
         if($this->enableBackup === true)
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 1 patch
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.
src/Karma/Configuration/Parser.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
65 65
         return $this;
66 66
     }
67 67
     
68
+    /**
69
+     * @param string $masterFilePath
70
+     */
68 71
     public function parse($masterFilePath)
69 72
     {
70 73
         try
@@ -182,6 +185,9 @@  discard block
 block discarded – undo
182 185
         return $groupName;
183 186
     }
184 187
     
188
+    /**
189
+     * @param string $groupName
190
+     */
185 191
     private function switchGroupParser($groupName)
186 192
     {
187 193
         if(! isset($this->parsers[$groupName]))
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -221,9 +221,9 @@
 block discarded – undo
221 221
         foreach($files as $file => $status)
222 222
         {
223 223
             $message = sprintf(
224
-               'External file %s was %s',
225
-               $file,
226
-               $status['found'] ? 'found' : '<options=bold>not found</options=bold>'
224
+                'External file %s was %s',
225
+                $file,
226
+                $status['found'] ? 'found' : '<options=bold>not found</options=bold>'
227 227
             );
228 228
             
229 229
             $this->warning($message);
Please login to merge, or discard this patch.
src/Karma/Command.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@
 block discarded – undo
102 102
     private function printHeader()
103 103
     {
104 104
         $this->output->writeln(sprintf(
105
-           '<comment>%s</comment>',
106
-           $this->getLogo()
105
+            '<comment>%s</comment>',
106
+            $this->getLogo()
107 107
         ));
108 108
     }
109 109
     
Please login to merge, or discard this patch.
src/Karma/Command/Hydrate.php 1 patch
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.