Completed
Push — master ( 88111b...b3fce7 )
by Michael
05:58
created

class/smartloader.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php namespace XoopsModules\Smartobject;
2
/**
3
 * Loader for the SmartObject framework
4
 *
5
 * This file is responible for including some main files used by the smartobject framework.
6
 *
7
 * @license    GNU
8
 * @author     marcan <[email protected]>
9
 * @link       http://smartfactory.ca The SmartFactory
10
 * @package    SmartObject
11
 * @subpackage SmartObjectCore
12
 */
13
14
use XoopsModules\Smartobject;
15
16
// defined('XOOPS_ROOT_PATH') || die('Restricted access');
17
18
require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php';
19
20
/**
21
 * Include other classes used by the SmartObject
22
 */
23
//require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecthandler.php';
24
//require_once SMARTOBJECT_ROOT_PATH . 'class/smartobject.php';
25
//require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectsregistry.php';
26
27
/**
28
 * Including SmartHook feature
29
 */
30
31
//require_once SMARTOBJECT_ROOT_PATH . 'class/smarthookhandler.php';
32
$smarthookHandler = Smartobject\SmartHookHandler::getInstance();
33
34
if (!class_exists('smartmetagen')) {
35
//    require_once SMARTOBJECT_ROOT_PATH . 'class/smartmetagen.php';
36
}
37
//$smartobjectConfig = smart_getModuleConfig('smartobject');
0 ignored issues
show
Unused Code Comprehensibility introduced by
56% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
38