Completed
Push — master ( 421458...6125e8 )
by Edd
02:11
created
src/Region.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Signature.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.