<?php
+
// include config
/** @noinspection PhpIncludeInspection */
-require_once(dirname(__FILE__).'/config.inc.php');
+require_once(__DIR__ . '/config.inc.php');
// include wcf
/** @noinspection PhpIncludeInspection */
-require_once(RELATIVE_WCF_DIR.'global.php');
+require_once(RELATIVE_WCF_DIR . 'global.php');
<?php
+
require_once('./global.php');
wcf\system\request\RequestHandler::getInstance()->handle('app');
<?php
+
namespace app\page;
+
use wcf\page\AbstractPage;
-class ExamplePage extends AbstractPage {}
+class ExamplePage extends AbstractPage
+{
+}
<?php
+
namespace app\system;
+
use app\page\ExamplePage;
use wcf\system\application\AbstractApplication;
-class APPCore extends AbstractApplication {
- /**
- * @inheritDoc
- */
- protected $primaryController = ExamplePage::class;
+class APPCore extends AbstractApplication
+{
+ /**
+ * @inheritDoc
+ */
+ protected $primaryController = ExamplePage::class;
}