tests/GpsTest.php
Method testGpsPostSuccessDataIsCompressed
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testGpsPostSuccessDataIsCompressed()
{
$company = factory('App\Company')->create();
$this->actingAs($company)
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class GpsTest extends TestCase
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Whitespace found at end of line Open
Open
'email' => 'admin@alientronics.com.br',
- Exclude checks
Whitespace found at end of line Open
Open
'dataIsCompressed' => 0,
- Exclude checks
Whitespace found at end of line Open
Open
'email' => 'admin@alientronics.com.br',
- Exclude checks
Whitespace found at end of line Open
Open
'latitude' => 59.90,
- Exclude checks
Whitespace found at end of line Open
Open
'vehicle_id' => 1,
- Exclude checks
Whitespace found at end of line Open
Open
$this->seeInDatabase('gps', ['vehicle_id' => 1,
- Exclude checks
Whitespace found at end of line Open
Open
$this->post('/api/v1/gps', ['vehicle_id' => 1,
- Exclude checks
Whitespace found at end of line Open
Open
'dataIsCompressed' => 1,
- Exclude checks
Whitespace found at end of line Open
Open
'latitude' => 51.10,
- Exclude checks
Whitespace found at end of line Open
Open
$this->seeInDatabase('gps', ['vehicle_id' => 1,
- Exclude checks
Whitespace found at end of line Open
Open
'latitude' => 55.50,
- Exclude checks
Whitespace found at end of line Open
Open
'heading' => 42.4,
- Exclude checks
Whitespace found at end of line Open
Open
'longitude' => 39.95,
- Exclude checks
Whitespace found at end of line Open
Open
]);
- Exclude checks
Whitespace found at end of line Open
Open
'longitude' => 30.05,
- Exclude checks
Whitespace found at end of line Open
Open
'altitude' => 1.10,
- Exclude checks
Whitespace found at end of line Open
Open
$this->seeInDatabase('gps', ['vehicle_id' => 1,
- Exclude checks
Whitespace found at end of line Open
Open
->post('/api/v1/gps', ['api_token' => env('APP_TOKEN'),
- Exclude checks
Whitespace found at end of line Open
Open
'latitude' => 51.10,
- Exclude checks
Whitespace found at end of line Open
Open
->post('/api/v1/gps', ['api_token' => env('APP_TOKEN'),
- Exclude checks
Whitespace found at end of line Open
Open
'accuracy' => 22.0,
- Exclude checks
Whitespace found at end of line Open
Open
'altitudeAccuracy' => 50.05,
- Exclude checks
Whitespace found at end of line Open
Open
'longitude' => 35.55,
- Exclude checks
Whitespace found at end of line Open
Open
'longitude' => 30.05,
- Exclude checks
Whitespace found at end of line Open
Open
'vehicle_id' => 1,
- Exclude checks
Whitespace found at end of line Open
Open
$this->seeInDatabase('gps', ['vehicle_id' => 1,
- Exclude checks