@@ -18,13 +18,13 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * {@inheritdoc} |
20 | 20 | */ |
21 | - public function getFilters(){ |
|
21 | + public function getFilters() { |
|
22 | 22 | return array( |
23 | - $this->filterPrefix.'Avatar' => new \Twig_SimpleFilter('grAvatar', array($this,'avatar'), $this->filterOptions), |
|
24 | - $this->filterPrefix.'Https' => new \Twig_SimpleFilter('grHttps', array($this,'https'), $this->filterOptions), |
|
25 | - $this->filterPrefix.'Size' => new \Twig_SimpleFilter('grSize', array($this,'size'), $this->filterOptions), |
|
26 | - $this->filterPrefix.'Default' => new \Twig_SimpleFilter('grDefault', array($this,'def'), $this->filterOptions), |
|
27 | - $this->filterPrefix.'Rating' => new \Twig_SimpleFilter('grRating', array($this,'rating'), $this->filterOptions), |
|
23 | + $this->filterPrefix.'Avatar' => new \Twig_SimpleFilter('grAvatar', array($this, 'avatar'), $this->filterOptions), |
|
24 | + $this->filterPrefix.'Https' => new \Twig_SimpleFilter('grHttps', array($this, 'https'), $this->filterOptions), |
|
25 | + $this->filterPrefix.'Size' => new \Twig_SimpleFilter('grSize', array($this, 'size'), $this->filterOptions), |
|
26 | + $this->filterPrefix.'Default' => new \Twig_SimpleFilter('grDefault', array($this, 'def'), $this->filterOptions), |
|
27 | + $this->filterPrefix.'Rating' => new \Twig_SimpleFilter('grRating', array($this, 'rating'), $this->filterOptions), |
|
28 | 28 | ); |
29 | 29 | } |
30 | 30 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function avatar($email) { |
38 | 38 | if (filter_var($email, FILTER_VALIDATE_EMAIL)) { |
39 | - return $this->baseUrl . "avatar/" . $this->generateHash($email); |
|
39 | + return $this->baseUrl."avatar/".$this->generateHash($email); |
|
40 | 40 | } else { |
41 | 41 | throw new InvalidArgumentException("The avatar filter must be passed a valid Email address"); |
42 | 42 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | private function query($string, array $addition) { |
138 | 138 | foreach ($addition as $name => $value) { |
139 | - $string .= (strpos($string, "?") === FALSE ? "?" : "&") . $name . "=" . $value; |
|
139 | + $string .= (strpos($string, "?") === FALSE ? "?" : "&").$name."=".$value; |
|
140 | 140 | } |
141 | 141 | return $string; |
142 | 142 | } |