Completed
Push — master ( 76bd22...d6ca0a )
by Adam
02:51
created
src/IPub/Gravatar/Latte/Macros.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 			throw new Latte\CompileException('Please provide email address.');
72 72
 		}
73 73
 
74
-		return $writer->write('echo %escape(call_user_func($this->filters->gravatar, ' . $arguments["email"] . ', ' . $arguments["size"] . '))');
74
+		return $writer->write('echo %escape(call_user_func($this->filters->gravatar, '.$arguments["email"].', '.$arguments["size"].'))');
75 75
 	}
76 76
 
77 77
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 			throw new Latte\CompileException('Please provide email address.');
92 92
 		}
93 93
 
94
-		return $writer->write('?> ' . ($node->htmlNode->name === 'a' ? 'href' : 'src') . '="<?php echo %escape(call_user_func($this->filters->gravatar, ' . $arguments['email'] . ', ' . $arguments['size'] . '))?>" <?php');
94
+		return $writer->write('?> '.($node->htmlNode->name === 'a' ? 'href' : 'src').'="<?php echo %escape(call_user_func($this->filters->gravatar, '.$arguments['email'].', '.$arguments['size'].'))?>" <?php');
95 95
 	}
96 96
 
97 97
 
Please login to merge, or discard this patch.
src/IPub/Gravatar/DI/GravatarExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 		// Register template helpers
67 67
 		$builder->addDefinition($this->prefix('helpers'))
68 68
 			->setClass(Templating\Helpers::CLASS_NAME)
69
-			->setFactory($this->prefix('@gravatar') . '::createTemplateHelpers')
69
+			->setFactory($this->prefix('@gravatar').'::createTemplateHelpers')
70 70
 			->setInject(FALSE);
71 71
 	}
72 72
 
Please login to merge, or discard this patch.
src/IPub/Gravatar/Gravatar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -328,12 +328,12 @@  discard block
 block discarded – undo
328 328
 		}
329 329
 
330 330
 		// Check if avatar is in cache
331
-		if (!$gravatar = $this->cache->load($this->getEmailHash($email) . '.' . $this->getSize($size))) {
331
+		if (!$gravatar = $this->cache->load($this->getEmailHash($email).'.'.$this->getSize($size))) {
332 332
 			// Get gravatar content
333 333
 			$gravatar = @file_get_contents($this->buildUrl($email, $size));
334 334
 
335 335
 			// Store facebook avatar url into cache
336
-			$this->cache->save($this->getEmailHash($email) . '.' . $this->getSize($size), $gravatar, [
336
+			$this->cache->save($this->getEmailHash($email).'.'.$this->getSize($size), $gravatar, [
337 337
 				Caching\Cache::EXPIRE => '7 days',
338 338
 			]);
339 339
 		}
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 			return NULL;
387 387
 		}
388 388
 
389
-		fputs($sock, "HEAD " . $path . " HTTP/1.0\r\n\r\n");
389
+		fputs($sock, "HEAD ".$path." HTTP/1.0\r\n\r\n");
390 390
 		$header = fgets($sock, 128);
391 391
 		fclose($sock);
392 392
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 		$emailHash = $this->getEmailHash($email);
416 416
 
417 417
 		// Start building the URL, and deciding if we're doing this via HTTPS or HTTP.
418
-		$url = new Nette\Http\Url(($this->useSecureUrl ? static::HTTPS_URL : static::HTTP_URL) . $emailHash);
418
+		$url = new Nette\Http\Url(($this->useSecureUrl ? static::HTTPS_URL : static::HTTP_URL).$emailHash);
419 419
 
420 420
 		// Time to figure out our request params
421 421
 		$params = [
Please login to merge, or discard this patch.
src/IPub/Gravatar/Application/GravatarResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 			return NULL;
69 69
 		}
70 70
 
71
-		fputs($sock, "HEAD " . $path . " HTTP/1.0\r\n\r\n");
71
+		fputs($sock, "HEAD ".$path." HTTP/1.0\r\n\r\n");
72 72
 		$header = fgets($sock, 128);
73 73
 		fclose($sock);
74 74
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 		$emailHash = hash('md5', strtolower(trim($email)));
135 135
 
136 136
 		// Start building the URL, and deciding if we're doing this via HTTPS or HTTP.
137
-		$url = new Http\Url(Gravatar\Gravatar::HTTPS_URL . $emailHash);
137
+		$url = new Http\Url(Gravatar\Gravatar::HTTPS_URL.$emailHash);
138 138
 
139 139
 		// Time to figure out our request params
140 140
 		$params = [];
Please login to merge, or discard this patch.