@@ -19,7 +19,6 @@ |
||
19 | 19 | use Nette; |
20 | 20 | use Nette\Http; |
21 | 21 | use Nette\Utils; |
22 | - |
|
23 | 22 | use IPub; |
24 | 23 | use IPub\Gravatar\Caching; |
25 | 24 | use IPub\Gravatar\Exceptions; |
@@ -338,12 +338,12 @@ discard block |
||
338 | 338 | } |
339 | 339 | |
340 | 340 | // Check if avatar is in cache |
341 | - if (!$gravatar = $this->cache->load($this->getEmailHash($email) . ($size ? '.' . $size : ''))) { |
|
341 | + if (!$gravatar = $this->cache->load($this->getEmailHash($email).($size ? '.'.$size : ''))) { |
|
342 | 342 | // Get gravatar content |
343 | 343 | $gravatar = @file_get_contents($this->buildUrl($email, $size)); |
344 | 344 | |
345 | 345 | // Store facebook avatar url into cache |
346 | - $this->cache->save($this->getEmailHash($email) . ($size ? '.' . $size : ''), $gravatar, [ |
|
346 | + $this->cache->save($this->getEmailHash($email).($size ? '.'.$size : ''), $gravatar, [ |
|
347 | 347 | Caching\Cache::EXPIRE => '7 days', |
348 | 348 | ]); |
349 | 349 | } |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | return NULL; |
397 | 397 | } |
398 | 398 | |
399 | - fputs($sock, "HEAD " . $path . " HTTP/1.0\r\n\r\n"); |
|
399 | + fputs($sock, "HEAD ".$path." HTTP/1.0\r\n\r\n"); |
|
400 | 400 | $header = fgets($sock, 128); |
401 | 401 | fclose($sock); |
402 | 402 | |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | $emailHash = $this->getEmailHash($email); |
426 | 426 | |
427 | 427 | // Start building the URL, and deciding if we're doing this via HTTPS or HTTP. |
428 | - $url = new Nette\Http\Url(($this->useSecureUrl ? static::HTTPS_URL : static::HTTP_URL) . $emailHash); |
|
428 | + $url = new Nette\Http\Url(($this->useSecureUrl ? static::HTTPS_URL : static::HTTP_URL).$emailHash); |
|
429 | 429 | |
430 | 430 | if (!$size || !$this->isSizeValid($size)) { |
431 | 431 | $size = NULL; |