EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Call to method table from undeclared class \Illuminate\Support\Facades\Schema
Open

        Schema::table('consultation_user', function (Blueprint $table) {

Parameter $table has undeclared type \Illuminate\Database\Schema\Blueprint
Open

        Schema::table('consultations', function (Blueprint $table) {

Class extends undeclared class \Illuminate\Database\Migrations\Migration
Open

return new class extends Migration

Call to method string from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->string('executed_status')->nullable();

Reference to constant class from undeclared class \EscolaLms\Consultations\Repositories\ConsultationRepository
Open

        ConsultationRepositoryContract::class => ConsultationRepository::class,

Reference to undeclared property \EscolaLms\Consultations\EscolaLmsConsultationsServiceProvider->app
Open

        $this->app->register(EventServiceProvider::class);

Return type of update() is undeclared type \Illuminate\Http\JsonResponse
Open

    public function update(int $id, UpdateConsultationRequest $updateConsultationRequest): JsonResponse;

Return type of destroy() is undeclared type \Illuminate\Http\JsonResponse
Open

    public function destroy(int $id, DestroyConsultationRequest $request): JsonResponse;

Call to undeclared method \EscolaLms\Consultations\Http\Requests\ConsultationRequest::route
Open

        $result = $this->route('consultation') ?? $this->route('id');
Severity: Critical
Found in src/Http/Requests/ConsultationRequest.php by phan

Possibly zero references to use statement for classlike/namespace Consultation (\EscolaLms\Consultations\Models\Consultation)
Open

use EscolaLms\Consultations\Models\Consultation;

Possibly zero references to use statement for classlike/namespace Gate (\Illuminate\Support\Facades\Gate)
Open

use Illuminate\Support\Facades\Gate;

Call to method allows from undeclared class \Illuminate\Support\Facades\Gate
Open

        return Gate::allows('update', $this->getConsultation());

Class extends undeclared class \Illuminate\Http\Resources\Json\JsonResource
Open

class ConsultationAuthorResource extends JsonResource

Class extends undeclared class \Illuminate\Http\Resources\Json\JsonResource
Open

class ConsultationTermResource extends JsonResource

Reference to undeclared property \EscolaLms\Consultations\Http\Resources\ConsultationUserResource->resource
Open

            'age' => $this->resource->age,

Reference to undeclared property \EscolaLms\Consultations\Http\Resources\ConsultationUserTermsResource->resource
Open

            'status' => $this->resource->executed_status ?? '',

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

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

Reference to undeclared property \EscolaLms\Consultations\Http\Resources\ConsultationAuthorResource->resource
Open

            ModelFields::getExtraAttributesValues($this->resource, MetaFieldVisibilityEnum::PUBLIC)

Class uses undeclared trait \EscolaLms\Auth\Traits\ResourceExtandable
Open

class ConsultationProposedTermResource extends JsonResource

Reference to undeclared property \EscolaLms\Consultations\Http\Resources\ConsultationUserResource->resource
Open

            'first_name' => $this->resource->firstName,
Severity
Category
Status
Source
Language