Completed
Pull Request — master (#20)
by Karl
05:01
created
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.
config/session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     |
110 110
     */
111 111
 
112
-    'lottery' => [2, 100],
112
+    'lottery' => [ 2, 100 ],
113 113
 
114 114
     /*
115 115
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
config/database.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 if (env("DATABASE_URL") && env('DB_CONNECTION', 'pgsql_heroku')) {
3 3
     $pgsql_heroku = [
4 4
         'driver' => 'pgsql',
5
-        'host' => parse_url(getenv("DATABASE_URL"))["host"],
6
-        'port' => parse_url(getenv("DATABASE_URL"))["port"],
7
-        'database' => substr(parse_url(getenv("DATABASE_URL"))["path"], 1),
8
-        'username' => parse_url(getenv("DATABASE_URL"))["user"],
9
-        'password' => parse_url(getenv("DATABASE_URL"))["pass"],
5
+        'host' => parse_url(getenv("DATABASE_URL"))[ "host" ],
6
+        'port' => parse_url(getenv("DATABASE_URL"))[ "port" ],
7
+        'database' => substr(parse_url(getenv("DATABASE_URL"))[ "path" ], 1),
8
+        'username' => parse_url(getenv("DATABASE_URL"))[ "user" ],
9
+        'password' => parse_url(getenv("DATABASE_URL"))[ "pass" ],
10 10
         'charset' => 'utf8',
11 11
         'prefix' => '',
12 12
         'schema' => 'public',
13 13
         'sslmode' => 'prefer',
14 14
     ];
15 15
 } else {
16
-    $pgsql_heroku = [];
16
+    $pgsql_heroku = [ ];
17 17
 }
18 18
 
19 19
 return [
Please login to merge, or discard this patch.
app/Models/Token.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     {
35 35
         parent::boot();
36 36
 
37
-        static::creating(function ($model) {
37
+        static::creating(function($model) {
38 38
             $model->{$model->getKeyName()} = Uuid::uuid4();
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
database/migrations/2016_09_25_145250_create_queue_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('queue', function (Blueprint $table) {
16
+        Schema::create('queue', function(Blueprint $table) {
17 17
             $table->bigIncrements('id');
18 18
             $table->string('queue');
19 19
             $table->longText('payload');
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
             $table->unsignedInteger('reserved_at')->nullable();
22 22
             $table->unsignedInteger('available_at');
23 23
             $table->unsignedInteger('created_at');
24
-            $table->index(['queue', 'reserved_at']);
24
+            $table->index([ 'queue', 'reserved_at' ]);
25 25
         });
26 26
     }
27 27
 
Please login to merge, or discard this patch.
database/migrations/2016_09_25_145354_create_failed_queue_table.php 1 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('failed_queue', function (Blueprint $table) {
16
+        Schema::create('failed_queue', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->text('connection');
19 19
             $table->text('queue');
Please login to merge, or discard this patch.
config/jobboards.php 1 patch
Spacing   +14 added lines, -15 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Makes a best guess at the server's IP defaulting to localhost.
5 5
  */
6
-if (isset($_SERVER['REMOTE_ADDR'])) {
7
-    $currentIp = $_SERVER['REMOTE_ADDR'];
8
-} elseif (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
9
-    $ipAddresses = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
6
+if (isset($_SERVER[ 'REMOTE_ADDR' ])) {
7
+    $currentIp = $_SERVER[ 'REMOTE_ADDR' ];
8
+} elseif (isset($_SERVER[ "HTTP_X_FORWARDED_FOR" ])) {
9
+    $ipAddresses = explode(',', $_SERVER[ 'HTTP_X_FORWARDED_FOR' ]);
10 10
     $currentIp = trim(end($ipAddresses));
11 11
 } else {
12 12
     $currentIp = '127.0.0.1';
@@ -15,17 +15,16 @@  discard block
 block discarded – undo
15 15
 /**
16 16
  * Makes a best guess at the user agent making this request
17 17
  */
18
-$userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] :
19
-    'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36';
18
+$userAgent = isset($_SERVER[ 'HTTP_USER_AGENT' ]) ? $_SERVER[ 'HTTP_USER_AGENT' ] : 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36';
20 19
 
21 20
 /**
22 21
  * Default job boards that require no API key permissions
23 22
  */
24 23
 $jobboards = [
25
-    'Careercast' => [],
26
-    'Dice' => [],
27
-    'Github' => [],
28
-    'Govt' => [],
24
+    'Careercast' => [ ],
25
+    'Dice' => [ ],
26
+    'Github' => [ ],
27
+    'Govt' => [ ],
29 28
 ];
30 29
 
31 30
 /**
@@ -33,7 +32,7 @@  discard block
 block discarded – undo
33 32
  * http://developer.careerbuilder.com/
34 33
  */
35 34
 if (env("CAREERBUILDER_KEY")) {
36
-    $jobboards['Careerbuilder'] = [
35
+    $jobboards[ 'Careerbuilder' ] = [
37 36
         'DeveloperKey' => env("CAREERBUILDER_KEY"),
38 37
     ];
39 38
 }
@@ -42,7 +41,7 @@  discard block
 block discarded – undo
42 41
  * http://www.indeed.com/publisher
43 42
  */
44 43
 if (env("INDEED_KEY")) {
45
-    $jobboards['Indeed'] = [
44
+    $jobboards[ 'Indeed' ] = [
46 45
         'publisher' => env("INDEED_KEY"),
47 46
         'userip' => $currentIp,
48 47
         'useragent' => $userAgent,
@@ -53,7 +52,7 @@  discard block
 block discarded – undo
53 52
  * https://developer.usajobs.gov/Search-API/Overview
54 53
  */
55 54
 if (env("USAJOBS_KEY")) {
56
-    $jobboards['Usajobs'] = [
55
+    $jobboards[ 'Usajobs' ] = [
57 56
         'AuthorizationKey' => env("USAJOBS_KEY"),
58 57
     ];
59 58
 }
@@ -62,7 +61,7 @@  discard block
 block discarded – undo
62 61
  * http://www.juju.com/publisher/spec/
63 62
  */
64 63
 if (env("JUJU_KEY")) {
65
-    $jobboards['Juju'] = [
64
+    $jobboards[ 'Juju' ] = [
66 65
         'partnerid' => env("JUJU_KEY"),
67 66
         'ipaddress' => $currentIp,
68 67
         'useragent' => $userAgent,
@@ -74,7 +73,7 @@  discard block
 block discarded – undo
74 73
  * https://www.ziprecruiter.com/publishers
75 74
  */
76 75
 if (env("ZIPRECRUITER_KEY")) {
77
-    $jobboards['Ziprecruiter'] = [
76
+    $jobboards[ 'Ziprecruiter' ] = [
78 77
         'api_key' => env("ZIPRECRUITER_KEY"),
79 78
     ];
80 79
 }
Please login to merge, or discard this patch.
database/factories/TokenFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 |--------------------------------------------------------------------------
7 7
 */
8 8
 
9
-$factory->define(\JobApis\JobsToMail\Models\Token::class, function (Faker\Generator $faker) {
9
+$factory->define(\JobApis\JobsToMail\Models\Token::class, function(Faker\Generator $faker) {
10 10
     return [
11 11
         'user_id' => null,
12 12
         'type' => 'confirm',
Please login to merge, or discard this patch.
database/factories/UserFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 |--------------------------------------------------------------------------
7 7
 */
8 8
 
9
-$factory->define(\JobApis\JobsToMail\Models\User::class, function (Faker\Generator $faker) {
9
+$factory->define(\JobApis\JobsToMail\Models\User::class, function(Faker\Generator $faker) {
10 10
     return [
11 11
         'email' => $faker->safeEmail(),
12 12
         'keyword' => $faker->word(),
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
14 14
         'confirmed_at' => null,
15 15
     ];
16 16
 });
17
-$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function (Faker\Generator $faker) {
17
+$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function(Faker\Generator $faker) {
18 18
     return [
19 19
         'confirmed_at' => $faker->dateTimeThisYear(),
20 20
     ];
21 21
 });
22
-$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function (Faker\Generator $faker) {
22
+$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function(Faker\Generator $faker) {
23 23
     return [
24 24
         'deleted_at' => $faker->dateTimeThisYear(),
25 25
     ];
Please login to merge, or discard this patch.