for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Phossa Project
*
* PHP version 5.4
* @category Library
* @package Phossa2\Middleware
* @copyright Copyright (c) 2016 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa2\Middleware\Middleware;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
* UuidTrackingMiddleware
* Tracking user with followings.
* - unique user uuid
* - current session uuid
* - current request uuid
* @package Phossa2\Middlewaer
* @author Hong Zhang <[email protected]>
* @see MiddlewareAbstract
* @version 2.0.0
* @since 2.0.0 added
class UuidTrackingMiddleware extends MiddlewareAbstract
{
* track user cookie name
* @var string
* @access protected
protected $user_cookie = 'userTrack';
* @param string $trackName
$trackName
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @access public
public function __construct(array $settings = [])
$this->setProperties($settings);
}
* {@inheritDoc}
protected function before(
RequestInterface $request,
ResponseInterface $response
)/* : ResponseInterface */ {
return $response;
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.