Completed
Push — master ( 146f46...ce721c )
by Thomas
03:30
created
src/utils/GeneratorUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
 	public static function callMethod(\ReflectionMethod $method, array $params = null) {
31 31
 		if (null === $params) {
32
-			$params = array_map(function ($p) {
32
+			$params = array_map(function($p) {
33 33
 				return '$' . $p->name;
34 34
 			}, $method->getParameters());
35 35
 		}
Please login to merge, or discard this patch.
src/utils/ReflectionUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 			$filter |= \ReflectionMethod::IS_PROTECTED;
33 33
 		}
34 34
 		
35
-		return array_filter($class->getMethods($filter), function ($method) {
35
+		return array_filter($class->getMethods($filter), function($method) {
36 36
 			return !$method->isFinal() && !$method->isStatic();
37 37
 		});
38 38
 	}
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 		}
82 82
 		$tokenizer = new PhpTokenizer();
83 83
 		$tokens = $tokenizer->tokenize($content);
84
-		$tokens = $tokens->filter(function ($token) {
84
+		$tokens = $tokens->filter(function($token) {
85 85
 			return $token->type !== T_WHITESPACE && $token->type !== T_COMMENT && $token->type !== T_DOC_COMMENT;
86 86
 		});
87 87
 		$statements = [];
Please login to merge, or discard this patch.
src/parser/visitor/AbstractPhpStructVisitor.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use PhpParser\Node\Stmt\Property;
20 20
 use PhpParser\Node\Stmt\TraitUse;
21 21
 use PhpParser\Node\Stmt\UseUse;
22
-use PhpParser\NodeTraverser;
23 22
 use PhpParser\NodeVisitorAbstract;
24 23
 use PhpParser\PrettyPrinter\Standard;
25 24
 use PhpParser\Node\Stmt\Class_;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
 				$p->setDefaultValue($this->getValue($default));
188 188
 			}
189 189
 			
190
-			$tag = $params->find($p, function (ParamTag $t, $p) {
190
+			$tag = $params->find($p, function(ParamTag $t, $p) {
191 191
 				return $t->getVariable() == '$' . $p->getName();
192 192
 			});
193 193
 			
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -263,6 +263,9 @@
 block discarded – undo
263 263
 		}
264 264
 	}
265 265
 	
266
+	/**
267
+	 * @return string
268
+	 */
266 269
 	private function getVisibility(Node $node) {
267 270
 		if ($node->isPrivate()) {
268 271
 			return AbstractPhpMember::VISIBILITY_PRIVATE;
Please login to merge, or discard this patch.
src/model/PhpParameter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		$docblock = new Docblock($ref->getDeclaringFunction());
65 65
 		
66 66
 		$params = $docblock->getTags('param');
67
-		$tag = $params->find($ref->name, function (ParamTag $t, $name) {
67
+		$tag = $params->find($ref->name, function(ParamTag $t, $name) {
68 68
 			return $t->getVariable() == '$' . $name;
69 69
 		});
70 70
 		
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	public function getDocblockTag() {
125 125
 		return ParamTag::create()
126
-			->setType($this->getType() ?  : 'mixed')
126
+			->setType($this->getType() ?: 'mixed')
127 127
 			->setVariable($this->getName())
128 128
 			->setDescription($this->getTypeDescription());
129 129
 	}
Please login to merge, or discard this patch.
sami.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 	->in($dir);
13 13
 
14 14
 $versions = GitVersionCollection::create($dir)
15
-    ->addFromTags('v0.*')
16
-    ->add('master', 'master branch')
15
+	->addFromTags('v0.*')
16
+	->add('master', 'master branch')
17 17
 ;
18 18
 
19 19
 return new Sami($iterator, [
Please login to merge, or discard this patch.
src/model/AbstractModel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	/**
71 71
 	 * Sets the description, which will also be used when generating a docblock
72 72
 	 * 
73
-	 * @param string|array $description
73
+	 * @param string $description
74 74
 	 * @return $this
75 75
 	 */
76 76
 	public function setDescription($description) {
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
 }
11 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/model/parts/InterfacesTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -7,8 +7,14 @@
 block discarded – undo
7 7
 
8 8
 	private $interfaces = [];
9 9
 
10
+	/**
11
+	 * @param string $qualifiedName
12
+	 */
10 13
 	abstract public function addUseStatement($qualifiedName, $alias = null);
11 14
 
15
+	/**
16
+	 * @param string $qualifiedName
17
+	 */
12 18
 	abstract public function removeUseStatement($qualifiedName);
13 19
 
14 20
 	abstract public function getNamespace();
Please login to merge, or discard this patch.
src/model/parts/TraitsTrait.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,8 +7,14 @@  discard block
 block discarded – undo
7 7
 
8 8
 	private $traits = [];
9 9
 
10
+	/**
11
+	 * @param string $qualifiedName
12
+	 */
10 13
 	abstract public function addUseStatement($qualifiedName, $alias = null);
11 14
 
15
+	/**
16
+	 * @param string $qualifiedName
17
+	 */
12 18
 	abstract public function removeUseStatement($qualifiedName);
13 19
 
14 20
 	abstract public function getNamespace();
@@ -19,7 +25,7 @@  discard block
 block discarded – undo
19 25
 	 * If the trait is passed as PhpTrait object, 
20 26
 	 * the trait is also added as use statement.
21 27
 	 *
22
-	 * @param PhpTrait|string $trait trait or qualified name
28
+	 * @param PhpTrait $trait trait or qualified name
23 29
 	 * @return $this
24 30
 	 */
25 31
 	public function addTrait($trait) {
Please login to merge, or discard this patch.