Code Duplication    Length = 11-11 lines in 2 locations

SwaggerGen/Swagger/Operation.php 1 location

@@ 147-157 (lines=11) @@
144
					return $Response;
145
				}
146
147
			case 'require':
148
				$name = self::wordShift($data);
149
				if (empty($name)) {
150
					throw new \SwaggerGen\Exception('Empty security requirement name');
151
				}
152
				$scopes = self::wordSplit($data);
153
				sort($scopes);
154
				$this->security[] = array(
155
					$name => empty($scopes) ? array() : $scopes,
156
				);
157
				return $this;
158
159
			case 'id':
160
				$operationId = self::trim($data);

SwaggerGen/Swagger/Swagger.php 1 location

@@ 245-255 (lines=11) @@
242
				$this->securityDefinitions[$name] = $SecurityScheme;
243
				return $SecurityScheme;
244
245
			case 'require':
246
				$name = self::wordShift($data);
247
				if (empty($name)) {
248
					throw new \SwaggerGen\Exception('Missing require name');
249
				}
250
				$scopes = self::wordSplit($data);
251
				sort($scopes);
252
				$this->security[] = array(
253
					$name => empty($scopes) ? array() : $scopes,
254
				);
255
				return $this;
256
		}
257
258
		return parent::handleCommand($command, $data);