EscolaLMS/Consultations

View on GitHub

Showing 985 of 985 total issues

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

        parent::__construct(null, $value);

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

        return $query->whereHas('user');

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

    public function getConsultationsList(array $search = [], bool $onlyActive = false, OrderDto $orderDto = null): Builder;

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

    Route::get('/', [ConsultationAPIController::class, 'index']);
Severity: Critical
Found in src/routes.php by phan

Call to undeclared function \url()
Open

                    url($imagePath);
Severity: Critical
Found in src/Models/Consultation.php by phan

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

    public function getBoughtConsultationsByQuery(Builder $query): Builder;

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

        return $query->where('consultations.name', $like, '%' . $this->value . '%');

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

class UserExistsCriterion extends Criterion

Parameter $orderDto has undeclared type ?\EscolaLms\Core\Dtos\OrderDto
Open

    public function getConsultationsList(array $search = [], bool $onlyActive = false, OrderDto $orderDto = null): Builder;

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

    Route::post('consultations/{id}', [ConsultationController::class, 'update']);
Severity: Critical
Found in src/routes.php by phan

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

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

Reference to undeclared property \EscolaLms\Consultations\Models\Consultation->duration
Open

        return $this->duration ?? '0';
Severity: Minor
Found in src/Models/Consultation.php by phan

Class extends undeclared class \Illuminate\Database\Eloquent\Model
Open

class ConsultationUserPivot extends Model
Severity: Critical
Found in src/Models/ConsultationUserPivot.php by phan

Return type of user() is undeclared type \Illuminate\Database\Eloquent\Relations\BelongsTo
Open

    public function user(): BelongsTo
Severity: Minor
Found in src/Models/ConsultationUserPivot.php by phan

Return type of consultations() is undeclared type \Illuminate\Database\Eloquent\Relations\BelongsToMany
Open

    public function consultations(): BelongsToMany
Severity: Minor
Found in src/Models/Traits/HasConsultations.php by phan

Reference to undeclared property \EscolaLms\Consultations\Models\Consultation->author_id
Open

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

Reference to constant class from undeclared class \EscolaLms\Consultations\Listeners\ReminderAboutTermListener
Open

            ReminderAboutTermListener::class
Severity: Critical
Found in src/Providers/EventServiceProvider.php by phan

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

        $query->whereHas('consultation', fn (Builder $query) => $query->whereAuthorId(auth()->user()->getKey()));

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

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

syntax error, unexpected 'RelationStrategyContract' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open

    private RelationStrategyContract $relationStrategyContract;
Severity
Category
Status
Source
Language