for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the dingtalk.
* User: Ilham Tahir <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Aplisin\DingTalk\Kernel\Exceptions;
use Psr\Http\Message\ResponseInterface;
class HttpException extends Exception
{
public $response;
public $formattedResponse;
public function __construct($message, ResponseInterface $response = null, $formattedResponse = null, $code = null)
parent::__construct($message, $code);
$this->response = $response;
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
$this->formattedResponse = $formattedResponse;
if ($response) {
$response->getBody()->rewind();
}
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.