@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | return $this; |
56 | 56 | } |
57 | 57 | |
58 | - public function getParameter($name, $default=null) |
|
58 | + public function getParameter($name, $default = null) |
|
59 | 59 | { |
60 | 60 | return $this->hasParameter($name) ? |
61 | 61 | $this->parameters[$name] : $default; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | //Apply standard header defaults |
82 | 82 | $request->addHeader('Accept-language', 'en-CA'); |
83 | 83 | $request->addHeader('Authorization', base64_encode( |
84 | - $this->userid.':'.$this->password |
|
84 | + $this->userid . ':' . $this->password |
|
85 | 85 | )); |
86 | 86 | |
87 | 87 | //Apply custom headers (with possible overwrite) |
@@ -3,13 +3,13 @@ |
||
3 | 3 | use Guzzle\Http\Client; |
4 | 4 | use LinusShops\CanadaPost\Service; |
5 | 5 | /** |
6 | - * Get the nearest post office |
|
7 | - * |
|
8 | - * @see https://www.canadapost.ca/cpo/mc/business/productsservices/developers/services/findpostoffice/nearestpostoffice.jsf |
|
9 | - * @author Sam Schmidt <[email protected]> |
|
10 | - * @since 2015-12-09 |
|
11 | - * @company Linus Shops |
|
12 | - */ |
|
6 | + * Get the nearest post office |
|
7 | + * |
|
8 | + * @see https://www.canadapost.ca/cpo/mc/business/productsservices/developers/services/findpostoffice/nearestpostoffice.jsf |
|
9 | + * @author Sam Schmidt <[email protected]> |
|
10 | + * @since 2015-12-09 |
|
11 | + * @company Linus Shops |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | class GetNearestPostOffice extends Service |
15 | 15 | { |