Browse Source

PHP IDE adjustments.

mscherer 2 years ago
parent
commit
d9d4764442

+ 0 - 5
src/Controller/Admin/FormatController.php

@@ -13,11 +13,6 @@ use App\Controller\AppController;
 class FormatController extends AppController {
 
 	/**
-	 * @var string|null
-	 */
-	protected $modelClass = '';
-
-	/**
 	 * @return \Cake\Http\Response|null|void
 	 */
 	public function icons() {

+ 0 - 5
src/Controller/Admin/ToolsController.php

@@ -12,11 +12,6 @@ use App\Controller\AppController;
 class ToolsController extends AppController {
 
 	/**
-	 * @var string|null
-	 */
-	protected $modelClass = '';
-
-	/**
 	 * @return \Cake\Http\Response|null|void
 	 */
 	public function index() {

+ 1 - 0
src/Controller/Component/CommonComponent.php

@@ -14,6 +14,7 @@ use Tools\Utility\Utility;
  *
  * @author Mark Scherer
  * @license MIT
+ * @method \App\Controller\AppController getController()
  */
 class CommonComponent extends Component {
 

+ 1 - 0
src/Controller/Component/MobileComponent.php

@@ -29,6 +29,7 @@ use RuntimeException;
  *
  * @author Mark Scherer
  * @license http://opensource.org/licenses/mit-license.php MIT
+ * @method \App\Controller\AppController getController()
  */
 class MobileComponent extends Component {
 

+ 2 - 0
src/Controller/Component/RefererRedirectComponent.php

@@ -11,6 +11,8 @@ use Cake\Http\Response;
  * Useful for passing to edit forms if you want a different target as redirect than the default.
  * The neat thing here is that it doesn't require changes to existing actions. This can just be
  * added on top, for one or all controllers.
+ *
+ * @method \App\Controller\AppController getController()
  */
 class RefererRedirectComponent extends Component {
 

+ 1 - 0
src/Controller/Component/UrlComponent.php

@@ -10,6 +10,7 @@ use Cake\Routing\Router;
  *
  * @author Mark Scherer
  * @license MIT
+ * @method \App\Controller\AppController getController()
  */
 class UrlComponent extends Component {
 

+ 0 - 5
src/Controller/ShuntRequestController.php

@@ -23,11 +23,6 @@ use RuntimeException;
 class ShuntRequestController extends AppController {
 
 	/**
-	 * @var string|null
-	 */
-	protected $modelClass = '';
-
-	/**
 	 * @return void
 	 */
 	public function initialize(): void {