Passed
Push — bug/414-up-button-leaves-readp... ( 0272f7...6403e7 )
by Michael
07:47 queued 01:44
created
www/src/AdminBundle/Controller/TopicController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.