Skip to content

Commit a658101

Browse files
committed
Ajustes de layout e refatoração de código por phpstorm
1 parent 45df5a0 commit a658101

File tree

120 files changed

+6955
-6785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+6955
-6785
lines changed

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ MAIL_ENCRYPTION=
3737

3838
PUSHER_APP_ID=
3939
PUSHER_APP_KEY=
40-
PUSHER_APP_SECRET=
40+
PUSHER_APP_SECRET=
41+
42+
GOOGLE_KEY=

.ruby

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.6.2

app/City.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class City extends Model
88
{
99
protected $table = "cities";
10-
protected $fillable = [ 'name', 'state_id' ];
10+
protected $fillable = ['name', 'state_id'];
1111

1212
public function state()
1313
{

app/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Kernel extends ConsoleKernel
1919
/**
2020
* Define the application's command schedule.
2121
*
22-
* @param \Illuminate\Console\Scheduling\Schedule $schedule
22+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2323
* @return void
2424
*/
2525
protected function schedule(Schedule $schedule)

app/Contact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Contact extends Model
88
{
99
protected $table = "contacts";
10-
protected $fillable = [ "value", "type_id", "user_id" ];
10+
protected $fillable = ["value", "type_id", "user_id"];
1111

1212
public function type()
1313
{

app/ContactType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
class ContactType extends Model
88
{
99
protected $table = "contact_types";
10-
protected $fillable = [ "name", "mask" ];
10+
protected $fillable = ["name", "mask"];
1111
}

app/Driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
class Driver extends Model
88
{
99
protected $table = "drivers";
10-
protected $fillable = [ 'name', 'license_id' ];
10+
protected $fillable = ['name', 'license_id'];
1111

1212
public static function boot()
1313
{
1414
parent::boot();
1515

16-
self::creating(function($model){
16+
self::creating(function ($model) {
1717
$model->created_by = \Auth::user()->id;
1818
});
1919
}

app/Exceptions/Handler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Handler extends ExceptionHandler
2727
*
2828
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
2929
*
30-
* @param \Exception $exception
30+
* @param \Exception $exception
3131
* @return void
3232
*/
3333
public function report(Exception $exception)
@@ -38,8 +38,8 @@ public function report(Exception $exception)
3838
/**
3939
* Render an exception into an HTTP response.
4040
*
41-
* @param \Illuminate\Http\Request $request
42-
* @param \Exception $exception
41+
* @param \Illuminate\Http\Request $request
42+
* @param \Exception $exception
4343
* @return \Illuminate\Http\Response
4444
*/
4545
public function render($request, Exception $exception)
@@ -50,8 +50,8 @@ public function render($request, Exception $exception)
5050
/**
5151
* Convert an authentication exception into an unauthenticated response.
5252
*
53-
* @param \Illuminate\Http\Request $request
54-
* @param \Illuminate\Auth\AuthenticationException $exception
53+
* @param \Illuminate\Http\Request $request
54+
* @param \Illuminate\Auth\AuthenticationException $exception
5555
* @return \Illuminate\Http\Response
5656
*/
5757
protected function unauthenticated($request, AuthenticationException $exception)

app/Fence.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
class Fence extends Model
88
{
99
protected $table = "fences";
10-
protected $fillable = [ "name", "polygon" ];
10+
protected $fillable = ["name", "polygon"];
1111

1212
public static function boot()
1313
{
1414
parent::boot();
1515

16-
self::creating(function($model){
16+
self::creating(function ($model) {
1717
$model->created_by = \Auth::user()->id;
1818
});
1919
}

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
namespace App\Http\Controllers\Auth;
44

5-
use App\User;
65
use App\Http\Controllers\Controller;
6+
use App\User;
7+
use DB;
8+
use Illuminate\Foundation\Auth\RegistersUsers;
79
use Illuminate\Support\Facades\Validator;
810
use jeremykenedy\LaravelRoles\Models\Role;
9-
use jeremykenedy\LaravelRoles\Models\Permission;
10-
use Illuminate\Foundation\Auth\RegistersUsers;
11-
use DB;
1211

1312
class RegisterController extends Controller
1413
{
@@ -45,7 +44,7 @@ public function __construct()
4544
/**
4645
* Get a validator for an incoming registration request.
4746
*
48-
* @param array $data
47+
* @param array $data
4948
* @return \Illuminate\Contracts\Validation\Validator
5049
*/
5150
protected function validator(array $data)
@@ -60,7 +59,7 @@ protected function validator(array $data)
6059
/**
6160
* Create a new user instance after a valid registration.
6261
*
63-
* @param array $data
62+
* @param array $data
6463
* @return \App\User
6564
*/
6665
protected function create(array $data)

0 commit comments

Comments
 (0)