Passed
Pull Request — develop (#906)
by Anh Nguyen
06:17
created

DisplayController::display()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Redcore\Component\Redcore\Administrator\Controller;
4
5
defined('_JEXEC') or die;
6
7
use Joomla\CMS\MVC\Controller\BaseController;
0 ignored issues
show
Bug introduced by
The type Joomla\CMS\MVC\Controller\BaseController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
/**
10
 * @package     Joomla.Administrator
11
 * @subpackage  com_redcore
12
 *
13
 * @copyright   Copyright (C) 2021 redWEb. All rights reserved.
14
 * @license     GNU General Public License version 2; see LICENSE
15
 */
16
17
/**
18
 * Default Controller of Redcore component
19
 *
20
 * @package     Joomla.Administrator
21
 * @subpackage  com_redcore
22
 */
23
class DisplayController extends BaseController {
24
	/**
25
	 * The default view for the display method.
26
	 *
27
	 * @var string
28
	 */
29
	protected $default_view = 'hello';
30
31
	/**
32
	 * @param   false  $cachable
33
	 * @param   array  $urlparams
34
	 *
35
	 * @return mixed
36
	 */
37
	public function display($cachable = false, $urlparams = array()) {
38
		return parent::display($cachable, $urlparams);
39
	}
40
41
}