Completed
Push — master ( 976f6b...11328c )
by Martijn
02:47
created
SwaggerGen/Parser/Php/Parser.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@
 block discarded – undo
65 65
 		}
66 66
 	}
67 67
 
68
+	/**
69
+	 * @param string $file
70
+	 */
68 71
 	public function parse($file, Array $dirs = array(), Array $defines = array())
69 72
 	{
70 73
 		$this->dirs = $this->common_dirs;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,9 +153,9 @@
 block discarded – undo
153 153
 				$commandLineNumber = $lineNumber;
154 154
 			} elseif ($command) {
155 155
 				if ($lineNumber < count($commentLines) - 1) {
156
-					$data.= ' ' . $line;
156
+					$data .= ' ' . $line;
157 157
 				} else {
158
-					$data.= preg_replace('~\s*\**\/\s*$~', '', $line);
158
+					$data .= preg_replace('~\s*\**\/\s*$~', '', $line);
159 159
 				}
160 160
 			}
161 161
 		}
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Parameter.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,13 +62,16 @@
 block discarded – undo
62 62
 
63 63
 	/**
64 64
 	 * Return true if the parameter is of type 'formData'
65
-	 * @return type
65
+	 * @return boolean
66 66
 	 */
67 67
 	public function isForm()
68 68
 	{
69 69
 		return $this->in === 'form';
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param string $in
74
+	 */
72 75
 	public function __construct(AbstractObject $parent, $in, $data, $required = false)
73 76
 	{
74 77
 		parent::__construct($parent);
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Swagger.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -47,6 +47,10 @@
 block discarded – undo
47 47
 
48 48
 	//private $security;
49 49
 
50
+	/**
51
+	 * @param string $host
52
+	 * @param string $basePath
53
+	 */
50 54
 	public function __construct($host = null, $basePath = null)
51 55
 	{
52 56
 		parent::__construct(null);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
 				}
185 185
 
186 186
 				if (!isset($this->Paths[$path])) {
187
-					$this->Paths[$path] = new Path($this, $Tag ? : $this->defaultTag);
187
+					$this->Paths[$path] = new Path($this, $Tag ?: $this->defaultTag);
188 188
 				}
189 189
 				return $this->Paths[$path];
190 190
 
Please login to merge, or discard this patch.
SwaggerGen/SwaggerGen.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	/**
74 74
 	 * @param string $file
75 75
 	 * @param string[] $dirs
76
-	 * @return Php\Entity\Statement[]
76
+	 * @return Statement[]
77 77
 	 */
78 78
 	private function parseTextFile($file, $dirs)
79 79
 	{
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
 	}
83 83
 
84 84
 	/**
85
-	 * @param string $file
86 85
 	 * @param string[] $dirs
86
+	 * @param string $text
87 87
 	 * @return Php\Entity\Statement[]
88 88
 	 */
89 89
 	private function parseText($text, $dirs)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
 				$stacktrace = array();
159 159
 				foreach ($stack as $object) {
160
-					$stacktrace[] = (string)$object;
160
+					$stacktrace[] = (string) $object;
161 161
 				}
162 162
 				$messages[] = join(", \n", $stacktrace);
163 163
 				
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 				break;
175 175
 
176 176
 			case self::FORMAT_JSON_PRETTY:
177
-				$flags = (defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0);	// Since PHP 5.4.0
177
+				$flags = (defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0); // Since PHP 5.4.0
178 178
 				$output = json_encode($output, $flags);
179 179
 				break;
180 180
 
Please login to merge, or discard this patch.
SwaggerGen/Parser/Php/Preprocessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 									if (!$this->handle($match[1], $match[2]) && $this->getState()) {
59 59
 										$output .= $line;
60 60
 									} else {
61
-										$output .= str_replace('@'.$this->getPrefix(), '!'.$this->getPrefix(), $line);
61
+										$output .= str_replace('@' . $this->getPrefix(), '!' . $this->getPrefix(), $line);
62 62
 									}
63 63
 								} else {
64 64
 									$output .= $line;
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.