/
jagepard
/
Rudra-Router
Обзор
Документация
Войти
/
jagepard
/
Rudra-Router
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/Stub/Controllers/MainController.php
103 строки
2 KB
Jagepard
style: apply PSR-12 formatting to empty class body
03 июл 2026, 21:23
03 июл 2026, 21:23
b90c045
Код
Авторство
О чём код?
<?php declare(strict_types=1); /** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * @author Korotkov Danila (Jagepard) <jagepard@yandex.ru> * @license https://mozilla.org/MPL/2.0/ MPL-2.0 */ namespace Rudra\Router\Tests\Stub\Controllers; use Rudra\Container\Facades\Rudra; class MainController { public function actionIndex() { Rudra::config()->set(["actionIndex" => "actionIndex"]); } public function actionGet() { Rudra::config()->set(["actionGet" => "GET"]); } public function actionPost() { Rudra::config()->set(["actionPost" => "POST"]); } public function actionPut() { Rudra::config()->set(["actionPut" => "PUT"]); } public function actionPatch() { Rudra::config()->set(["actionPatch" => "PATCH"]); } public function actionDelete() { Rudra::config()->set(["actionDelete" => "DELETE"]); } public function actionAny() { Rudra::config()->set(["actionAny" => "ANY"]); } public function index() { Rudra::config()->set(["index" => "index"]); } public function read($params = null) { Rudra::config()->set(["read" => "read"]); } public function create() { Rudra::config()->set(["create" => "create"]); } public function update($params) { Rudra::config()->set(["update" => "update"]); } public function delete($params) { Rudra::config()->set(["delete" => "delete"]); } public function actionRegexGet() { Rudra::config()->set(["regex" => "regex"]); } public function shipInit() { } public function containerInit() { } public function init() { } public function before() { } public function after() { } }