for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Escopecz\MauticFormSubmit\Mautic;
/**
* Mautic Configuration
*/
class Config
{
* Curl verbose logging option
*
* @var bool
protected $curlVerbose = 1;
* Constructor
* @param int $curlVerbose
public function __construct(int $curlVerbose)
$this->curlVerbose = $curlVerbose;
$curlVerbose
boolean
integer
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.
$answer = 42; $correct = false; $correct = (bool) $answer;
}
* Returns Curl verbose logging option
* @return bool
public function getCurlVerbose()
return $this->curlVerbose;
* Set Curl verbose logging option
* @param bool $curlVerbose
* @return Config
public function setCurlVerbose($curlVerbose)
return $this;
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.