Issues (21)

src/Psr15/Middleware.php (1 issue)

Severity
1
<?php
2
/**
3
 * This file is part of the Shieldon package.
4
 *
5
 * (c) Terry L. <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace Shieldon\Psr15;
14
15
use Psr\Http\Server\MiddlewareInterface;
16
use Psr\Http\Server\RequestHandlerInterface;
17
use Psr\Http\Message\ServerRequestInterface;
18
use Psr\Http\Message\ResponseInterface;
19
20
/**
21
 * PSR-15 Middleware
22
 */
23
abstract class Middleware implements MiddlewareInterface
24
{
25
    /**
26
     * {@inheritdoc}
27
     */
28
    abstract function process(ServerRequestInterface  $request,RequestHandlerInterface $handler): ResponseInterface;
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
29
}
30