for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mostafaznv\Larupload\Concerns\Standalone;
use Mostafaznv\Larupload\Enums\LaruploadMode;
use Mostafaznv\Larupload\Larupload;
trait BootStandaloneLarupload
{
protected static string $laruploadNull;
protected bool $internalFunctionIsCallable = false;
public function __construct(string $name, LaruploadMode $mode)
$mode
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function __construct(string $name, /** @scrutinizer ignore-unused */ LaruploadMode $mode)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
static::$laruploadNull = crc32(time());
if (!defined('LARUPLOAD_NULL')) {
// @codeCoverageIgnoreStart
define('LARUPLOAD_NULL', static::$laruploadNull);
// @codeCoverageIgnoreEnd
}
parent::__construct($name, LaruploadMode::STANDALONE);
public static function init(string $name): Larupload
$instance = new self($name, LaruploadMode::STANDALONE);
$instance->id = time();
id
return $instance;
return $instance
Mostafaznv\Larupload\Con...BootStandaloneLarupload
Mostafaznv\Larupload\Larupload
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.