Showing 864 of 1,073 total issues
Method models
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function models()
{
if (! empty($models = $this->option('model'))) {
return collect($models)->filter(function ($model) {
return class_exists($model);
Method get
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get($name, ?array $config = null)
{
try {
return $this->channels[$name] ?? with($this->resolve($name, $config), function ($logger) use ($name) {
$loggerWithContext = $this->tap(
Method orderedLazyById
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function orderedLazyById($chunkSize = 1000, $column = null, $alias = null, $descending = false)
{
if ($chunkSize < 1) {
throw new InvalidArgumentException('The chunk size should be at least 1');
}
Method run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run()
{
$this->hasExecuted = true;
$mock = $this->mockConsoleOutput();
Method whereBelongsTo
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
{
if (! $related instanceof Collection) {
$relatedCollection = $related->newCollection([$related]);
} else {
Method processForeignKeys
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function processForeignKeys($results)
{
return array_map(function ($result) {
$result = (object) $result;
Method match
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function match(Request $request)
{
$matcher = new CompiledUrlMatcher(
$this->compiled, (new RequestContext)->fromRequest(
$trimmedRequest = $this->requestWithoutTrailingSlash($request)
Method add
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add($jobs)
{
$count = 0;
$jobs = Collection::wrap($jobs)->map(function ($job) use (&$count) {
Method currentTags
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function currentTags($chunkSize = 1000)
{
$connection = $this->connection();
// Connections can have a global prefix...
Method promptForMissingArguments
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function promptForMissingArguments(InputInterface $input, OutputInterface $output)
{
$prompted = collect($this->getDefinition()->getArguments())
->reject(fn (InputArgument $argument) => $argument->getName() === 'command')
->filter(fn (InputArgument $argument) => $argument->isRequired() && match (true) {
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
$this->components->info(
'Running scheduled tasks every minute.',
$this->getLaravel()->isLocal() ? OutputInterface::VERBOSITY_NORMAL : OutputInterface::VERBOSITY_VERBOSE
Method putMany
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function putMany(array $values, $seconds)
{
if (count($values) === 0) {
return true;
}
Method repeatEvents
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function repeatEvents($events)
{
$hasEnteredMaintenanceMode = false;
while (Date::now()->lte($this->startedAt->endOfMinute())) {
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
$this->gatherApplicationInformation();
collect(static::$data)
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
$this->call('config:publish', ['name' => 'broadcasting']);
// Install channel routes file...
Method isCallable
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function isCallable($var, $syntaxOnly = false)
{
if (! is_array($var)) {
return is_callable($var, $syntaxOnly);
}
Method getMessage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getMessage($attribute, $rule)
{
$attributeWithPlaceholders = $attribute;
$attribute = $this->replacePlaceholderInString($attribute);
Method display
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function display($class, $database, $table, $policy, $attributes, $relations, $events, $observers)
Method displayCli
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function displayCli($class, $database, $table, $policy, $attributes, $relations, $events, $observers)
Method displayJson
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function displayJson($class, $database, $table, $policy, $attributes, $relations, $events, $observers)