@@ -124,12 +124,12 @@ discard block |
||
124 | 124 | |
125 | 125 | // Only the us-east-1 region is exempt from needing the region in the url. |
126 | 126 | if ($region !== "us-east-1") { |
127 | - $middle = "-" . $region; |
|
127 | + $middle = "-".$region; |
|
128 | 128 | } else { |
129 | 129 | $middle = ""; |
130 | 130 | } |
131 | 131 | |
132 | - return "//" . urlencode($this->bucket) . "." . self::SERVICE . $middle . ".amazonaws.com"; |
|
132 | + return "//".urlencode($this->bucket).".".self::SERVICE.$middle.".amazonaws.com"; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $this->options['acl'] = new Acl($this->options['acl']); |
154 | 154 | |
155 | 155 | // Return HTTP code must be a string |
156 | - $this->options['success_status'] = (string)$this->options['success_status']; |
|
156 | + $this->options['success_status'] = (string) $this->options['success_status']; |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | { |
217 | 217 | $inputs = []; |
218 | 218 | foreach ($this->getFormInputs($addKey) as $name => $value) { |
219 | - $inputs[] = '<input type="hidden" name="' . $name . '" value="' . $value . '" />'; |
|
219 | + $inputs[] = '<input type="hidden" name="'.$name.'" value="'.$value.'" />'; |
|
220 | 220 | } |
221 | 221 | return implode(PHP_EOL, $inputs); |
222 | 222 | } |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | // Add on the additional inputs |
268 | 268 | foreach ($this->options['additional_inputs'] as $name => $value) { |
269 | - $policy['conditions'][] = ['starts-with', '$' . $name, $value]; |
|
269 | + $policy['conditions'][] = ['starts-with', '$'.$name, $value]; |
|
270 | 270 | } |
271 | 271 | |
272 | 272 | $this->base64Policy = base64_encode(json_encode($policy)); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | ]; |
286 | 286 | |
287 | 287 | // Iterates over the data, hashing it each time. |
288 | - $initial = 'AWS4' . $this->secret; |
|
288 | + $initial = 'AWS4'.$this->secret; |
|
289 | 289 | $signingKey = array_reduce($signatureData, function($key, $data) { |
290 | 290 | return $this->keyHash($data, $key); |
291 | 291 | }, $initial); |