@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | return false; |
142 | 142 | } |
143 | 143 | try { |
144 | - $font = __DIR__ . '/../../core/fonts/NotoSans-Regular.ttf'; |
|
144 | + $font = __DIR__.'/../../core/fonts/NotoSans-Regular.ttf'; |
|
145 | 145 | $svg = $this->getAvatarVector($size); |
146 | 146 | $avatar = new Imagick(); |
147 | 147 | $avatar->setFont($font); |
@@ -176,11 +176,11 @@ discard block |
||
176 | 176 | $white = imagecolorallocate($im, 255, 255, 255); |
177 | 177 | imagefilledrectangle($im, 0, 0, $size, $size, $background); |
178 | 178 | |
179 | - $font = __DIR__ . '/../../../core/fonts/NotoSans-Regular.ttf'; |
|
179 | + $font = __DIR__.'/../../../core/fonts/NotoSans-Regular.ttf'; |
|
180 | 180 | |
181 | 181 | $fontSize = $size * 0.4; |
182 | 182 | list($x, $y) = $this->imageTTFCenter( |
183 | - $im, $letter, $font, (int)$fontSize |
|
183 | + $im, $letter, $font, (int) $fontSize |
|
184 | 184 | ); |
185 | 185 | |
186 | 186 | imagettftext($im, $fontSize, 0, $x, $y, $white, $font, $letter); |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | $hash = strtolower($hash); |
293 | 293 | |
294 | 294 | // Already a md5 hash? |
295 | - if( preg_match('/^([0-9a-f]{4}-?){8}$/', $hash, $matches) !== 1 ) { |
|
295 | + if (preg_match('/^([0-9a-f]{4}-?){8}$/', $hash, $matches) !== 1) { |
|
296 | 296 | $hash = md5($hash); |
297 | 297 | } |
298 | 298 |