Completed
Branch master (ffa084)
by Martijn
06:37 queued 03:03
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/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/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.
tests/bootstrap.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 class SwaggerGen_TestCase extends PHPUnit\Framework\TestCase
16 16
 {
17 17
 
18
+	/**
19
+	 * @param string $exception
20
+	 */
18 21
 	public function expectException($exception, $message = '')
19 22
 	{
20 23
 		// while setExpectedException accepts message to assert on, expectException does not
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/ObjectType.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -57,6 +57,10 @@  discard block
 block discarded – undo
57 57
 		$this->parseRange($definition, $match);
58 58
 	}
59 59
 
60
+	/**
61
+	 * @param string $definition
62
+	 * @param string[] $match
63
+	 */
60 64
 	private function parseFormat($definition, $match)
61 65
 	{
62 66
 		if (strtolower($match[1]) !== 'object') {
@@ -76,6 +80,10 @@  discard block
 block discarded – undo
76 80
 		$this->additionalProperties = $type;
77 81
 	}
78 82
 
83
+	/**
84
+	 * @param string $definition
85
+	 * @param string[] $match
86
+	 */
79 87
 	private function parseProperties($definition, $match)
80 88
 	{
81 89
 		if (empty($match[2])) {
@@ -105,6 +113,10 @@  discard block
 block discarded – undo
105 113
 
106 114
 	}
107 115
 
116
+	/**
117
+	 * @param string $definition
118
+	 * @param string[] $match
119
+	 */
108 120
 	private function parseRange($definition, $match)
109 121
 	{
110 122
 		if (!empty($match[3])) {
@@ -125,6 +137,9 @@  discard block
 block discarded – undo
125 137
 		}
126 138
 	}
127 139
 
140
+	/**
141
+	 * @param string|false $discriminator
142
+	 */
128 143
 	private function setDiscriminator($discriminator)
129 144
 	{
130 145
 		if (!empty($this->discriminator)) {
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Schema.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
34 34
 	 */
35 35
 	private $type;
36 36
 
37
+	/**
38
+	 * @param string $description
39
+	 */
37 40
 	public function __construct(AbstractObject $parent, $definition = 'object', $description = null)
38 41
 	{
39 42
 		parent::__construct($parent);
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/AllOfType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
 		}
31 31
 	}
32 32
 
33
+	/**
34
+	 * @param string $command
35
+	 */
33 36
 	public function handleCommand($command, $data = null)
34 37
 	{
35 38
 		switch ($command) {
Please login to merge, or discard this patch.
SwaggerGen/TypeRegistry.php 1 patch
Braces   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
  * @copyright  2014-2017 Martijn van der Lee
11 11
  * @license    https://opensource.org/licenses/MIT MIT
12 12
  */
13
-class TypeRegistry
14
-{
13
+class TypeRegistry
14
+{
15 15
 
16 16
 	/**
17 17
 	 * Map of format-name => class-name
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
 	 * 
26 26
 	 * @param type $classname
27 27
 	 */
28
-	public function add($classname)
29
-	{
30
-		if (is_subclass_of($classname, '\\SwaggerGen\\Swagger\\Type\\Custom\\ICustomType', true)) {
31
-			foreach ($classname::getFormats() as $format) {
28
+	public function add($classname)
29
+	{
30
+		if (is_subclass_of($classname, '\\SwaggerGen\\Swagger\\Type\\Custom\\ICustomType', true)) {
31
+			foreach ($classname::getFormats() as $format) {
32 32
 				$this->formats[$format] = $classname;
33 33
 			}
34 34
 		}
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 	 * 
40 40
 	 * @param string $name
41 41
 	 */
42
-	public function remove($name)
43
-	{
42
+	public function remove($name)
43
+	{
44 44
 		$this->formats[$name] = null;
45 45
 	}
46 46
 
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
 	 * 
50 50
 	 * @return bool
51 51
 	 */
52
-	public function has($name)
53
-	{
52
+	public function has($name)
53
+	{
54 54
 		return !empty($this->formats[$name]);
55 55
 	}
56 56
 
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 	 * 
60 60
 	 * @return null|string
61 61
 	 */
62
-	public function get($name)
63
-	{
62
+	public function get($name)
63
+	{
64 64
 		return !empty($this->formats[$name]) ? $this->formats[$name] : null;
65 65
 	}
66 66
 
Please login to merge, or discard this patch.