Skip to content

Commit d9432ff

Browse files
committed
Update code style for basic-app
1 parent 5d1c378 commit d9432ff

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
2+
23
// include config
34
/** @noinspection PhpIncludeInspection */
4-
require_once(dirname(__FILE__).'/config.inc.php');
5+
require_once(__DIR__ . '/config.inc.php');
56

67
// include wcf
78
/** @noinspection PhpIncludeInspection */
8-
require_once(RELATIVE_WCF_DIR.'global.php');
9+
require_once(RELATIVE_WCF_DIR . 'global.php');
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<?php
2+
23
require_once('./global.php');
34
wcf\system\request\RequestHandler::getInstance()->handle('app');
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
2+
23
namespace app\page;
4+
35
use wcf\page\AbstractPage;
46

5-
class ExamplePage extends AbstractPage {}
7+
class ExamplePage extends AbstractPage
8+
{
9+
}
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
namespace app\system;
4+
35
use app\page\ExamplePage;
46
use wcf\system\application\AbstractApplication;
57

6-
class APPCore extends AbstractApplication {
7-
/**
8-
* @inheritDoc
9-
*/
10-
protected $primaryController = ExamplePage::class;
8+
class APPCore extends AbstractApplication
9+
{
10+
/**
11+
* @inheritDoc
12+
*/
13+
protected $primaryController = ExamplePage::class;
1114
}

0 commit comments

Comments
 (0)