Completed
Push — master ( 8f24e9...7bd323 )
by Martijn
02:28
created
SwaggerGen/Swagger/Type/ReferenceObjectType.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,9 @@
 block discarded – undo
28 28
 
29 29
         $reference = null;
30 30
         if ($type === 'refobject') {
31
-            if (isset($match[2]))
32
-                $reference = $match[2];
31
+            if (isset($match[2])) {
32
+                            $reference = $match[2];
33
+            }
33 34
         } else {
34 35
             $reference = $match[1];
35 36
         }
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Operation.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
 		return $this->consumes;
36 36
 	}
37 37
 
38
+	/**
39
+	 * @param string $summary
40
+	 */
38 41
 	public function __construct(AbstractObject $parent, $summary = null, Tag $tag = null)
39 42
 	{
40 43
 		parent::__construct($parent);
Please login to merge, or discard this patch.
SwaggerGen/Parser/Php/Parser.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -332,7 +332,8 @@
 block discarded – undo
332 332
 
333 333
 		$match = null;
334 334
 		foreach ($Statements as $Statement) {
335
-			if ($Statement->command === 'uses' || $Statement->command === 'see') { //@todo either one, not both?
335
+			if ($Statement->command === 'uses' || $Statement->command === 'see') {
336
+//@todo either one, not both?
336 337
 				if (preg_match('/^((?:\\w+)|\$this)(?:(::|->)(\\w+))?(?:\\(\\))?$/', strtolower($Statement->data), $match) === 1) {
337 338
 					if (count($match) >= 3) {
338 339
 						$Class = null;
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Swagger.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,8 @@
 block discarded – undo
169 169
 					$this->Tags[] = $Tag;
170 170
 				}
171 171
 
172
-				if ($command === 'api') { // backwards compatibility
172
+				if ($command === 'api') {
173
+// backwards compatibility
173 174
 					$this->defaultTag = $Tag;
174 175
 				}
175 176
 				return $Tag;
Please login to merge, or discard this patch.
SwaggerGen/Swagger/IParameter.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@
 block discarded – undo
10 10
  * @copyright  2014-2015 Martijn van der Lee
11 11
  * @license    https://opensource.org/licenses/MIT MIT
12 12
  */
13
-interface IParameter {
13
+interface IParameter
14
+{
14 15
 
15 16
 	public function getName();
16 17
 }
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/ArrayType.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -69,6 +69,10 @@  discard block
 block discarded – undo
69 69
 		$this->parseRange($definition, $match);
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param string $definition
74
+	 * @param string[] $match
75
+	 */
72 76
 	private function parseFormat($definition, $match)
73 77
 	{
74 78
 		$type = strtolower($match[1]);
@@ -86,6 +90,10 @@  discard block
 block discarded – undo
86 90
 		$this->collectionFormat = self::$collectionFormats[$type];
87 91
 	}
88 92
 
93
+	/**
94
+	 * @param string $definition
95
+	 * @param string[] $match
96
+	 */
89 97
 	private function parseItems($definition, $match)
90 98
 	{
91 99
 		if (!empty($match[2])) {
@@ -93,6 +101,10 @@  discard block
 block discarded – undo
93 101
 		}
94 102
 	}
95 103
 
104
+	/**
105
+	 * @param string $definition
106
+	 * @param string[] $match
107
+	 */
96 108
 	private function parseRange($definition, $match)
97 109
 	{
98 110
 		if (!empty($match[3])) {
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/StringType.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -42,6 +42,10 @@  discard block
 block discarded – undo
42 42
 		$this->parseDefault($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
 		$type = strtolower($match[1]);
@@ -51,6 +55,10 @@  discard block
 block discarded – undo
51 55
 		$this->format = self::$formats[$type];
52 56
 	}
53 57
 
58
+	/**
59
+	 * @param string $definition
60
+	 * @param string[] $match
61
+	 */
54 62
 	private function parseContent($definition, $match)
55 63
 	{
56 64
 		if (strtolower($match[1]) === 'enum') {
@@ -60,6 +68,10 @@  discard block
 block discarded – undo
60 68
 		}
61 69
 	}
62 70
 
71
+	/**
72
+	 * @param string $definition
73
+	 * @param string[] $match
74
+	 */
63 75
 	private function parseRange($definition, $match)
64 76
 	{
65 77
 
@@ -83,6 +95,10 @@  discard block
 block discarded – undo
83 95
 		}
84 96
 	}
85 97
 
98
+	/**
99
+	 * @param string $definition
100
+	 * @param string[] $match
101
+	 */
86 102
 	private function parseDefault($definition, $match)
87 103
 	{
88 104
 		$this->default = isset($match[7]) && $match[7] !== '' ? $this->validateDefault($match[7]) : null;
Please login to merge, or discard this patch.