Completed
Branch master (3b2036)
by Andrew
04:31
created
src/AwsHelper/AwsHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     private $iam_role;
11 11
     private $iam_url;
12 12
 
13
-    public function __construct($iam_role, $iam_url='http://169.254.169.254/latest/meta-data/iam/security-credentials/')
13
+    public function __construct($iam_role, $iam_url = 'http://169.254.169.254/latest/meta-data/iam/security-credentials/')
14 14
     {
15 15
 
16 16
         if (empty($iam_role))
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         return $this->json;
42 42
     }
43 43
 
44
-    public function getDefaultOptions($aws_key=null, $aws_secret=null)
44
+    public function getDefaultOptions($aws_key = null, $aws_secret = null)
45 45
     {
46 46
         $opts = [
47 47
             'key'    => $aws_key,
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     public function hasAccessExpired($date)
104 104
     {
105 105
         $date = new \DateTime($date);
106
-        if ($date->format('U')-date('U') > 0)
106
+        if ($date->format('U') - date('U') > 0)
107 107
             return false;
108 108
 
109 109
         return true;
Please login to merge, or discard this patch.