Completed
Push — master ( 890a42...717975 )
by Martijn
02:00
created
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/Swagger/Type/Property.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 		$format = strtolower($match[1]);
66 66
 		if (isset(self::$classTypes[$format])) {
67 67
 			$type = self::$classTypes[$format];
68
-			$class = "SwaggerGen\\Swagger\\Type\\{$type}Type";
68
+			$class = "SwaggerGen\\Swagger\\Type\\{$type}type";
69 69
 			$this->Type = new $class($this, $definition);
70 70
 		} else {
71 71
 			throw new \SwaggerGen\Exception("Property format not recognized: '{$format}'");
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/ArrayType.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 		$format = strtolower($match[1]);
166 166
 		if (isset(self::$classTypes[$format])) {
167 167
 			$type = self::$classTypes[$format];
168
-			$typeClass = "SwaggerGen\\Swagger\\Type\\{$type}Type";
168
+			$typeClass = "SwaggerGen\\Swagger\\Type\\{$type}type";
169 169
 			return new $typeClass($this, $items);
170 170
 		}
171 171
 
Please login to merge, or discard this 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/Parameter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 		$format = strtolower($match[1]);
66 66
 		if (isset(self::$classTypes[$format])) {
67 67
 			$type = self::$classTypes[$format];
68
-			$class = "SwaggerGen\\Swagger\\Type\\{$type}Type";
68
+			$class = "SwaggerGen\\Swagger\\Type\\{$type}type";
69 69
 			$this->Type = new $class($this, $definition);
70 70
 		} else {
71 71
 			throw new \SwaggerGen\Exception("Property format not recognized: '{$format}'");
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/NumberType.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
 		$this->parseDefault($definition, $match);
42 42
 	}
43 43
 
44
+	/**
45
+	 * @param string[] $match
46
+	 */
44 47
 	private function parseFormat($definition, $match)
45 48
 	{
46 49
 		if (!isset(self::$formats[strtolower($match[1])])) {
@@ -49,6 +52,9 @@  discard block
 block discarded – undo
49 52
 		$this->format = self::$formats[strtolower($match[1])];
50 53
 	}
51 54
 
55
+	/**
56
+	 * @param string[] $match
57
+	 */
52 58
 	private function parseRange($definition, $match)
53 59
 	{
54 60
 		if (!empty($match[2])) {
@@ -67,6 +73,9 @@  discard block
 block discarded – undo
67 73
 		}
68 74
 	}
69 75
 
76
+	/**
77
+	 * @param string[] $match
78
+	 */
70 79
 	private function parseDefault($definition, $match)
71 80
 	{
72 81
 		$this->default = isset($match[6]) && $match[6] !== '' ? $this->validateDefault($match[6]) : null;
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/IntegerType.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -81,6 +81,10 @@
 block discarded – undo
81 81
 		}
82 82
 	}
83 83
 
84
+	/**
85
+	 * @param string $definition
86
+	 * @param string[] $match
87
+	 */
84 88
 	private function parseDefault($definition, $match)
85 89
 	{
86 90
 		$this->default = isset($match[6]) && $match[6] !== '' ? $this->validateDefault($match[6]) : null;
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Schema.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 			// Internal type if type known and not overwritten by definition
73 73
 			if (isset(self::$classTypes[$format])) {
74 74
 				$type = self::$classTypes[$format];
75
-				$class = "SwaggerGen\\Swagger\\Type\\{$type}Type";
75
+				$class = "SwaggerGen\\Swagger\\Type\\{$type}type";
76 76
 				$this->type = new $class($this, $definition);
77 77
 			} else {
78 78
 				$this->type = new Type\ReferenceObjectType($this, $definition);
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/StringType.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
 	protected function validateDefault($value)
155 155
 	{
156 156
 		if (empty($value)) {
157
-			throw new \SwaggerGen\Exception("Empty {$this->type} default");
157
+			throw new \SwaggerGen\Exception("empty {$this->type} default");
158 158
 		}
159 159
 
160 160
 		if (!empty($this->enum) && !in_array($value, $this->enum)) {
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/AbstractRegexType.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
 		$match = array();
46 46
 		if (preg_match(self::REGEX_START . self::REGEX_FORMAT . self::REGEX_DEFAULT_START . $this->regex . self::REGEX_DEFAULT_END . self::REGEX_END, $definition, $match) !== 1) {
47
-			throw new \SwaggerGen\Exception("Unparseable {$this->type} definition: '{$definition}'");
47
+			throw new \SwaggerGen\Exception("unparseable {$this->type} definition: '{$definition}'");
48 48
 		}
49 49
 
50 50
 		if (strtolower($match[1] !== $this->type)) {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		$value = parent::validateDefault($value);
61 61
 		
62 62
 		if (preg_match('/' . $this->pattern . '/', $value) !== 1) {
63
-			throw new \SwaggerGen\Exception("Invalid {$this->type} default value");
63
+			throw new \SwaggerGen\Exception("invalid {$this->type} default value");
64 64
 		}
65 65
 		
66 66
 		return $value;
Please login to merge, or discard this patch.