EscolaLMS/model-fields

View on GitHub

Showing 192 of 192 total issues

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

class CreateModelFieldsValuesTable extends Migration

Class extends undeclared class \EscolaLms\Core\Enums\BasicEnum
Open

class MetaFieldVisibilityEnum extends BasicEnum
Severity: Critical
Found in src/Enum/MetaFieldVisibilityEnum.php by phan

Reference to constant class from undeclared class \EscolaLms\ModelFields\Http\Controllers\ModelFieldsAdminApiController
Open

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

Possibly zero references to use statement for classlike/namespace Rule (\Illuminate\Validation\Rule)
Open

use Illuminate\Validation\Rule;

Class uses undeclared trait \Illuminate\Auth\Access\HandlesAuthorization
Open

class MetadataPolicy
Severity: Critical
Found in src/Policies/MetadataPolicy.php by phan

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

Route::group(['prefix' => 'api/admin/model-fields', 'middleware' => ['auth:api']], function () {
Severity: Critical
Found in src/routes.php by phan

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

class CreateModelFieldsMetadataTable extends Migration

Class extends undeclared class \Illuminate\Database\Seeder
Open

class PermissionTableSeeder extends Seeder
Severity: Critical
Found in database/seeders/PermissionTableSeeder.php by phan

Class extends undeclared class \Illuminate\Support\Facades\Facade
Open

class ModelFields extends Facade
Severity: Critical
Found in src/Facades/ModelFields.php by phan

Class extends undeclared class \Illuminate\Foundation\Http\FormRequest
Open

class MetadataCreateOrUpdateRequest extends FormRequest

Parameter $user has undeclared type ?\EscolaLms\Core\Models\User
Open

    public function delete(?User $user, Metadata $template = null): bool
Severity: Minor
Found in src/Policies/MetadataPolicy.php by phan

Reference to constant class from undeclared class \EscolaLms\ModelFields\Http\Controllers\ModelFieldsAdminApiController
Open

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

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

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

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

        Schema::create('model_fields_metadata', function (Blueprint $table) {

Reference to constant class from undeclared class \EscolaLms\ModelFields\Http\Controllers\ModelFieldsApiController
Open

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

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

            $table->json('rules')->nullable();

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

            $table->string('name', 127)->index();

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

        Schema::drop('model_fields_values');

Reference to constant class from undeclared class \EscolaLms\ModelFields\Services\Contracts\ModelFieldsServiceContract
Open

        return ModelFieldsServiceContract::class;
Severity: Critical
Found in src/Facades/ModelFields.php by phan

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

    public function list(MetadataListRequest $request): JsonResponse;
Severity
Category
Status
Source
Language