build(deps-dev): bump squizlabs/php_codesniffer from 3.10.1 to 3.10.2 #570
Annotations
10 warnings
src/Api/Api.php#L127
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
}
return $result;
}
- public static function getUrlFromConfig() : string
+ protected static function getUrlFromConfig() : string
{
$url = config('Hostfact.api_v2_url');
if (!is_string($url)) {
|
src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
{
public static function invalidUrl(string $value) : InvalidArgumentException
{
- return new self('Provided URL is not valid [' . $value . ']');
+ return new self($value . 'Provided URL is not valid [' . ']');
}
public static function apiFailed(GuzzleException $exception) : InvalidArgumentException
{
|
src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
public static function invalidUrl(string $value) : InvalidArgumentException
{
- return new self('Provided URL is not valid [' . $value . ']');
+ return new self($value . ']');
}
public static function apiFailed(GuzzleException $exception) : InvalidArgumentException
{
|
src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
public static function invalidUrl(string $value) : InvalidArgumentException
{
- return new self('Provided URL is not valid [' . $value . ']');
+ return new self('Provided URL is not valid [' . ']');
}
public static function apiFailed(GuzzleException $exception) : InvalidArgumentException
{
|
src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
{
public static function invalidUrl(string $value) : InvalidArgumentException
{
- return new self('Provided URL is not valid [' . $value . ']');
+ return new self('Provided URL is not valid [' . ']' . $value);
}
public static function apiFailed(GuzzleException $exception) : InvalidArgumentException
{
|
src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
public static function invalidUrl(string $value) : InvalidArgumentException
{
- return new self('Provided URL is not valid [' . $value . ']');
+ return new self('Provided URL is not valid [' . $value);
}
public static function apiFailed(GuzzleException $exception) : InvalidArgumentException
{
|
src/Http/HttpClient.php#L16
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
private string $userAgent = 'hyperized/hostfact (https://github.com/hyperized/hostfact)';
private HandlerStack $stack;
private GuzzleClient $httpClient;
- protected function __construct(ByteArrayInterface $url)
+ private function __construct(ByteArrayInterface $url)
{
$this->stack = HandlerStack::create();
$this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]);
|
src/Http/HttpClient.php#L20
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
protected function __construct(ByteArrayInterface $url)
{
$this->stack = HandlerStack::create();
- $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]);
+ $this->httpClient = new GuzzleClient(['base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]);
}
public static function new(ByteArrayInterface $url) : HttpClientInterface
{
|
src/Http/HttpClient.php#L21
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
protected function __construct(ByteArrayInterface $url)
{
$this->stack = HandlerStack::create();
- $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]);
+ $this->httpClient = new GuzzleClient(['handler' > $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]);
}
public static function new(ByteArrayInterface $url) : HttpClientInterface
{
|
src/Http/HttpClient.php#L22
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
protected function __construct(ByteArrayInterface $url)
{
$this->stack = HandlerStack::create();
- $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]);
+ $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' > $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]);
}
public static function new(ByteArrayInterface $url) : HttpClientInterface
{
|
This job succeeded
Loading