for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Shetabit\Multipay;
class Request
{
/**
* HTTP request's data.
*
* @var array
*/
protected $requestData = [];
* HTTP POST data.
protected $postData = [];
* HTTP GET data.
protected $getData = [];
* Request constructor.
public function __construct()
$this->setData();
}
* Set requestData, postData, getData.
* @return null
public function setData()
if (config('payment.octane', false)) {
config
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
if (/** @scrutinizer ignore-call */ config('payment.octane', false)) {
$this->requestData = request()->all();
request
$this->requestData = /** @scrutinizer ignore-call */ request()->all();
$this->postData = null;
$this->getData = null;
} else {
$this->requestData = $_REQUEST;
$this->postData = $_POST;
$this->getData = $_GET;
* Retrieve HTTP request data.
* @param string $name
* @return mixed|null
public static function input(string $name)
return (new static)->requestData[$name] ?? null;
* Retrieve HTTP POST data.
* @return void
public static function post(string $name)
return (new static)->postData[$name] ?? null;
* Retrieve HTTP GET data.
public static function get(string $name)
return (new static)->getData[$name] ?? null;