Completed
Push — master ( 7bafcc...000aae )
by Karl
04:47
created
config/jobboards.php 1 patch
Spacing   +15 added lines, -16 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,18 +15,17 @@  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' => [],
29
-    'Jobinventory' => [],
24
+    'Careercast' => [ ],
25
+    'Dice' => [ ],
26
+    'Github' => [ ],
27
+    'Govt' => [ ],
28
+    'Jobinventory' => [ ],
30 29
 ];
31 30
 
32 31
 /**
@@ -34,7 +33,7 @@  discard block
 block discarded – undo
34 33
  * http://developer.careerbuilder.com/
35 34
  */
36 35
 if (env("CAREERBUILDER_KEY")) {
37
-    $jobboards['Careerbuilder'] = [
36
+    $jobboards[ 'Careerbuilder' ] = [
38 37
         'DeveloperKey' => env("CAREERBUILDER_KEY"),
39 38
     ];
40 39
 }
@@ -43,7 +42,7 @@  discard block
 block discarded – undo
43 42
  * http://www.indeed.com/publisher
44 43
  */
45 44
 if (env("INDEED_KEY")) {
46
-    $jobboards['Indeed'] = [
45
+    $jobboards[ 'Indeed' ] = [
47 46
         'publisher' => env("INDEED_KEY"),
48 47
         'userip' => $currentIp,
49 48
         'useragent' => $userAgent,
@@ -54,7 +53,7 @@  discard block
 block discarded – undo
54 53
  * https://developer.usajobs.gov/Search-API/Overview
55 54
  */
56 55
 if (env("USAJOBS_KEY")) {
57
-    $jobboards['Usajobs'] = [
56
+    $jobboards[ 'Usajobs' ] = [
58 57
         'AuthorizationKey' => env("USAJOBS_KEY"),
59 58
     ];
60 59
 }
@@ -63,7 +62,7 @@  discard block
 block discarded – undo
63 62
  * http://www.juju.com/publisher/spec/
64 63
  */
65 64
 if (env("JUJU_KEY")) {
66
-    $jobboards['Juju'] = [
65
+    $jobboards[ 'Juju' ] = [
67 66
         'partnerid' => env("JUJU_KEY"),
68 67
         'ipaddress' => $currentIp,
69 68
         'useragent' => $userAgent,
@@ -75,7 +74,7 @@  discard block
 block discarded – undo
75 74
  * https://www.ziprecruiter.com/publishers
76 75
  */
77 76
 if (env("ZIPRECRUITER_KEY")) {
78
-    $jobboards['Ziprecruiter'] = [
77
+    $jobboards[ 'Ziprecruiter' ] = [
79 78
         'api_key' => env("ZIPRECRUITER_KEY"),
80 79
     ];
81 80
 }
Please login to merge, or discard this patch.