@@ -346,12 +346,12 @@ discard block |
||
346 | 346 | } |
347 | 347 | |
348 | 348 | // Check if avatar is in cache |
349 | - if (!$gravatar = $this->cache->load($this->getEmailHash($email) . ($size ? '.' . $size : ''))) { |
|
349 | + if (!$gravatar = $this->cache->load($this->getEmailHash($email).($size ? '.'.$size : ''))) { |
|
350 | 350 | // Get gravatar content |
351 | 351 | $gravatar = @file_get_contents($this->buildUrl($email, $size)); |
352 | 352 | |
353 | 353 | // Store facebook avatar url into cache |
354 | - $this->cache->save($this->getEmailHash($email) . ($size ? '.' . $size : ''), $gravatar, [ |
|
354 | + $this->cache->save($this->getEmailHash($email).($size ? '.'.$size : ''), $gravatar, [ |
|
355 | 355 | Caching\Cache::EXPIRE => '7 days', |
356 | 356 | ]); |
357 | 357 | } |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | return NULL; |
405 | 405 | } |
406 | 406 | |
407 | - fputs($sock, "HEAD " . $path . " HTTP/1.0\r\n\r\n"); |
|
407 | + fputs($sock, "HEAD ".$path." HTTP/1.0\r\n\r\n"); |
|
408 | 408 | $header = fgets($sock, 128); |
409 | 409 | fclose($sock); |
410 | 410 | |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | $emailHash = $this->getEmailHash($email); |
434 | 434 | |
435 | 435 | // Start building the URL, and deciding if we're doing this via HTTPS or HTTP. |
436 | - $url = new Nette\Http\Url(($this->useSecureUrl ? static::HTTPS_URL : static::HTTP_URL) . $emailHash); |
|
436 | + $url = new Nette\Http\Url(($this->useSecureUrl ? static::HTTPS_URL : static::HTTP_URL).$emailHash); |
|
437 | 437 | |
438 | 438 | if ($size === NULL || !$this->isSizeValid($size)) { |
439 | 439 | $size = $this->getSize(); |