Completed
Pull Request — master (#67)
by
unknown
02:38
created
src/generator/builder/parts/TypeBuilderPart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 		if (!$types || $types->size() !== 1) {
39 39
 		    return null;
40 40
         }
41
-		$type = (string)$types->values()->toArray()[0];
41
+		$type = (string) $types->values()->toArray()[0];
42 42
 		if (!in_array($type, self::$noTypeHints, true)
43 43
             || ($allowed && in_array($type, self::$php7typeHints, true))) {
44 44
 
Please login to merge, or discard this patch.
src/parser/visitor/MethodParserVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 if ($type !== $qualifiedType) {
53 53
                     $type = $qualifiedType;
54 54
                 } else {
55
-                    $type = '\\'.$type;
55
+                    $type = '\\' . $type;
56 56
                 }
57 57
             }
58 58
 
Please login to merge, or discard this patch.
src/parser/visitor/parts/MemberParserPart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 			if ($vars->size() > 0) {
26 26
 				$var = $vars->get(0);
27 27
                 $types = TypeUtils::expressionToTypes($var->getType());
28
-                foreach($types as $type) {
28
+                foreach ($types as $type) {
29 29
                     $type = TypeUtils::guessQualifiedName($this->struct, $type);
30 30
                     $member->addType($type);
31 31
                 }
Please login to merge, or discard this patch.
src/model/parts/ParametersPart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 	 * @return $this
103 103
 	 */
104 104
 	public function addSimpleDescParameter(string $name, $types = null, string $typeDescription = null, $defaultValue = null) {
105
-		$types = (array)$types;
105
+		$types = (array) $types;
106 106
 	    $parameter = new PhpParameter($name);
107 107
 		$parameter->setTypes($types);
108 108
 		$parameter->setTypeDescription($typeDescription);
Please login to merge, or discard this patch.