Code Duplication    Length = 5-5 lines in 2 locations

src/Ffcms/Core/App.php 2 locations

@@ 196-200 (lines=5) @@
193
            // founded callback injection alias
194
            if (self::$Request->getCallbackAlias() !== false) {
195
                $cName = self::$Request->getCallbackAlias();
196
                if (class_exists($cName)) {
197
                    $callClass = new $cName;
198
                } else {
199
                    throw new NotFoundException('Callback alias of class "' . App::$Security->strip_tags($cName) . '" is not founded');
200
                }
201
            } else { // typical parsing of native apps
202
                $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController();
203
@@ 205-209 (lines=5) @@
202
                $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController();
203
204
                // try to initialize class object
205
                if (class_exists($cName)) {
206
                    $callClass = new $cName;
207
                } else {
208
                    throw new NotFoundException('Application can not be runned. Initialized class not founded: ' . App::$Security->strip_tags($cName));
209
                }
210
            }
211
212
            // try to call method of founded callback class