@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function findFollowedEvents($userId, $limit = null, $page = null) |
| 19 | 19 | { |
| 20 | - $query = $this->getEntityManager()->createQuery('SELECT event FROM |
|
| 20 | + $query = $this->getEntityManager()->createQuery('SELECT event FROM |
|
| 21 | 21 | KIPublicationBundle:Event event, |
| 22 | 22 | KIUserBundle:Club club, |
| 23 | 23 | KIUserBundle:User user |
@@ -410,9 +410,9 @@ |
||
| 410 | 410 | return $this->users = $users; |
| 411 | 411 | } |
| 412 | 412 | |
| 413 | - /** |
|
| 414 | - * @JMS\Expose |
|
| 415 | - */ |
|
| 413 | + /** |
|
| 414 | + * @JMS\Expose |
|
| 415 | + */ |
|
| 416 | 416 | protected $downloaded = false; |
| 417 | 417 | |
| 418 | 418 | public function hasBeenDownloaded() |
@@ -12,14 +12,14 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | class DepartmentUpdateCommandTest extends KernelTestCase |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @var \Doctrine\ORM\EntityManager |
|
| 17 | - */ |
|
| 15 | + /** |
|
| 16 | + * @var \Doctrine\ORM\EntityManager |
|
| 17 | + */ |
|
| 18 | 18 | private $em; |
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * {@inheritDoc} |
|
| 22 | - */ |
|
| 20 | + /** |
|
| 21 | + * {@inheritDoc} |
|
| 22 | + */ |
|
| 23 | 23 | protected function setUp() |
| 24 | 24 | { |
| 25 | 25 | self::bootKernel(); |
@@ -49,9 +49,9 @@ discard block |
||
| 49 | 49 | $this->assertEquals('IMI', $dreveton->getDepartment()); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * {@inheritDoc} |
|
| 54 | - */ |
|
| 52 | + /** |
|
| 53 | + * {@inheritDoc} |
|
| 54 | + */ |
|
| 55 | 55 | protected function tearDown() |
| 56 | 56 | { |
| 57 | 57 | parent::tearDown(); |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | return $this->json([ |
| 53 | 53 | 'online' => $this->repository->getOnlineUsers($delay), |
| 54 | 54 | 'open' => $clubRepo->findOneBySlug('ki')->getOpen() |
| 55 | - ]); |
|
| 55 | + ]); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | |
@@ -36,13 +36,13 @@ |
||
| 36 | 36 | $isPreview = $input->getOption('preview'); |
| 37 | 37 | $users = $usersRepo->findByPromo($input->getArgument('promo')); |
| 38 | 38 | $question = new ConfirmationQuestion('Update? ', false, '/^y/i'); |
| 39 | - $serializer = new Serializer([new ObjectNormalizer()], [new CsvEncoder()]); |
|
| 39 | + $serializer = new Serializer([new ObjectNormalizer()], [new CsvEncoder()]); |
|
| 40 | 40 | $csvData = $serializer->decode(file_get_contents($input->getArgument('file')), 'csv'); |
| 41 | 41 | $noPhotoCount = 0; |
| 42 | 42 | $notFoundCount = 0; |
| 43 | 43 | $updatedNoPhotoCount = 0; |
| 44 | 44 | $updatedExistingPhotoCount = 0; |
| 45 | - $similarityThreshold = $input->getOption("similarity-threshold"); |
|
| 45 | + $similarityThreshold = $input->getOption("similarity-threshold"); |
|
| 46 | 46 | $output->writeln('Importing facebook photos for users (> ' . $similarityThreshold . '% similar) :'); |
| 47 | 47 | foreach ($users as $user) { |
| 48 | 48 | $noPhoto = $user->imageUrl() === 'uploads/others/default-user.png'; |