Completed
Push — master ( 923939...b71e6c )
by
unknown
102:02 queued 47:03
created
back/src/KI/UserBundle/Repository/UserRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
back/src/KI/PonthubBundle/Entity/PonthubFile.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -410,9 +410,9 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
back/src/KI/CoreBundle/Controller/CoreController.php 1 patch
Switch Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@
 block discarded – undo
86 86
     public function formJson($data)
87 87
     {
88 88
         switch ($data['code']) {
89
-            case 400:
90
-                return $this->json($data['form'], $data['code']);
91
-            case 204:
92
-            default:
93
-                return $this->json($data['item'], $data['code']);
89
+        case 400:
90
+            return $this->json($data['form'], $data['code']);
91
+        case 204:
92
+        default:
93
+            return $this->json($data['item'], $data['code']);
94 94
         }
95 95
     }
96 96
 
Please login to merge, or discard this patch.
back/var/SymfonyRequirements.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -786,14 +786,14 @@
 block discarded – undo
786 786
             $size = (int) substr($size, 0, -1);
787 787
         }
788 788
         switch ($unit) {
789
-            case 'g':
790
-                return $size * 1024 * 1024 * 1024;
791
-            case 'm':
792
-                return $size * 1024 * 1024;
793
-            case 'k':
794
-                return $size * 1024;
795
-            default:
796
-                return (int) $size;
789
+        case 'g':
790
+            return $size * 1024 * 1024 * 1024;
791
+        case 'm':
792
+            return $size * 1024 * 1024;
793
+        case 'k':
794
+            return $size * 1024;
795
+        default:
796
+            return (int) $size;
797 797
         }
798 798
     }
799 799
 
Please login to merge, or discard this patch.
back/src/KI/UserBundle/Listener/FacebookImportUserRegistrationListener.php 1 patch
Switch Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -33,26 +33,26 @@
 block discarded – undo
33 33
         switch ($user->getPromo()) {
34 34
             // Attention, toujours préciser l'id facebook de la promo d'après
35 35
             // pour avoir les étrangers
36
-            case '015':
37
-                $id = '359646667495742';
38
-                break;  // Wei't spirit
39
-            case '016':
40
-                $id = '1451446761806184';
41
-                break; // Wei't the phoque
42
-            case '017':
43
-                $id = '737969042997359';
44
-                break;  // F'wei'ght Club
45
-            case '018':
46
-                $id = '1739424532975028';
47
-                break;  // WEI'STED
48
-            case '019':
49
-                $id = '313192685791329';
50
-                break;  // WEI'T FOR IT
51
-            case '020':
52
-                $id = '313192685791329';
53
-                break;  // WEI'T FOR IT
54
-            default:
55
-                return;
36
+        case '015':
37
+            $id = '359646667495742';
38
+            break;  // Wei't spirit
39
+        case '016':
40
+            $id = '1451446761806184';
41
+            break; // Wei't the phoque
42
+        case '017':
43
+            $id = '737969042997359';
44
+            break;  // F'wei'ght Club
45
+        case '018':
46
+            $id = '1739424532975028';
47
+            break;  // WEI'STED
48
+        case '019':
49
+            $id = '313192685791329';
50
+            break;  // WEI'T FOR IT
51
+        case '020':
52
+            $id = '313192685791329';
53
+            break;  // WEI'T FOR IT
54
+        default:
55
+            return;
56 56
         }
57 57
 
58 58
         // On récupère la liste des membres
Please login to merge, or discard this patch.
back/tests/KI/UserBundle/Command/DepartmentUpdateCommandTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
back/src/KI/UserBundle/Controller/DefaultController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
back/src/KI/UserBundle/Command/PhotoUpdateCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.