@@ -168,7 +168,7 @@ |
||
168 | 168 | */ |
169 | 169 | public function getTrendByTrait($sid, \DateTime $startDate, \DateTime $endDate, $dayInterval = '1D') |
170 | 170 | { |
171 | - $cacheKey = self::CACHE_NAMESPACE . sha1($startDate->getTimestamp().$endDate->getTimestamp()); |
|
171 | + $cacheKey = self::CACHE_NAMESPACE . sha1($startDate->getTimestamp() . $endDate->getTimestamp()); |
|
172 | 172 | |
173 | 173 | if ($this->isCacheEnabled()) { |
174 | 174 | if ($this->cache->contains($cacheKey)) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $optionForToken = [ |
80 | 80 | 'headers' => [ |
81 | - 'Authorization' => ['Bearer '.$this->authStrategy->authenticate($this->clientId, $this->secretKey, $this->username, $this->password)], |
|
81 | + 'Authorization' => ['Bearer ' . $this->authStrategy->authenticate($this->clientId, $this->secretKey, $this->username, $this->password)], |
|
82 | 82 | ], |
83 | 83 | ]; |
84 | 84 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | $optionForToken = [ |
95 | 95 | 'headers' => [ |
96 | - 'Authorization' => ['Bearer '.$this->authStrategy->authenticate($this->clientId, $this->secretKey, $this->username, $this->password, true, true)], |
|
96 | + 'Authorization' => ['Bearer ' . $this->authStrategy->authenticate($this->clientId, $this->secretKey, $this->username, $this->password, true, true)], |
|
97 | 97 | ], |
98 | 98 | ]; |
99 | 99 |
@@ -37,6 +37,6 @@ |
||
37 | 37 | */ |
38 | 38 | public static function missingSid($trait) |
39 | 39 | { |
40 | - return new self('Missing sid for '.serialize($trait->getName())); |
|
40 | + return new self('Missing sid for ' . serialize($trait->getName())); |
|
41 | 41 | } |
42 | 42 | } |
@@ -17,6 +17,6 @@ |
||
17 | 17 | */ |
18 | 18 | public static function authFailed($reason) |
19 | 19 | { |
20 | - return new self(self::DEFAULT_MESSAGE.$reason, 0, null); |
|
20 | + return new self(self::DEFAULT_MESSAGE . $reason, 0, null); |
|
21 | 21 | } |
22 | 22 | } |