alientronics/fleetany-api

View on GitHub

Showing 235 of 235 total issues

Whitespace found at end of line
Open

            ->post('/api/v1/tiresensor', ['api_token' => env('APP_TOKEN'), 
Severity: Minor
Found in tests/TireSensorTest.php by phpcodesniffer

Whitespace found at end of line
Open

                                    'pressure' => 127, 
Severity: Minor
Found in tests/TireSensorTest.php by phpcodesniffer

Whitespace found at end of line
Open

        $this->seeInDatabase('tire_sensor', ['temperature' => 23.0, 
Severity: Minor
Found in tests/TireSensorTest.php by phpcodesniffer

Whitespace found at end of line
Open

                'dataIsCompressed' => 1, 
Severity: Minor
Found in tests/GpsTest.php by phpcodesniffer

Whitespace found at end of line
Open

                                    'longitude' => 35.55, 
Severity: Minor
Found in tests/GpsTest.php by phpcodesniffer

Whitespace found at end of line
Open

                'email' => 'admin@alientronics.com.br', 
Severity: Minor
Found in tests/TireSensorTest.php by phpcodesniffer

Whitespace found at end of line
Open

                                    'battery' => 3.95, 
Severity: Minor
Found in tests/TireSensorTest.php by phpcodesniffer

Whitespace found at end of line
Open

            ->post('/api/v1/trip', ['api_token' => env('APP_TOKEN'), 
Severity: Minor
Found in tests/TripTest.php by phpcodesniffer

Whitespace found at end of line
Open

        $this->seeInDatabase('gps', ['vehicle_id' => 1, 
Severity: Minor
Found in tests/GpsTest.php by phpcodesniffer

Whitespace found at end of line
Open

                'vehicle_id' => 1, 
Severity: Minor
Found in tests/TireSensorTest.php by phpcodesniffer

Whitespace found at end of line
Open

            ]); 
Severity: Minor
Found in tests/TireSensorTest.php by phpcodesniffer

Whitespace found at end of line
Open

        $this->post('/api/v1/trip', ['vehicle_id' => 1, 
Severity: Minor
Found in tests/TripTest.php by phpcodesniffer

The variable $Companies is not named in camelCase.
Open

    public function index()
    {
  
        $Companies = Company::all();
  

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 $entry_type is not named in camelCase.
Open

    public function testTireSensorGenerateEntry()
    {
        $company = factory('App\Company')->create();
        $entry_type = factory('App\Entities\Type')->create();
        $model = Model::orderBy('id', 'asc')->first();
Severity: Minor
Found in tests/TireSensorTest.php by phpmd

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 $vehicle_id is not named in camelCase.
Open

    public function sendAlertTireMail($company, $vehicle_id, $tireSensor, $ideal_pressure, $users)
    {
        try {
            $vehicle = Vehicle::where('id', $vehicle_id)->first();
    

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 $Company is not named in camelCase.
Open

    public function updateCompany(Request $request, $idCompany)
    {
        $Company  = Company::find($idCompany);
        $Company->name = $request->input('name');
        $Company->save();

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 $Gps is not named in camelCase.
Open

    public function index()
    {
  
        $Gps = Gps::all();
  

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 $Companies is not named in camelCase.
Open

    public function index()
    {
  
        $Companies = Company::all();
  

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 $Gps is not named in camelCase.
Open

    public function create(Request $request)
    {
        $gpsData = $request->all();
        
        if (!empty($gpsData)) {

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 $Company is not named in camelCase.
Open

    public function getCompany($idCompany)
    {
  
        $Company  = Company::find($idCompany);
  

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

Severity
Category
Status
Source
Language