Code Duplication    Length = 5-5 lines in 2 locations

src/Ffcms/Core/App.php 2 locations

@@ 159-163 (lines=5) @@
156
            // founded callback injection alias
157
            if (self::$Request->getCallbackAlias() !== false) {
158
                $cName = self::$Request->getCallbackAlias();
159
                if (class_exists($cName)) {
160
                    $callClass = new $cName;
161
                } else {
162
                    throw new NotFoundException('Callback alias of class "' . App::$Security->strip_tags($cName) . '" is not founded');
163
                }
164
            } else { // typical parsing of native apps
165
                $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController();
166
@@ 168-172 (lines=5) @@
165
                $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController();
166
167
                // try to initialize class object
168
                if (class_exists($cName)) {
169
                    $callClass = new $cName;
170
                } else {
171
                    throw new NotFoundException('Application can not be runned. Initialized class not founded: ' . App::$Security->strip_tags($cName));
172
                }
173
            }
174
175
            // try to call method of founded callback class