Completed
Push — master ( b71e6c...5e9553 )
by
unknown
156:05 queued 101:02
created
back/src/KI/FoyerBundle/Helper/TransactionHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@
 block discarded – undo
108 108
         if($newBalance < 0){
109 109
             if($balance >= 0) {
110 110
                 $negativeBalance = new UserNegativeBalanceEvent($user, true);
111
-            }
112
-            else {
111
+            } else {
113 112
                 $negativeBalance = new UserNegativeBalanceEvent($user, false);
114 113
             }
115 114
             $this->eventDispatcher->dispatch('upont.negative_balance', $negativeBalance);
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/src/KI/UserBundle/Command/DepartmentUpdateCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
32 32
             $list = fopen($input->getArgument('usernames'), 'r+');
33 33
             $usernames = str_replace(["\r", "\n"], ['', ''], fgets($list));
34 34
             $usernameArray = explode(',', $usernames);
35
-        }
36
-        else {
35
+        } else {
37 36
             $usernameArray = explode(',', $input->getArgument('usernames'));
38 37
         }
39 38
 
@@ -42,8 +41,7 @@  discard block
 block discarded – undo
42 41
             if ($user) {
43 42
                 $user->setDepartment($input->getArgument('department'));
44 43
                 $successCount++;
45
-            }
46
-            else {
44
+            } else {
47 45
                 $output->writeln('<error>Username '.$username.' n\'existe pas</error>');
48 46
             }
49 47
         }
Please login to merge, or discard this patch.
back/src/KI/UserBundle/Command/ClubUpdateCommand.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         if ($input->getOption('all')) {
35 35
             $clubsToUpdate = $userRepo->findAll();
36
-        }
37
-        else {
36
+        } else {
38 37
             $clubsToUpdate = array_map([$userRepo, 'findOneBySlug'], $clubSlugs);
39 38
         }
40 39
 
@@ -50,17 +49,14 @@  discard block
 block discarded – undo
50 49
             if ($countUsers == 0 && $clubToUpdate->getActive()) {
51 50
                 if ($input->getOption('preview')) {
52 51
                     $output->writeln('<comment>'.$clubToUpdate->getFullName().' to be disabled'.'</comment>');
53
-                }
54
-                else {
52
+                } else {
55 53
                     $clubToUpdate->setActive(false);
56 54
                     $output->writeln('<comment>'.$clubToUpdate->getFullName().' disabled'.'</comment>');
57 55
                 }
58
-            }
59
-            else if ($countUsers > 0 && !$clubToUpdate->getActive()) {
56
+            } else if ($countUsers > 0 && !$clubToUpdate->getActive()) {
60 57
                 if ($input->getOption('preview')) {
61 58
                     $output->writeln('<info>'.$clubToUpdate->getFullName().' to be enabled'.'</info>');
62
-                }
63
-                else {
59
+                } else {
64 60
                     $clubToUpdate->setActive(true);
65 61
                     $output->writeln('<info>'.$clubToUpdate->getFullName().' enabled'.'</info>');
66 62
                 }
Please login to merge, or discard this patch.
back/src/KI/UserBundle/Command/PhotoUpdateCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
                             $user->setImage($image);
79 79
                         }
80 80
                     }
81
-                }
82
-                else {
81
+                } else {
83 82
                     $notFoundCount++;
84 83
                 }
85 84
                 $em->flush();
@@ -96,8 +95,7 @@  discard block
 block discarded – undo
96 95
                 'Not found photos: ' . $notFoundCount,
97 96
                 'Replaced photos: ' . $updatedExistingPhotoCount,
98 97
             ]);
99
-        }
100
-        else {
98
+        } else {
101 99
             $output->writeln([
102 100
                 'Missing photos in promo : ' . $noPhotoCount,
103 101
                 'Imported missing photos: ' . $updatedNoPhotoCount,
Please login to merge, or discard this patch.