Completed
Push — master ( 74dde8...83c363 )
by Thomas
02:00
created
src/model/PhpMethod.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -49,6 +49,9 @@
 block discarded – undo
49 49
 		return new static($name);
50 50
 	}
51 51
 	
52
+	/**
53
+	 * @param string $name
54
+	 */
52 55
 	public function __construct($name) {
53 56
 		parent::__construct($name);
54 57
 		$this->initParameters();
Please login to merge, or discard this patch.
src/parser/FileParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
 	private $visitors;
18 18
 	private $filename;
19 19
 	
20
+	/**
21
+	 * @param string $filename
22
+	 */
20 23
 	public function __construct($filename) {
21 24
 		$this->filename = $filename;
22 25
 		$this->visitors = new Set();
Please login to merge, or discard this patch.
src/generator/builder/parts/RoutineBuilderPart.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 use gossi\codegen\model\AbstractModel;
5 5
 use gossi\codegen\model\RoutineInterface;
6 6
 
7
-Trait RoutineBuilderPart {
7
+trait RoutineBuilderPart {
8 8
 	
9 9
 	use TypeBuilderPart;
10 10
 	
Please login to merge, or discard this patch.
src/parser/visitor/parts/ValueParserPart.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 * Returns whether this node is a boolean value
75 75
 	 * 
76 76
 	 * @param Node $node
77
-	 * @return boolean
77
+	 * @return boolean|null
78 78
 	 */
79 79
 	private function isBool(Node $node) {
80 80
 		if ($node instanceof ConstFetch) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 * Returns whether this node is a null value
92 92
 	 * 
93 93
 	 * @param Node $node
94
-	 * @return boolean
94
+	 * @return boolean|null
95 95
 	 */
96 96
 	private function isNull(Node $node) {
97 97
 		if ($node instanceof ConstFetch) {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	 * Returns the value from a node
105 105
 	 *
106 106
 	 * @param Node $node
107
-	 * @return mixed
107
+	 * @return string
108 108
 	 */
109 109
 	private function getExpression(Node $node) {
110 110
 		if ($node instanceof ConstFetch) {
Please login to merge, or discard this patch.
src/parser/PrettyPrinter.php 3 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -7,24 +7,24 @@  discard block
 block discarded – undo
7 7
 class PrettyPrinter extends Standard {
8 8
 	
9 9
  /**
10
-     * Pretty prints an array of nodes (statements) and indents them optionally.
11
-     *
12
-     * @param Node[] $nodes  Array of nodes
13
-     * @param bool   $indent Whether to indent the printed nodes
14
-     *
15
-     * @return string Pretty printed statements
16
-     */
17
-    protected function pStmts(array $nodes, $indent = true) {
18
-        $result = '';
10
+  * Pretty prints an array of nodes (statements) and indents them optionally.
11
+  *
12
+  * @param Node[] $nodes  Array of nodes
13
+  * @param bool   $indent Whether to indent the printed nodes
14
+  *
15
+  * @return string Pretty printed statements
16
+  */
17
+	protected function pStmts(array $nodes, $indent = true) {
18
+		$result = '';
19 19
 	   $nodeBefore = NULL;
20
-        foreach ($nodes as $node) {
21
-            $comments = $node->getAttribute('comments', array());
22
-            if ($comments) {
23
-                $result .= "\n" . $this->pComments($comments);
24
-                if ($node instanceof Stmt\Nop) {
25
-                    continue;
26
-                }
27
-            }
20
+		foreach ($nodes as $node) {
21
+			$comments = $node->getAttribute('comments', array());
22
+			if ($comments) {
23
+				$result .= "\n" . $this->pComments($comments);
24
+				if ($node instanceof Stmt\Nop) {
25
+					continue;
26
+				}
27
+			}
28 28
 		  
29 29
 		  if ($nodeBefore && $nodeBefore->getLine() && $node->getLine()) {
30 30
 			  $diff = $node->getLine()- $nodeBefore->getLine();
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
 			  }
34 34
 		  }
35 35
 		  
36
-            $result .= "\n" . $this->p($node) . ($node instanceof Expr ? ';' : '');
36
+			$result .= "\n" . $this->p($node) . ($node instanceof Expr ? ';' : '');
37 37
 		  $nodeBefore = $node;
38
-        }
38
+		}
39 39
 
40 40
 	   if ($indent) {
41
-            return preg_replace('~\n(?!$|' . $this->noIndentToken . ')~', "\n    ", $result);
42
-        } else {
43
-            return $result;
44
-        }
45
-    }
41
+			return preg_replace('~\n(?!$|' . $this->noIndentToken . ')~', "\n    ", $result);
42
+		} else {
43
+			return $result;
44
+		}
45
+	}
46 46
     
47 47
 	public function pExpr_Array(Array_ $node) {
48 48
 		return '[' . $this->pCommaSeparated($node->items) . ']';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             }
28 28
 		  
29 29
 		  if ($nodeBefore && $nodeBefore->getLine() && $node->getLine()) {
30
-			  $diff = $node->getLine()- $nodeBefore->getLine();
30
+			  $diff = $node->getLine() - $nodeBefore->getLine();
31 31
 			  if ($diff > 0) {
32 32
 				  $result .= str_repeat("\n", $diff - 1);
33 33
 			  }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     protected function pStmts(array $nodes, $indent = true) {
18 18
         $result = '';
19
-	   $nodeBefore = NULL;
19
+	   $nodeBefore = null;
20 20
         foreach ($nodes as $node) {
21 21
             $comments = $node->getAttribute('comments', array());
22 22
             if ($comments) {
Please login to merge, or discard this patch.