/
jagepard
/
Rudra-Annotation
Обзор
Документация
Войти
/
jagepard
/
Rudra-Annotation
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/Stub/PageController.php
55 строк
2 KB
Jagepard
style: fix PSR-12 formatting
02 июл 2026, 13:37
02 июл 2026, 13:37
48c0a7c
Код
Авторство
О чём код?
<?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\Annotation\Tests\Stub; /** * @Routing(url = '') * @Defaults(name = 'user1', lastname = 'sample', age='0', address = {country : 'Russia'; state : 'Tambov'}, phone = '000-00000000') * @assertResult(false) * @Validate(name = 'min:150', phone = 'max:9') * @Middleware('Middleware', params = {int1 : '123'}) * @Annotation(param1, param2 = 'param2', param3={param1;param2:'param2'}) */ #[Routing(url:'')] #[Defaults(name:'user1', lastname:'sample', age:'0', address:['country' => 'Russia', 'state' => 'Tambov'], phone:'000-00000000')] #[assertResult('false')] #[Validate(name:'min:150', phone:'max:9')] #[Middleware("'Middleware'", params:['int1' => '123'])] #[Annotation("param1", param2:'param2', param3:['param1', 'param2' => 'param2'])] class PageController { /** * @Routing(url = '') * @Defaults(name='user1', lastname = 'sample', age='0', address={country : 'Russia'; state : 'Tambov'}, phone = '000-00000000') * @assertResult(false) * @Validate(name = 'min:150', phone = 'max:9') * @Middleware('Middleware', params = {int1 : '123'}) * @Annotation(param1, param2 = 'param2', param3={param1;param2:'param2'}) */ public function indexAction() { } #[Routing(url:'')] #[Defaults(name:'user1', lastname:'sample', age:'0', address:['country' => 'Russia', 'state' => 'Tambov'], phone:'000-00000000')] #[assertResult('false')] #[Validate(name:'min:150', phone:'max:9')] #[Middleware("'Middleware'", params:['int1' => '123'])] #[Annotation("param1", param2:'param2', param3:['param1', 'param2' => 'param2'])] public function secondAction() { } public function withoutDocblock() { } }