Completed
Push — master ( 8233f3...3ac9f3 )
by Karl
02:38
created
app/Notifications/Messages/JobMailMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class JobMailMessage extends MailMessage
9 9
 {
10
-    public $jobListings = [];
10
+    public $jobListings = [ ];
11 11
 
12 12
     /**
13 13
      * Add a Job listing to the notification
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             $line .= " in {$job->getLocation()}";
27 27
         }
28 28
         $line .= ".";
29
-        $this->jobListings[] = [
29
+        $this->jobListings[ ] = [
30 30
             'link' => $job->getUrl(),
31 31
             'text' => $line,
32 32
         ];
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         return array_merge(
44 44
             $this->toArray(),
45 45
             $this->viewData,
46
-            ['jobListings' => $this->jobListings]
46
+            [ 'jobListings' => $this->jobListings ]
47 47
         );
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
app/Repositories/Contracts/UserRepositoryInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 {
5 5
     public function confirm($token = null);
6 6
 
7
-    public function create($data = []);
7
+    public function create($data = [ ]);
8 8
 
9
-    public function getById($id = null, $options = []);
9
+    public function getById($id = null, $options = [ ]);
10 10
 
11
-    public function update($id = null, $data = []);
11
+    public function update($id = null, $data = [ ]);
12 12
 }
Please login to merge, or discard this patch.
database/migrations/2014_10_12_100000_create_tokens_table.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateTokensTable extends Migration
8 8
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('tokens', function (Blueprint $table) {
16
+        Schema::create('tokens', function(Blueprint $table) {
17 17
             $table->string('token');
18 18
             $table->primary('token');
19 19
             $table->string('type');
Please login to merge, or discard this patch.
database/seeds/TestingDatabaseSeeder.php 2 patches
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Faker\Factory as Faker;
4 4
 use Illuminate\Database\Seeder;
5
-use JobApis\JobsToMail\Models\User;
6 5
 use JobApis\JobsToMail\Models\Token;
7
-use Illuminate\Support\Facades\DB;
6
+use JobApis\JobsToMail\Models\User;
8 7
 
9 8
 class TestingDatabaseSeeder extends Seeder
10 9
 {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     private function createActiveUsers($num = 10)
20 20
     {
21
-        foreach(range(1, $num) as $index)
21
+        foreach (range(1, $num) as $index)
22 22
         {
23 23
             $user = User::create([
24 24
                 'email' => $this->faker->email(),
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
                 'confirmed_at' => $this->faker->dateTimeThisYear(),
28 28
             ]);
29 29
             Token::create([
30
-                'user_id' => $user['id'],
30
+                'user_id' => $user[ 'id' ],
31 31
                 'type' => 'confirm',
32 32
             ]);
33 33
         }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     private function createDeletedUsers($num = 10)
37 37
     {
38
-        foreach(range(1, $num) as $index)
38
+        foreach (range(1, $num) as $index)
39 39
         {
40 40
             $user = User::create([
41 41
                 'email' => $this->faker->email(),
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
                 'deleted_at' => $this->faker->dateTimeThisYear(),
46 46
             ]);
47 47
             Token::create([
48
-                'user_id' => $user['id'],
48
+                'user_id' => $user[ 'id' ],
49 49
                 'type' => 'confirm',
50 50
             ]);
51 51
             Token::create([
52
-                'user_id' => $user['id'],
52
+                'user_id' => $user[ 'id' ],
53 53
                 'type' => 'unsubscribe',
54 54
             ]);
55 55
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     private function createUnconfirmedUsers($num = 10)
59 59
     {
60
-        foreach(range(1, $num) as $index)
60
+        foreach (range(1, $num) as $index)
61 61
         {
62 62
             $user = User::create([
63 63
                 'email' => $this->faker->email(),
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 'location' => $this->faker->word().', '.$this->faker->word(),
66 66
             ]);
67 67
             Token::create([
68
-                'user_id' => $user['id'],
68
+                'user_id' => $user[ 'id' ],
69 69
                 'type' => 'confirm',
70 70
             ]);
71 71
         }
Please login to merge, or discard this patch.
database/factories/ModelFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-$factory->define(JobApis\JobsToMail\User::class, function (Faker\Generator $faker) {
14
+$factory->define(JobApis\JobsToMail\User::class, function(Faker\Generator $faker) {
15 15
     static $password;
16 16
 
17 17
     return [
Please login to merge, or discard this patch.
database/migrations/2014_10_12_000000_create_users_table.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('users', function (Blueprint $table) {
16
+        Schema::create('users', function(Blueprint $table) {
17 17
             $table->uuid('id');
18 18
             $table->primary('id');
19 19
             $table->string('email')->index();
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateTokensTable extends Migration
8 8
 {
Please login to merge, or discard this patch.
server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 $uri = urldecode(
11
-    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
11
+    parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH)
12 12
 );
13 13
 
14 14
 // This file allows us to emulate Apache's "mod_rewrite" functionality from the
Please login to merge, or discard this patch.
resources/lang/en/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,6 +112,6 @@
 block discarded – undo
112 112
     |
113 113
     */
114 114
 
115
-    'attributes' => [],
115
+    'attributes' => [ ],
116 116
 
117 117
 ];
Please login to merge, or discard this patch.
resources/views/vendor/notifications/email-plain.blade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! empty($greeting)) {
3
+if (!empty($greeting)) {
4 4
     echo $greeting, "\n\n";
5 5
 } else {
6 6
     echo $level == 'error' ? 'Whoops!' : 'Hello!', "\n\n";
7 7
 }
8 8
 
9
-if (! empty($introLines)) {
9
+if (!empty($introLines)) {
10 10
     echo implode("\n", $introLines), "\n\n";
11 11
 }
12 12
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     echo "{$actionText}: {$actionUrl}", "\n\n";
15 15
 }
16 16
 
17
-if (! empty($outroLines)) {
17
+if (!empty($outroLines)) {
18 18
     echo implode("\n", $outroLines), "\n\n";
19 19
 }
20 20
 
Please login to merge, or discard this patch.