Code Duplication    Length = 5-5 lines in 2 locations

src/Mpociot/ApiDoc/Generators/AbstractGenerator.php 2 locations

@@ 232-236 (lines=5) @@
229
                $attributeData['type'] = 'boolean';
230
                $attributeData['value'] = true;
231
                break;
232
            case 'after':
233
                $attributeData['type'] = 'date';
234
                $attributeData['description'][] = Description::parse($rule)->with(date(DATE_RFC850, strtotime($parameters[0])))->getDescription();
235
                $attributeData['value'] = date(DATE_RFC850, strtotime('+1 day', strtotime($parameters[0])));
236
                break;
237
            case 'alpha':
238
                $attributeData['description'][] = Description::parse($rule)->getDescription();
239
                $attributeData['value'] = $faker->word;
@@ 274-278 (lines=5) @@
271
                $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription();
272
                $attributeData['value'] = $faker->numberBetween($parameters[0], $parameters[1]);
273
                break;
274
            case 'before':
275
                $attributeData['type'] = 'date';
276
                $attributeData['description'][] = Description::parse($rule)->with(date(DATE_RFC850, strtotime($parameters[0])))->getDescription();
277
                $attributeData['value'] = date(DATE_RFC850, strtotime('-1 day', strtotime($parameters[0])));
278
                break;
279
            case 'date_format':
280
                $attributeData['type'] = 'date';
281
                $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription();