Showing 192 of 192 total issues
The variable $class_type is not named in camelCase. Open
Open
public function getFieldsMetadata(string $class_type): Collection
{
// add result of hasTable to the cache to limit database queries
$tableExist = Cache::rememberForever('model_fields_metadata_table_exists', function () {
return Schema::hasTable('model_fields_metadata');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $class_type is not named in camelCase. Open
Open
public function getFieldsMetadata(string $class_type): Collection
{
// add result of hasTable to the cache to limit database queries
$tableExist = Cache::rememberForever('model_fields_metadata_table_exists', function () {
return Schema::hasTable('model_fields_metadata');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $class_type is not named in camelCase. Open
Open
public function getFieldsMetadataListPaginated(string $class_type, ?int $perPage = 15, ?OrderDto $orderDto = null): Collection|LengthAwarePaginator
{
if (!config('model-fields.enabled')) {
return collect([]);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $class_type is not named in camelCase. Open
Open
public function getFieldsMetadataListPaginated(string $class_type, ?int $perPage = 15, ?OrderDto $orderDto = null): Collection|LengthAwarePaginator
{
if (!config('model-fields.enabled')) {
return collect([]);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $class_type is not named in camelCase. Open
Open
public function getFieldsMetadata(string $class_type): Collection
{
// add result of hasTable to the cache to limit database queries
$tableExist = Cache::rememberForever('model_fields_metadata_table_exists', function () {
return Schema::hasTable('model_fields_metadata');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
Parameter $table
has undeclared type \Illuminate\Database\Schema\Blueprint
Open
Open
Schema::create('model_fields_metadata', function (Blueprint $table) {
- Exclude checks
Call to method create
from undeclared class \Illuminate\Support\Facades\Schema
Open
Open
Schema::create('model_fields_values', function (Blueprint $table) {
- Exclude checks
Class extends undeclared class \EscolaLms\Core\Enums\BasicEnum
Open
Open
class MetaFieldTypeEnum extends BasicEnum
- Exclude checks
Call to method __construct
from undeclared class \BenSampo\Enum\Rules\EnumValue
Open
Open
'type' => ['required', new EnumValue(MetaFieldTypeEnum::class)],
- Exclude checks
Class extends undeclared class \Illuminate\Database\Eloquent\Model
Open
Open
class Field extends Model
- Exclude checks
Property \EscolaLms\ModelFields\Models\Metadata->created_at
has undeclared type \Illuminate\Support\Carbon
Open
Open
* @property Carbon $created_at
- Exclude checks
Call to method drop
from undeclared class \Illuminate\Support\Facades\Schema
Open
Open
Schema::drop('model_fields_metadata');
- Exclude checks
Call to method text
from undeclared class \Illuminate\Database\Schema\Blueprint
Open
Open
$table->text('value');
- Exclude checks
Call to method morphs
from undeclared class \Illuminate\Database\Schema\Blueprint
Open
Open
$table->morphs('class');
- Exclude checks
Call to undeclared function \app()
Open
Open
app()[\Spatie\Permission\PermissionRegistrar::class]->forgetCachedPermissions();
- Exclude checks
Class extends undeclared class \Illuminate\Http\Resources\Json\JsonResource
Open
Open
class MetadataResource extends JsonResource
- Exclude checks
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
public array $singletons = [
- Exclude checks
Parameter $user
has undeclared type ?\EscolaLms\Core\Models\User
Open
Open
public function createOrUpdate(?User $user): bool
- Exclude checks
Call to method integer
from undeclared class \Illuminate\Database\Schema\Blueprint
Open
Open
$table->integer('visibility')->default(1 << 0);
- Exclude checks
Call to undeclared method \EscolaLms\ModelFields\AuthServiceProvider::registerPolicies
Open
Open
$this->registerPolicies();
- Exclude checks