@@ -43,17 +43,17 @@ |
||
43 | 43 | $height = round($width * 3 / 4); |
44 | 44 | } |
45 | 45 | |
46 | - $url .= $width . '/' . $height; |
|
46 | + $url .= $width.'/'.$height; |
|
47 | 47 | |
48 | 48 | $category = ['abstract', 'city', 'nature', 'moutains']; |
49 | - $url .= '/' . $category[array_rand($category, 1)] . '/'; |
|
49 | + $url .= '/'.$category[array_rand($category, 1)].'/'; |
|
50 | 50 | |
51 | 51 | return $url; |
52 | 52 | } |
53 | 53 | |
54 | 54 | protected function downloadMedia($url) |
55 | 55 | { |
56 | - $filepath = sys_get_temp_dir() . '/tmp.jpg'; |
|
56 | + $filepath = sys_get_temp_dir().'/tmp.jpg'; |
|
57 | 57 | $ch = curl_init($url); |
58 | 58 | $fp = fopen($filepath, 'wb'); |
59 | 59 | curl_setopt($ch, CURLOPT_FILE, $fp); |
@@ -215,7 +215,7 @@ |
||
215 | 215 | $container = $this->container; |
216 | 216 | $router = $container->get('router'); |
217 | 217 | |
218 | - if($options['absolute']) { |
|
218 | + if ($options['absolute']) { |
|
219 | 219 | $referenceType = UrlGenerator::ABSOLUTE_URL; |
220 | 220 | } else { |
221 | 221 | $referenceType = UrlGenerator::ABSOLUTE_PATH; |