Showing 7 of 1,121 total issues
Method registerProviders
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function registerProviders(): void
{
$config = $this->app->make('config');
// Get the list of `'alias' => 'provider'` from the config.
$providers = $config->get('status.providers');
Method createThumbnail
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createThumbnail($import, $export, $width, $height, $background, $border)
{
$svg = file_get_contents($import);
$svgObj = simplexml_load_string($svg);
$viewBox = explode(' ', $svgObj['viewBox']);
Method getStatus
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStatus(): array
{
try {
$request = $this->requestFactory->createRequest('GET', $this->routeToPing);
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ClientInterface $httpClient,
RequestFactoryInterface $requestFactory,
string $routeToPing,
int $desiredTime = 200,
bool $addHeaders = true,
Method createThumbnail
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private function createThumbnail($import, $export, $width, $height, $background, $border)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $apiKey,
bool $isCacheEnabled = true,
int $cacheTtl = 30,
string $cacheKey = 'apexapi',
string $hashAlgo = 'sha512'
Avoid too many return
statements within this method. Open
Open
return [
'random_quote_index' => $randomQuoteIndex,
];