Completed
Push — master ( 923939...b71e6c )
by
unknown
102:02 queued 47:03
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/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.