Update code style for basic-app
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 9 Dec 2022 10:25:42 +0000 (11:25 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 9 Dec 2022 10:28:03 +0000 (11:28 +0100)
snippets/tutorial/basic-app/files/global.php
snippets/tutorial/basic-app/files/index.php
snippets/tutorial/basic-app/files/lib/page/ExamplePage.class.php
snippets/tutorial/basic-app/files/lib/system/APPCore.class.php

index 197e6958404bcd54f883e2ef0b6f68b2e0a73840..b038b6e1de15dbabbb8e9f9b9f9be6cb7f807ab9 100644 (file)
@@ -1,8 +1,9 @@
 <?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');
index 73c4c6770d9ad042098a09479673b0f64617639a..9608d0c7ca6328b8728438593d273561b173bc8d 100644 (file)
@@ -1,3 +1,4 @@
 <?php
+
 require_once('./global.php');
 wcf\system\request\RequestHandler::getInstance()->handle('app');
index 3af931c2a73fc1814b63378f1fc024751132ace3..dbc89529fe701e5f0dfa0bace2815ae4f958dbe1 100644 (file)
@@ -1,5 +1,9 @@
 <?php
+
 namespace app\page;
+
 use wcf\page\AbstractPage;
 
-class ExamplePage extends AbstractPage {}
+class ExamplePage extends AbstractPage
+{
+}
index 1500fa41576f5a73cb8848c0f28ac9c320c8682f..5284491bfa7042f64723174f62b7b01263817948 100644 (file)
@@ -1,11 +1,14 @@
 <?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;
 }