Completed
Push — master ( 976f6b...11328c )
by Martijn
02:47
created
SwaggerGen/Parser/Php/Parser.php 1 patch
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.
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 1 patch
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.
SwaggerGen/SwaggerGen.php 1 patch
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.
SwaggerGen/Swagger/Type/Property.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 		'datetime' => 'Date',
39 39
 		'date-time' => 'Date',
40 40
 		'object' => 'Object',
41
-        'refobject' => 'ReferenceObject',
41
+		'refobject' => 'ReferenceObject',
42 42
 			//'file'	=> 'File';
43 43
 			//'set'		=> 'EnumArray';
44 44
 	);
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/ReferenceObjectType.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -17,26 +17,26 @@
 block discarded – undo
17 17
 
18 18
 	protected function parseDefinition($definition)
19 19
 	{
20
-        $definition = self::trim($definition);
21
-
22
-        $match = array();
23
-        if (preg_match(self::REGEX_START . self::REGEX_FORMAT . self::REGEX_CONTENT . self::REGEX_RANGE . self::REGEX_DEFAULT . self::REGEX_END, $definition, $match) !== 1) {
24
-            throw new \SwaggerGen\Exception("Unparseable string definition: '{$definition}'");
25
-        }
26
-
27
-        $type = strtolower($match[1]);
28
-
29
-        $reference = null;
30
-        if ($type === 'refobject') {
31
-            if (isset($match[2]))
32
-                $reference = $match[2];
33
-        } else {
34
-            $reference = $match[1];
35
-        }
36
-
37
-        if (empty($reference)) {
38
-            throw new \SwaggerGen\Exception("Referenced object name missing: '{$definition}'");
39
-        }
20
+		$definition = self::trim($definition);
21
+
22
+		$match = array();
23
+		if (preg_match(self::REGEX_START . self::REGEX_FORMAT . self::REGEX_CONTENT . self::REGEX_RANGE . self::REGEX_DEFAULT . self::REGEX_END, $definition, $match) !== 1) {
24
+			throw new \SwaggerGen\Exception("Unparseable string definition: '{$definition}'");
25
+		}
26
+
27
+		$type = strtolower($match[1]);
28
+
29
+		$reference = null;
30
+		if ($type === 'refobject') {
31
+			if (isset($match[2]))
32
+				$reference = $match[2];
33
+		} else {
34
+			$reference = $match[1];
35
+		}
36
+
37
+		if (empty($reference)) {
38
+			throw new \SwaggerGen\Exception("Referenced object name missing: '{$definition}'");
39
+		}
40 40
 
41 41
 		$this->reference = $reference;
42 42
 	}
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.