Completed
Branch master (ffa084)
by Martijn
06:37 queued 03:03
created
SwaggerGen/Swagger/Type/AbstractType.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
 			return new $class($parent, $definition);
176 176
 		} elseif (isset(self::$classTypes[$format])) {
177 177
 			$type = self::$classTypes[$format];
178
-			$class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type";
178
+			$class = "\\SwaggerGen\\Swagger\\Type\\{$type}type";
179 179
 			return new $class($parent, $definition);
180 180
 		} else {
181 181
 			return new ReferenceObjectType($parent, $definition);
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
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 			$this->Type = new $class($this, $definition);
112 112
 		} elseif (isset(self::$classTypes[$format])) {
113 113
 			$type = self::$classTypes[$format];
114
-			$class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type";
114
+			$class = "\\SwaggerGen\\Swagger\\Type\\{$type}type";
115 115
 			$this->Type = new $class($this, $definition);
116 116
 		} else {
117 117
 			throw new \SwaggerGen\Exception("Type format not recognized: '{$format}'");
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.
SwaggerGen/SwaggerGen.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,11 +74,17 @@  discard block
 block discarded – undo
74 74
 		$this->typeRegistry = $typeRegistry;
75 75
 	}
76 76
 
77
+	/**
78
+	 * @param string $name
79
+	 */
77 80
 	public function define($name, $value = 1)
78 81
 	{
79 82
 		$this->defines[$name] = $value;
80 83
 	}
81 84
 
85
+	/**
86
+	 * @param string $name
87
+	 */
82 88
 	public function undefine($name)
83 89
 	{
84 90
 		unset($this->defines[$name]);
@@ -98,7 +104,7 @@  discard block
 block discarded – undo
98 104
 	/**
99 105
 	 * @param string $file
100 106
 	 * @param string[] $dirs
101
-	 * @return Php\Entity\Statement[]
107
+	 * @return Statement[]
102 108
 	 */
103 109
 	private function parseTextFile($file, $dirs)
104 110
 	{
Please login to merge, or discard this patch.