EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Return type of apply() is undeclared type \Illuminate\Database\Eloquent\Builder
Open

    public function apply(Builder $query): Builder

Call to method orderBy from undeclared class \Illuminate\Database\Eloquent\Builder
Open

        return $query->orderBy($this->key, $this->value);

Reference to undeclared property \EscolaLms\Consultations\Repositories\Criteria\Primitives\OrderCriterion->key
Open

        return $query->orderBy($this->key, $this->value);

Parameter $request has undeclared type \Illuminate\Foundation\Http\FormRequest
Open

    public function updateModelFieldsFromRequest(Consultation $consultation, FormRequest $request): void;

Call to method can from undeclared class \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Consultations\Models\User)
Open

        return $user->can(ConsultationsPermissionsEnum::CONSULTATION_CREATE);
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

Reference to constant class from undeclared class \EscolaLms\Consultations\Events\ReminderAboutTerm
Open

        ReminderAboutTerm::class => [
Severity: Critical
Found in src/Providers/EventServiceProvider.php by phan

syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'
Open

            $query->whereHas('userTerms', fn ($query) => $query->where('executed_at', '=', $date));

Return type of forCurrentUser() is undeclared type \Illuminate\Database\Eloquent\Builder
Open

    public function forCurrentUser(array $search = [], array $criteria = []): Builder;

Return type of getIncomingTerm() is undeclared type \Illuminate\Support\Collection
Open

    public function getIncomingTerm(array $criteria = []): Collection;

Class extends undeclared class \EscolaLms\Core\Repositories\Criteria\Criterion
Open

class ConsultationSearch extends Criterion

Reference to constant class from undeclared class \EscolaLms\Consultations\Http\Controllers\ConsultationController
Open

    Route::post('/change-term/{consultationTermId}', [ConsultationController::class, 'changeTerm']);
Severity: Critical
Found in src/routes.php by phan

Call to method can from undeclared class \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Consultations\Models\User)
Open

        return $user->can(ConsultationsPermissionsEnum::CONSULTATION_UPDATE)
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

Parameter $filterConsultationTermsListDto has undeclared type ?\EscolaLms\Consultations\Dto\FilterConsultationTermsListDto
Open

        array $search = [],

syntax error, unexpected '$query' (T_VARIABLE), expecting ',' or ')'
Open

            fn (Builder $query) => $query->whereIn('categories.id', $this->value)

Reference to undeclared class \EscolaLms\Core\Repositories\Criteria\Criterion
Open

        parent::__construct(null, $value);

Return type of getConsultationTermsByConsultationId() is undeclared type \Illuminate\Support\Collection
Open

    public function getConsultationTermsByConsultationId(int $consultationId, array $search = []): Collection;

Call to method resource from undeclared class \Illuminate\Support\Facades\Route
Open

    Route::resource('consultations', ConsultationController::class);
Severity: Critical
Found in src/routes.php by phan

Call to method can from undeclared class \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Consultations\Models\User)
Open

            || ($user->can(ConsultationsPermissionsEnum::CONSULTATION_READ_OWN) && $consultation->author_id === $user->getKey());
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

Call to method getKey from undeclared class \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Consultations\Models\User)
Open

            || ($user->can(ConsultationsPermissionsEnum::CONSULTATION_READ_OWN) && $consultation->author_id === $user->getKey());
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

Return type of getBoughtConsultationsByQuery() is undeclared type \Illuminate\Database\Eloquent\Builder
Open

    public function getBoughtConsultationsByQuery(Builder $query): Builder;
Severity
Category
Status
Source
Language