@@ -30,6 +30,11 @@ discard block |
||
| 30 | 30 | protected |
| 31 | 31 | $environment; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $name |
|
| 35 | + * @param string $description |
|
| 36 | + * @param string $outputTitle |
|
| 37 | + */ |
|
| 33 | 38 | public function __construct(Application $app, $name, $description, $outputTitle) |
| 34 | 39 | { |
| 35 | 40 | $this->name = $name; |
@@ -128,6 +133,10 @@ discard block |
||
| 128 | 133 | } |
| 129 | 134 | |
| 130 | 135 | abstract protected function launchConfigurationAction(ConfigurableProcessor $processor); |
| 136 | + |
|
| 137 | + /** |
|
| 138 | + * @return ConfigurableProcessor |
|
| 139 | + */ |
|
| 131 | 140 | abstract protected function getProcessor(); |
| 132 | 141 | |
| 133 | 142 | private function configureProcessor(ConfigurableProcessor $processor) |
@@ -153,6 +162,9 @@ discard block |
||
| 153 | 162 | } |
| 154 | 163 | } |
| 155 | 164 | |
| 165 | + /** |
|
| 166 | + * @param string $optionName |
|
| 167 | + */ |
|
| 156 | 168 | private function parseOptionWithAssignments(InputInterface $input, $optionName) |
| 157 | 169 | { |
| 158 | 170 | $strings = $input->getOption($optionName); |
@@ -199,6 +199,9 @@ |
||
| 199 | 199 | return $sectionName; |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | + /** |
|
| 203 | + * @param string $sectionName |
|
| 204 | + */ |
|
| 202 | 205 | private function switchSectionParser($sectionName) |
| 203 | 206 | { |
| 204 | 207 | if(! isset($this->parsers[$sectionName])) |
@@ -14,6 +14,9 @@ |
||
| 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); |
@@ -150,6 +150,9 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | + /** |
|
| 154 | + * @param string|boolean $fileContent |
|
| 155 | + */ |
|
| 153 | 156 | private function parseFileDirectives($file, & $fileContent, $environment) |
| 154 | 157 | { |
| 155 | 158 | $this->currentFormatterName = null; |
@@ -224,6 +227,9 @@ discard block |
||
| 224 | 227 | } |
| 225 | 228 | } |
| 226 | 229 | |
| 230 | + /** |
|
| 231 | + * @param string $delimiter |
|
| 232 | + */ |
|
| 227 | 233 | private function generateContentForListDirective($variable, $environment, $delimiter, array $wrapper) |
| 228 | 234 | { |
| 229 | 235 | $values = $this->readValueToInject($variable, $environment); |
@@ -252,6 +258,9 @@ discard block |
||
| 252 | 258 | return preg_replace('~(<%\s*karma:[^%]*%>\s*)~i', '', $fileContent); |
| 253 | 259 | } |
| 254 | 260 | |
| 261 | + /** |
|
| 262 | + * @return string |
|
| 263 | + */ |
|
| 255 | 264 | private function injectValues($sourceFile, $content, $environment, $replacementCounter = 0) |
| 256 | 265 | { |
| 257 | 266 | $replacementCounter += $this->injectScalarValues($content, $environment); |