Completed
Push — master ( 9f8e0d...f3e3f2 )
by Igor
05:16
created
resources/lang/en/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,6 +141,6 @@
 block discarded – undo
141 141
     |
142 142
     */
143 143
 
144
-    'attributes' => [],
144
+    'attributes' => [ ],
145 145
 
146 146
 ];
Please login to merge, or discard this patch.
database/factories/EmployeeFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,19 +6,19 @@
 block discarded – undo
6 6
 use Faker\Provider\pt_BR\PhoneNumber;
7 7
 use Faker\Provider\pt_BR\Person;
8 8
 
9
-$factory->define(Employee::class, function (Faker $faker) {
9
+$factory->define(Employee::class, function(Faker $faker) {
10 10
     static $password;
11 11
 
12 12
     $faker->addProvider(new BrazilianAddress($faker));
13 13
     $faker->addProvider(new PhoneNumber($faker));
14 14
     $faker->addProvider(new Person($faker));
15
-    $phone = '(' . $faker->areaCode . ')'. $faker->phone;
15
+    $phone = '('.$faker->areaCode.')'.$faker->phone;
16 16
 
17 17
     return [
18 18
         'full_name' => $faker->name,
19 19
         'br_cpf' => $faker->cpf,
20 20
         'email' => $faker->unique()->safeEmail,
21
-        'telephone_type' => $faker->randomElement(['COMERCIAL', 'RESIDENTIAL', 'CELLPHONE']),
21
+        'telephone_type' => $faker->randomElement([ 'COMERCIAL', 'RESIDENTIAL', 'CELLPHONE' ]),
22 22
         'telephone' => $phone,
23 23
         'zip_code' => $faker->postcode,
24 24
         'city' => $faker->city,
Please login to merge, or discard this patch.
database/migrations/2018_09_19_005936_create_employees_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             return;
18 18
         }
19 19
 
20
-        Schema::create('employees', function (Blueprint $table) {
20
+        Schema::create('employees', function(Blueprint $table) {
21 21
             $table->increments('id');
22 22
             $table->string('full_name');
23 23
             $table->string('br_cpf');
Please login to merge, or discard this patch.
database/migrations/2014_10_12_100000_create_password_resets_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             return;
18 18
         }
19 19
 
20
-        Schema::create('password_resets', function (Blueprint $table) {
20
+        Schema::create('password_resets', function(Blueprint $table) {
21 21
             $table->string('email')->index();
22 22
             $table->string('token');
23 23
             $table->timestamp('created_at')->nullable();
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
             'password' => $request->json('password'),
17 17
         ];
18 18
 
19
-        if (! $token = JWTAuth::attempt($credentials)) {
20
-            return response()->json(['error' => 'invalid_credentials'], 401);
19
+        if (!$token = JWTAuth::attempt($credentials)) {
20
+            return response()->json([ 'error' => 'invalid_credentials' ], 401);
21 21
         }
22 22
 
23 23
         return response()->json(compact('token'));
Please login to merge, or discard this patch.