@@ -20,6 +20,9 @@ |
||
| 20 | 20 | |
| 21 | 21 | private $name; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $region |
|
| 25 | + */ |
|
| 23 | 26 | public function __construct($region) |
| 24 | 27 | { |
| 25 | 28 | $this->setName($region); |
@@ -113,12 +113,12 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | // Only the us-east-1 region is exempt from needing the region in the url. |
| 115 | 115 | if ($region !== "us-east-1") { |
| 116 | - $middle = "-" . $region; |
|
| 116 | + $middle = "-".$region; |
|
| 117 | 117 | } else { |
| 118 | 118 | $middle = ""; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - return "//" . $this->bucket . "." . self::SERVICE . $middle . ".amazonaws.com"; |
|
| 121 | + return "//".$this->bucket.".".self::SERVICE.$middle.".amazonaws.com"; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | { |
| 201 | 201 | $html = ""; |
| 202 | 202 | foreach ($this->getFormInputs() as $name => $value) { |
| 203 | - $html .= '<input type="hidden" name="' . $name . '" value="' . $value . '" />' . PHP_EOL; |
|
| 203 | + $html .= '<input type="hidden" name="'.$name.'" value="'.$value.'" />'.PHP_EOL; |
|
| 204 | 204 | } |
| 205 | 205 | return $html; |
| 206 | 206 | } |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | ]; |
| 260 | 260 | |
| 261 | 261 | // Iterates over the data, hashing it each time. |
| 262 | - $signingKey = 'AWS4' . $this->secret; |
|
| 262 | + $signingKey = 'AWS4'.$this->secret; |
|
| 263 | 263 | foreach ($signatureData as $data) { |
| 264 | 264 | $signingKey = $this->keyHash($data, $signingKey); |
| 265 | 265 | } |