@@ -114,12 +114,12 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | // Only the us-east-1 region is exempt from needing the region in the url. |
| 116 | 116 | if ($region !== "us-east-1") { |
| 117 | - $middle = "-" . $region; |
|
| 117 | + $middle = "-".$region; |
|
| 118 | 118 | } else { |
| 119 | 119 | $middle = ""; |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | - return "//" . urlencode($this->bucket) . "." . self::SERVICE . $middle . ".amazonaws.com"; |
|
| 122 | + return "//".urlencode($this->bucket).".".self::SERVICE.$middle.".amazonaws.com"; |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | { |
| 204 | 204 | $html = ''; |
| 205 | 205 | foreach ($this->getFormInputs() as $name => $value) { |
| 206 | - $html .= '<input type="hidden" name="' . $name . '" value="' . $value . '" />' . PHP_EOL; |
|
| 206 | + $html .= '<input type="hidden" name="'.$name.'" value="'.$value.'" />'.PHP_EOL; |
|
| 207 | 207 | } |
| 208 | 208 | return trim($html); |
| 209 | 209 | } |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | ]; |
| 263 | 263 | |
| 264 | 264 | // Iterates over the data, hashing it each time. |
| 265 | - $initial = 'AWS4' . $this->secret; |
|
| 265 | + $initial = 'AWS4'.$this->secret; |
|
| 266 | 266 | $signingKey = array_reduce($signatureData, function($key, $data) { |
| 267 | 267 | return $this->keyHash($data, $key); |
| 268 | 268 | }, $initial); |