@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | return $this; |
59 | 59 | } |
60 | 60 | |
61 | - public function getParameter($name, $default=null) |
|
61 | + public function getParameter($name, $default = null) |
|
62 | 62 | { |
63 | 63 | return $this->hasParameter($name) ? |
64 | 64 | $this->parameters[$name] : $default; |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | $request = $this->buildRequest(); |
83 | 83 | |
84 | 84 | //Apply standard headers |
85 | - $this->setHeader('Authorization', 'Basic '.base64_encode( |
|
86 | - $this->userid.':'.$this->password |
|
85 | + $this->setHeader('Authorization', 'Basic ' . base64_encode( |
|
86 | + $this->userid . ':' . $this->password |
|
87 | 87 | )); |
88 | 88 | |
89 | 89 | $client = new Client(array( |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | require __DIR__ . '/../vendor/autoload.php'; |
3 | -$configfile = __DIR__.'/config.json'; |
|
3 | +$configfile = __DIR__ . '/config.json'; |
|
4 | 4 | $config = false; |
5 | 5 | if (file_exists($configfile)) { |
6 | - $config = json_decode(file_get_contents(__DIR__.'/config.json'), true); |
|
6 | + $config = json_decode(file_get_contents(__DIR__ . '/config.json'), true); |
|
7 | 7 | } |
8 | 8 | |
9 | 9 | if ($config == false) { |