Code Duplication    Length = 14-14 lines in 2 locations

SwaggerGen/Swagger/Type/IntegerType.php 1 location

@@ 111-124 (lines=14) @@
108
		return parent::handleCommand($command, $data);
109
	}
110
111
	public function toArray()
112
	{
113
		return self::arrayFilterNull(array(
114
					'type' => 'integer',
115
					'format' => $this->format,
116
					'default' => $this->default,
117
					'minimum' => $this->minimum,
118
					'exclusiveMinimum' => $this->exclusiveMinimum ? true : null,
119
					'maximum' => $this->maximum,
120
					'exclusiveMaximum' => $this->exclusiveMaximum ? true : null,
121
					'enum' => $this->enum,
122
					'multipleOf' => $this->multipleOf,
123
		));
124
	}
125
126
	public function __toString()
127
	{

SwaggerGen/Swagger/Type/NumberType.php 1 location

@@ 105-118 (lines=14) @@
102
		return parent::handleCommand($command, $data);
103
	}
104
105
	public function toArray()
106
	{
107
		return self::arrayFilterNull(array(
108
					'type' => 'number',
109
					'format' => $this->format,
110
					'default' => $this->default,
111
					'minimum' => $this->minimum,
112
					'exclusiveMinimum' => $this->exclusiveMinimum ? true : null,
113
					'maximum' => $this->maximum,
114
					'exclusiveMaximum' => $this->exclusiveMaximum ? true : null,
115
					'enum' => $this->enum,
116
					'multipleOf' => $this->multipleOf,
117
		));
118
	}
119
120
	public function __toString()
121
	{