takeawaytown/laravel-uuid

View on GitHub

Showing 109 of 109 total issues

Only one argument is allowed per line in a multi-line function call
Open

          __DIR__.'/../../config/uuid.php', 'uuid'

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (function_exists('config_path')) {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    static::creating(function ($model) {
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function boot()

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $model->{config('uuid.uuid_column')} = strtoupper(Uuid::generate()->string);
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 5
Open

    if (!is_string($uuid) || $match !== 1)
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 6
Open

      }
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      $uuid = $model->getOriginal(config('uuid.uuid_column'));
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 6
Open

      if ($uuid !== $model->{config('uuid.uuid_column')}) {
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  }
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      ]);

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

        } else if (is_null($namespace)) {
Severity: Minor
Found in src/Classes/Uuid.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    });
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    parent::boot();
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    return $first ? $results->firstOrFail() : $results;
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      );

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    static::saving(function ($model) {
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $model->{config('uuid.uuid_column')} = $uuid;
Severity: Minor
Found in src/Traits/Uuid.php by phpcodesniffer
Severity
Category
Status
Source
Language