Code Duplication    Length = 5-5 lines in 3 locations

app/lib/FFCMS/Controllers/Admin/Apps.php 1 location

@@ 153-157 (lines=5) @@
150
            $f3->reroute('@api_apps');
151
        }
152
153
        if ($appsMapper->save()) {
154
            $this->notify(_('The app has been updated!'), 'success');
155
        } else {
156
            $this->notify(_('App update failed!'), 'error');
157
        }
158
159
        $f3->reroute('@admin_apps_list');
160
    }

app/lib/FFCMS/Controllers/User/Apps.php 2 locations

@@ 106-110 (lines=5) @@
103
            return;
104
        }
105
106
        if ($appsMapper->save()) {
107
            $this->notify(_('Your new app has been registered!'), 'success');
108
        } else {
109
            $this->notify(_('App registration failed!'), 'error');
110
        }
111
112
        $f3->reroute('@api_apps');
113
    }
@@ 162-166 (lines=5) @@
159
            $f3->reroute('@api_apps');
160
        }
161
162
        if ($appsMapper->save()) {
163
            $this->notify(_('Your app has been updated!'), 'success');
164
        } else {
165
            $this->notify(_('App update failed!'), 'error');
166
        }
167
168
        $f3->reroute('@api_apps');
169
    }