Code Duplication    Length = 14-14 lines in 2 locations

src/AppBundle/Controller/BandController.php 1 location

@@ 104-117 (lines=14) @@
101
     *     }
102
     * )
103
     */
104
    public function createAction(Request $request): Response
105
    {
106
        $form = $this->createAndProcessForm($request, BandFormType::class);
107
108
        $apiResponseFactory = $this->get('rockparade.api_response_factory');
109
        $response = $apiResponseFactory->createResponse(
110
            $this->createApiOperation($request),
111
            $form,
112
            $this->getUser(),
113
            Band::class
114
        );
115
116
        return $this->respond($response);
117
    }
118
119
    /**
120
     * Edit band

src/AppBundle/Controller/OrganizerController.php 1 location

@@ 114-127 (lines=14) @@
111
     *     }
112
     * )
113
     */
114
    public function createAction(Request $request): Response
115
    {
116
        $form = $this->createAndProcessForm($request, OrganizerFormType::class);
117
118
        $apiResponseFactory = $this->get('rockparade.api_response_factory');
119
        $response = $apiResponseFactory->createResponse(
120
            $this->createApiOperation($request),
121
            $form,
122
            $this->getUser(),
123
            Organizer::class
124
        );
125
126
        return $this->respond($response);
127
    }
128
129
    /**
130
     * Add new member to organization