Completed
Push — master ( ce721c...ce62ef )
by Thomas
02:37
created
src/visitor/GeneratorVisitor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -357,6 +357,9 @@
 block discarded – undo
357 357
 		}
358 358
 	}
359 359
 
360
+	/**
361
+	 * @param string $type
362
+	 */
360 363
 	protected function writeFunctionReturnType($type) {
361 364
 		if ($this->config->getGenerateReturnTypeHints() && $type != NULL && false === strpos($type, '|')) {
362 365
 			$this->writer->write(': ')->write($type);
Please login to merge, or discard this patch.
src/model/AbstractPhpStruct.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -171,10 +171,10 @@
 block discarded – undo
171 171
 	 * 
172 172
 	 * If the class has already been declared you get only the set alias.
173 173
 	 * 
174
- 	 * @param string $qualifiedName
175
- 	 * @param null|string $alias
176
- 	 * @return string the used alias
177
- 	 */
174
+	 * @param string $qualifiedName
175
+	 * @param null|string $alias
176
+	 * @return string the used alias
177
+	 */
178 178
  	public function declareUse($qualifiedName, $alias = null) {
179 179
  		$qualifiedName = trim($qualifiedName, '\\');
180 180
  		if (!$this->hasUseStatement($qualifiedName)) {
Please login to merge, or discard this patch.
src/model/parts/ParamDocblockGeneratorTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 		foreach ($this->parameters as $param) {
15 15
 			$ptag = $param->getDocblockTag();
16 16
 
17
-			$tag = $tags->find($ptag, function (ParamTag $tag, ParamTag $ptag) {
17
+			$tag = $tags->find($ptag, function(ParamTag $tag, ParamTag $ptag) {
18 18
 				return $tag->getVariable() == $ptag->getVariable();
19 19
 			});
20 20
 
Please login to merge, or discard this patch.
src/config/CodeFileGeneratorConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 				'headerDocblock' => null,
20 20
 				'blankLineAtEnd' => true,
21 21
 				'declareStrictTypes'  => false,
22
-				'generateScalarTypeHints' => function (Options $options) {
22
+				'generateScalarTypeHints' => function(Options $options) {
23 23
 					return $options['declareStrictTypes'];
24 24
 				},
25
-				'generateReturnTypeHints' => function (Options $options) {
25
+				'generateReturnTypeHints' => function(Options $options) {
26 26
 					return $options['declareStrictTypes'];
27 27
 				},
28 28
 			]);
Please login to merge, or discard this patch.
src/config/CodeGeneratorConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	protected function getDefaultOptions() {
42 42
 		return [
43 43
 			'generateDocblock' => true,
44
-			'generateEmptyDocblock' => function (Options $options) {
44
+			'generateEmptyDocblock' => function(Options $options) {
45 45
 				return $options['generateDocblock'];
46 46
 			},
47 47
 			'generateScalarTypeHints' => false,
Please login to merge, or discard this patch.
src/model/GenerateableInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -5,6 +5,7 @@
 block discarded – undo
5 5
 
6 6
 	/**
7 7
 	 * Generates docblock based on provided information
8
+	 * @return void
8 9
 	 */
9 10
 	public function generateDocblock();
10 11
 }
Please login to merge, or discard this patch.