@@ -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); |
@@ -101,6 +101,11 @@ discard block |
||
| 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 |
||
| 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) |
@@ -77,6 +77,9 @@ discard block |
||
| 77 | 77 | return $this; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | + /** |
|
| 81 | + * @param string $masterFilePath |
|
| 82 | + */ |
|
| 80 | 83 | public function parse($masterFilePath) |
| 81 | 84 | { |
| 82 | 85 | try |
@@ -199,6 +202,9 @@ discard block |
||
| 199 | 202 | return $sectionName; |
| 200 | 203 | } |
| 201 | 204 | |
| 205 | + /** |
|
| 206 | + * @param string $sectionName |
|
| 207 | + */ |
|
| 202 | 208 | private function switchSectionParser($sectionName) |
| 203 | 209 | { |
| 204 | 210 | if(! isset($this->parsers[$sectionName])) |