alientronics/fleetany-api

View on GitHub
tests/GpsTest.php

Summary

Maintainability
A
1 hr
Test Coverage

Method testGpsPostSuccessDataIsCompressed has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testGpsPostSuccessDataIsCompressed()
    {
        $company = factory('App\Company')->create();

        $this->actingAs($company)
Severity: Minor
Found in tests/GpsTest.php - About 1 hr to fix

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

    class GpsTest extends TestCase
    Severity: Minor
    Found in tests/GpsTest.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 tests/GpsTest.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 tests/GpsTest.php by phpcodesniffer

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

                    'dataIsCompressed' => 0, 
    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/GpsTest.php by phpcodesniffer

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

                    'vehicle_id' => 1, 
    Severity: Minor
    Found in tests/GpsTest.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

            $this->post('/api/v1/gps', ['vehicle_id' => 1, 
    Severity: Minor
    Found in tests/GpsTest.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

                                        'latitude' => 51.10, 
    Severity: Minor
    Found in tests/GpsTest.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

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

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

                                        'altitude' => 1.10, 
    Severity: Minor
    Found in tests/GpsTest.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

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

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

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

    Whitespace found at end of line
    Open

                                        'altitudeAccuracy' => 50.05, 
    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

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

    Whitespace found at end of line
    Open

                    'vehicle_id' => 1, 
    Severity: Minor
    Found in tests/GpsTest.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

    There are no issues that match your filters.

    Category
    Status