Service/Request.php
Method pullData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function pullData()
{
$request = $this->requestHttp;
$requestData = [];
$requestData[] = ['name' => 'Date sys', 'value' => date("Y-m-d H:i:s")];
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct(Http $requestHttp,
State $appState,
ProductMetadataInterface $productMetadata,
FrontNameResolver $frontNameResolver,
Session $session
The method pullData() has an NPath complexity of 256. The configured NPath complexity threshold is 200. Open
Open
public function pullData()
{
$request = $this->requestHttp;
$requestData = [];
$requestData[] = ['name' => 'Date sys', 'value' => date("Y-m-d H:i:s")];
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}