Showing 3 of 192 total issues
Method getExtraAttributesValues
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getExtraAttributesValues(Model $model, ?int $visibility = null): array
{
if (config('model-fields.enabled')) {
if (!array_key_exists('id', $model->getAttributes())) {
return [];
Method addOrUpdateMetadataField
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addOrUpdateMetadataField(string $class_type, string $name, string $type, string $default = '', array $rules = null, int $visibility = 1 << 0, array $extra = null): Metadata
Method addOrUpdateMetadataField
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addOrUpdateMetadataField(string $class_type, string $name, string $type, string $default = '', array $rules = null, int $visibility = 1 << 0, array $extra = null): Metadata;