@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | include __DIR__ . '/../vendor/autoload.php'; |
| 4 | 4 | $yaml = new \Symfony\Component\Yaml\Parser(); |
| 5 | -$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml')); |
|
| 5 | +$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml')); |
|
| 6 | 6 | |
| 7 | 7 | try { |
| 8 | 8 | $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([ |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | include __DIR__ . '/../vendor/autoload.php'; |
| 4 | 4 | $yaml = new \Symfony\Component\Yaml\Parser(); |
| 5 | -$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml')); |
|
| 5 | +$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml')); |
|
| 6 | 6 | |
| 7 | 7 | try { |
| 8 | 8 | $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([ |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | include __DIR__ . '/../vendor/autoload.php'; |
| 4 | 4 | $yaml = new \Symfony\Component\Yaml\Parser(); |
| 5 | -$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml')); |
|
| 5 | +$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml')); |
|
| 6 | 6 | |
| 7 | 7 | try { |
| 8 | 8 | $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([ |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | include __DIR__ . '/../vendor/autoload.php'; |
| 4 | 4 | $yaml = new \Symfony\Component\Yaml\Parser(); |
| 5 | -$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml')); |
|
| 5 | +$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml')); |
|
| 6 | 6 | |
| 7 | 7 | try { |
| 8 | 8 | $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([ |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | include __DIR__ . '/../vendor/autoload.php'; |
| 4 | 4 | $yaml = new \Symfony\Component\Yaml\Parser(); |
| 5 | -$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml')); |
|
| 5 | +$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml')); |
|
| 6 | 6 | |
| 7 | 7 | try { |
| 8 | 8 | $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([ |
@@ -270,12 +270,12 @@ |
||
| 270 | 270 | 'X-Request-Id' => (string) $this->requestID, |
| 271 | 271 | 'X-TimeStamp' => (string) new DataTime(), |
| 272 | 272 | 'X-Source-Address' => getenv('HTTP_CLIENT_IP') |
| 273 | - ?:getenv('HTTP_X_FORWARDED_FOR') |
|
| 274 | - ?:getenv('HTTP_X_FORWARDED') |
|
| 275 | - ?:getenv('HTTP_FORWARDED_FOR') |
|
| 276 | - ?:getenv('HTTP_FORWARDED') |
|
| 277 | - ?:getenv('REMOTE_ADDR') |
|
| 278 | - ?:gethostname(), |
|
| 273 | + ?: getenv('HTTP_X_FORWARDED_FOR') |
|
| 274 | + ?: getenv('HTTP_X_FORWARDED') |
|
| 275 | + ?: getenv('HTTP_FORWARDED_FOR') |
|
| 276 | + ?: getenv('HTTP_FORWARDED') |
|
| 277 | + ?: getenv('REMOTE_ADDR') |
|
| 278 | + ?: gethostname(), |
|
| 279 | 279 | ]; |
| 280 | 280 | |
| 281 | 281 | // @todo: Investigate more why it's like that. |