Completed
Pull Request — master (#32)
by Karl
04:52
created
config/jobboards.php 1 patch
Spacing   +18 added lines, -19 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,20 +15,19 @@  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
-    'Ieee' => [],
30
-    'Jobinventory' => [],
31
-    'Stackoverflow' => [],
24
+    'Careercast' => [ ],
25
+    'Dice' => [ ],
26
+    'Github' => [ ],
27
+    'Govt' => [ ],
28
+    'Ieee' => [ ],
29
+    'Jobinventory' => [ ],
30
+    'Stackoverflow' => [ ],
32 31
 ];
33 32
 
34 33
 /**
@@ -36,7 +35,7 @@  discard block
 block discarded – undo
36 35
  * http://developer.careerbuilder.com/
37 36
  */
38 37
 if (env("CAREERBUILDER_KEY")) {
39
-    $jobboards['Careerbuilder'] = [
38
+    $jobboards[ 'Careerbuilder' ] = [
40 39
         'DeveloperKey' => env("CAREERBUILDER_KEY"),
41 40
     ];
42 41
 }
@@ -45,7 +44,7 @@  discard block
 block discarded – undo
45 44
  * http://www.careerjet.com/partners/
46 45
  */
47 46
 if (env("CAREERJET_KEY")) {
48
-    $jobboards['Careerjet'] = [
47
+    $jobboards[ 'Careerjet' ] = [
49 48
         'affid' => env("CAREERJET_KEY"),
50 49
     ];
51 50
 }
@@ -54,7 +53,7 @@  discard block
 block discarded – undo
54 53
  * http://www.indeed.com/publisher
55 54
  */
56 55
 if (env("INDEED_KEY")) {
57
-    $jobboards['Indeed'] = [
56
+    $jobboards[ 'Indeed' ] = [
58 57
         'publisher' => env("INDEED_KEY"),
59 58
         'userip' => $currentIp,
60 59
         'useragent' => $userAgent,
@@ -65,7 +64,7 @@  discard block
 block discarded – undo
65 64
  * https://developer.usajobs.gov/Search-API/Overview
66 65
  */
67 66
 if (env("USAJOBS_KEY")) {
68
-    $jobboards['Usajobs'] = [
67
+    $jobboards[ 'Usajobs' ] = [
69 68
         'AuthorizationKey' => env("USAJOBS_KEY"),
70 69
     ];
71 70
 }
@@ -74,7 +73,7 @@  discard block
 block discarded – undo
74 73
  * http://www.juju.com/publisher/spec/
75 74
  */
76 75
 if (env("JUJU_KEY")) {
77
-    $jobboards['Juju'] = [
76
+    $jobboards[ 'Juju' ] = [
78 77
         'partnerid' => env("JUJU_KEY"),
79 78
         'ipaddress' => $currentIp,
80 79
         'useragent' => $userAgent,
@@ -86,7 +85,7 @@  discard block
 block discarded – undo
86 85
  * https://www.ziprecruiter.com/publishers
87 86
  */
88 87
 if (env("ZIPRECRUITER_KEY")) {
89
-    $jobboards['Ziprecruiter'] = [
88
+    $jobboards[ 'Ziprecruiter' ] = [
90 89
         'api_key' => env("ZIPRECRUITER_KEY"),
91 90
     ];
92 91
 }
Please login to merge, or discard this patch.