Completed
Pull Request — master (#13)
by
unknown
03:01
created
SwaggerGen/Swagger/Type/ObjectType.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -42,6 +42,10 @@  discard block
 block discarded – undo
42 42
 		$this->parseRange($definition, $match);
43 43
 	}
44 44
 
45
+	/**
46
+	 * @param string $definition
47
+	 * @param string[] $match
48
+	 */
45 49
 	private function parseFormat($definition, $match)
46 50
 	{
47 51
 		if (strtolower($match[1]) !== 'object') {
@@ -49,6 +53,10 @@  discard block
 block discarded – undo
49 53
 		}
50 54
 	}
51 55
 
56
+	/**
57
+	 * @param string $definition
58
+	 * @param string[] $match
59
+	 */
52 60
 	private function parseProperties($definition, $match)
53 61
 	{
54 62
 		if (!empty($match[2])) {
@@ -67,6 +75,10 @@  discard block
 block discarded – undo
67 75
 		}
68 76
 	}
69 77
 
78
+	/**
79
+	 * @param string $definition
80
+	 * @param string[] $match
81
+	 */
70 82
 	private function parseRange($definition, $match)
71 83
 	{
72 84
 		if (!empty($match[3])) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,7 @@
 block discarded – undo
116 116
                 $propertySuffix = substr($command, -1);
117 117
                 if ($propertySuffix === '!') {
118 118
                     $readOnly = true;
119
-                }
120
-				else if ($propertySuffix !== '?') {
119
+                } else if ($propertySuffix !== '?') {
121 120
 					$this->required[$name] = true;
122 121
 				}
123 122
 
Please login to merge, or discard this patch.