for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @property Lib_admin lib_admin
*/
class BaseAdminController extends MY_Controller
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* @var string
public static $currentLocale;
* @var bool
private static $adminAutoLoaded = false;
$adminAutoLoaded
This check marks private properties in classes that are never used. Those properties can be removed.
public function __construct() {
parent::__construct();
$lang = new MY_Lang();
$lang->load('admin');
$this->load->library('Permitions');
if (PHP_SAPI != 'cli') {
Permitions::checkPermitions();
}
$this->load->library('lib_admin');
$this->lib_admin->init_settings();
\CMSFactory\AdminLoader::getInstance()->adminAutoload();
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.