Showing 11 of 19 total issues
Function scraping
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
Open
public function scraping()
{
$scrapped = [];
$this->hasError();
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function scraping
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
Open
public function scraping()
{
$scrapped = [];
$this->hasError();
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method getCaptcha
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCaptcha() {
$this->hasRequested();
$imageSrc = $this->instanceResponse->filter(
array_get($this->configurations, 'selectors.image')
- Create a ticketCreate a ticket
Method getData
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getData($document, $cookie, $captcha, $params, $configurations) {
// resolve captcha
$captcha = $this->resolveCaptcha($captcha);
- Create a ticketCreate a ticket
Method getData
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getData($document, $cookie, $captcha, $params, $configurations) {
// resolve captcha
$captcha = $this->resolveCaptcha($captcha);
- Create a ticketCreate a ticket
Method getCaptcha
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCaptcha() {
$this->hasRequested();
// Inicia instancia do cURL
$curl = new Curl;
- Create a ticketCreate a ticket
Method request
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function request($method, $url, array $parameters = array(), array $files = array(), array $server = array(), $content = null, $changeHistory = true)
- Create a ticketCreate a ticket
Method sintegra
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function sintegra($portal = 'SP', $document = false, $cookie = false, $captcha = false, $params = [])
- Create a ticketCreate a ticket
Method getData
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getData($document, $cookie, $captcha, $params, $configurations) {
- Create a ticketCreate a ticket
Method getData
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getData($document, $cookie, $captcha, $params, $configurations) {
- Create a ticketCreate a ticket
Method getData
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getData($document, $cookie, $captcha, $params, $configurations);
- Create a ticketCreate a ticket