@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | return new Response(\json_encode([])); |
68 | 68 | } |
69 | 69 | |
70 | - $output = [] ; |
|
70 | + $output = []; |
|
71 | 71 | /* @var $topic \DembeloMain\Document\Topic */ |
72 | 72 | foreach ($topics as $topic) { |
73 | 73 | $item = []; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $searchString = $filter['value']; |
99 | 99 | |
100 | 100 | /* @var $topics \DembeloMain\Document\Topic[] */ |
101 | - $topics = $this->topicRepository->findBy(array('name' => new \MongoRegex('/'.$searchString.'/')), null, 10); |
|
101 | + $topics = $this->topicRepository->findBy(array('name' => new \MongoRegex('/' . $searchString . '/')), null, 10); |
|
102 | 102 | |
103 | 103 | $output = []; |
104 | 104 | foreach ($topics as $topic) { |
@@ -130,8 +130,8 @@ discard block |
||
130 | 130 | return new Response(\json_encode($output)); |
131 | 131 | } |
132 | 132 | $directory = $request->query->get('topic_image_directory'); |
133 | - $filename = md5(uniqid('', true).$file['name']); |
|
134 | - move_uploaded_file($file["tmp_name"], $directory.$filename); |
|
133 | + $filename = md5(uniqid('', true) . $file['name']); |
|
134 | + move_uploaded_file($file["tmp_name"], $directory . $filename); |
|
135 | 135 | $output['imageFileName'] = $filename; |
136 | 136 | $output['originalImageName'] = $file['name']; |
137 | 137 |