Code Duplication    Length = 7-7 lines in 2 locations

Controller/ResourceController.php 2 locations

@@ 101-107 (lines=7) @@
98
            $this->domainManager->update($resource);
99
        });
100
101
        if ($this->config->isApiRequest()) {
102
            if ($resource instanceof ResourceEvent) {
103
                throw new HttpException($resource->getErrorCode(), $resource->getMessage());
104
            }
105
106
            return $this->handleView($this->view($resource, 204));
107
        }
108
109
        return $this->redirectHandler->redirectToReferer();
110
    }
@@ 128-134 (lines=7) @@
125
126
        $this->domainManager->update($resource);
127
128
        if ($this->config->isApiRequest()) {
129
            if ($resource instanceof ResourceEvent) {
130
                throw new HttpException($resource->getErrorCode(), $resource->getMessage());
131
            }
132
133
            return $this->handleView($this->view($resource, 204));
134
        }
135
136
        return $this->redirectHandler->redirectToReferer();
137
    }