JoseCage/kallun-api

View on GitHub

Showing 26 of 26 total issues

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class CreatePasswordResetsTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class DatabaseSeeder extends Seeder

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class CreateUsersTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class CreateSlangsTable extends Migration

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 10 and the first side effect is on line 24.
Open

<?php
Severity: Minor
Found in public/index.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

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

Expected 1 space after FUNCTION keyword; 0 found
Open

Route::group(['prefix' => 'auth', 'namespace' => 'Auth'], function($auth) {
Severity: Minor
Found in routes/api.php by phpcodesniffer

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

});
Severity: Minor
Found in routes/api.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

Route::group(['prefix' => 'v1', 'namespace' => 'API'], function() {
Severity: Minor
Found in routes/api.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

Route::group(['prefix' => 'slangs'], function($slang) {
Severity: Minor
Found in routes/api.php by phpcodesniffer

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

return [
Severity: Minor
Found in app/Http/Resources/Slang.php by phpcodesniffer

Headers should be surrounded by blank lines
Open

# Kallun
Severity: Info
Found in README.md by markdownlint

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

];
Severity: Minor
Found in app/Http/Resources/Slang.php by phpcodesniffer

Remove this commented out code.
Open

// $this->call(UsersTableSeeder::class);
Severity: Major
Found in database/seeds/DatabaseSeeder.php by sonar-php

Define a constant instead of duplicating this literal "numeric" 9 times.
Open

'numeric' => 'The :attribute must be between :min and :max.',
Severity: Critical
Found in resources/lang/en/validation.php by sonar-php

Remove this commented out code.
Open

//return parent::toArray($request);

Remove this commented out code.
Open

// $this->mapWebRoutes();

Remove this commented out code.
Open

// return parent::toArray($request);
Severity: Major
Found in app/Http/Resources/Slang.php by sonar-php

Remove this commented out code.
Open

//use Illuminate\Console\Command;

Define a constant instead of duplicating this literal "array" 9 times.
Open

'array' => 'The :attribute must be an array.',
Severity: Critical
Found in resources/lang/en/validation.php by sonar-php
Severity
Category
Status
Source
Language