Completed
Push — master ( b71e6c...5e9553 )
by
unknown
156:05 queued 101:02
created
back/src/KI/PublicationBundle/Service/CalendarService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             ;
63 63
         }
64 64
 
65
-        foreach ($courses as $course){
65
+        foreach ($courses as $course) {
66 66
             $event = $cal->newEvent();
67 67
             $name = $course->getCourse()->getName();
68 68
             if ($course->getGroup() !== 0)
Please login to merge, or discard this patch.
back/src/KI/UserBundle/Command/FacegameAchievementsCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,23 +47,23 @@
 block discarded – undo
47 47
             $wrongAnswers = $facegame->getWrongAnswers();
48 48
             $duration = $facegame->getDuration();
49 49
 
50
-            if ($wrongAnswers == 0 && $promoGame == $promoUser - 1 && $duration < 60 * 1000) {
50
+            if ($wrongAnswers == 0 && $promoGame == $promoUser - 1 && $duration < 60*1000) {
51 51
 
52 52
                 $achievementCheck = new AchievementCheckEvent(Achievement::GAME_BEFORE, $user);
53 53
                 $dispatcher->dispatch('upont.achievement', $achievementCheck);
54 54
 
55
-            } else if ($wrongAnswers == 0 && $promoGame == $promoUser && $duration < 60 * 1000) {
55
+            } else if ($wrongAnswers == 0 && $promoGame == $promoUser && $duration < 60*1000) {
56 56
 
57 57
                 $achievementCheck = new AchievementCheckEvent(Achievement::GAME_SELF, $user);
58 58
                 $dispatcher->dispatch('upont.achievement', $achievementCheck);
59 59
 
60
-            } else if ($wrongAnswers == 0 && $promoGame == $promoUser + 1 && $duration < 60 * 1000) {
60
+            } else if ($wrongAnswers == 0 && $promoGame == $promoUser + 1 && $duration < 60*1000) {
61 61
 
62 62
                 $achievementCheck = new AchievementCheckEvent(Achievement::GAME_NEXT, $user);
63 63
                 $dispatcher->dispatch('upont.achievement', $achievementCheck);
64 64
 
65 65
             }
66
-            if ($wrongAnswers == 0 && $promoGame < $promoUser && $facegame->getHardcore() && $duration < 60 * 1000) {
66
+            if ($wrongAnswers == 0 && $promoGame < $promoUser && $facegame->getHardcore() && $duration < 60*1000) {
67 67
 
68 68
                 $achievementCheck = new AchievementCheckEvent(Achievement::GAME_OLD, $user);
69 69
                 $dispatcher->dispatch('upont.achievement', $achievementCheck);
Please login to merge, or discard this patch.
back/src/KI/UserBundle/Helper/FacegameHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,23 +142,23 @@
 block discarded – undo
142 142
         $promoUser = (int)$this->tokenStorage->getToken()->getUser()->getPromo();
143 143
         $promoGame = (int)$game->getPromo();
144 144
 
145
-        if ($wrongAnswers == 0 && $promoGame == $promoUser - 1 && $duration < 60 * 1000) {
145
+        if ($wrongAnswers == 0 && $promoGame == $promoUser - 1 && $duration < 60*1000) {
146 146
 
147 147
             $achievementCheck = new AchievementCheckEvent(Achievement::GAME_BEFORE);
148 148
             $this->dispatcher->dispatch('upont.achievement', $achievementCheck);
149 149
 
150
-        } else if ($wrongAnswers == 0 && $promoGame == $promoUser && $duration < 60 * 1000) {
150
+        } else if ($wrongAnswers == 0 && $promoGame == $promoUser && $duration < 60*1000) {
151 151
 
152 152
             $achievementCheck = new AchievementCheckEvent(Achievement::GAME_SELF);
153 153
             $this->dispatcher->dispatch('upont.achievement', $achievementCheck);
154 154
 
155
-        } else if ($wrongAnswers == 0 && $promoGame == $promoUser + 1 && $duration < 60 * 1000) {
155
+        } else if ($wrongAnswers == 0 && $promoGame == $promoUser + 1 && $duration < 60*1000) {
156 156
 
157 157
             $achievementCheck = new AchievementCheckEvent(Achievement::GAME_NEXT);
158 158
             $this->dispatcher->dispatch('upont.achievement', $achievementCheck);
159 159
 
160 160
         }
161
-        if ($wrongAnswers == 0 && $promoGame < $promoUser && $game->getHardcore() && $duration < 60 * 1000) {
161
+        if ($wrongAnswers == 0 && $promoGame < $promoUser && $game->getHardcore() && $duration < 60*1000) {
162 162
 
163 163
             $achievementCheck = new AchievementCheckEvent(Achievement::GAME_OLD);
164 164
             $this->dispatcher->dispatch('upont.achievement', $achievementCheck);
Please login to merge, or discard this patch.
back/src/KI/CoreBundle/Controller/ResourceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     protected function getOne($slug, $auth = false)
38 38
     {
39 39
         $this->trust(!$this->is('EXTERIEUR') || $auth);
40
-        $item =  $this->findBySlug($slug);
40
+        $item = $this->findBySlug($slug);
41 41
         return $item;
42 42
     }
43 43
 
Please login to merge, or discard this patch.
back/src/KI/CoreBundle/Helper/FormHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function formData($item, $method, $flush = true)
39 39
     {
40 40
         // On devine le formulaire à partir du chemin de la classe
41
-        $formName = str_replace('Entity', 'Form', get_class($item)) . 'Type';
41
+        $formName = str_replace('Entity', 'Form', get_class($item)).'Type';
42 42
         $form = $this->formFactory->create($formName, $item, ['method' => $method]);
43 43
         $form->handleRequest($this->request);
44 44
         $code = 400;
Please login to merge, or discard this patch.
back/src/KI/PonthubBundle/Entity/PonthubFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     public function tags()
90 90
     {
91 91
         $tags = [];
92
-        if(is_array($this->listTags) || is_object($this->listTags)) {
92
+        if (is_array($this->listTags) || is_object($this->listTags)) {
93 93
             foreach ($this->listTags as $tag) {
94 94
                 $tags[] = $tag->getName();
95 95
             }
Please login to merge, or discard this patch.
back/src/KI/PonthubBundle/Controller/GamesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      */
124 124
     public function downloadGameAction($slug)
125 125
     {
126
-        $item =  $this->getOne($slug, !$this->is('EXTERIEUR'));
126
+        $item = $this->getOne($slug, !$this->is('EXTERIEUR'));
127 127
         return $this->download($item);
128 128
     }
129 129
 }
Please login to merge, or discard this patch.
back/src/KI/PonthubBundle/Controller/OthersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      */
124 124
     public function downloadOtherAction($slug)
125 125
     {
126
-        $item =  $this->getOne($slug, !$this->is('EXTERIEUR'));
126
+        $item = $this->getOne($slug, !$this->is('EXTERIEUR'));
127 127
         return $this->download($item);
128 128
     }
129 129
 }
Please login to merge, or discard this patch.
back/src/KI/PonthubBundle/Controller/SeriesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function getSerieEpisodesAction($slug)
125 125
     {
126
-        $episodes =  $this->getAllSub($slug, 'Episode');
126
+        $episodes = $this->getAllSub($slug, 'Episode');
127 127
 
128 128
         return $this->json($episodes);
129 129
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function getSerieEpisodeAction($slug, $id)
148 148
     {
149
-        $episode =  $this->getOneSub($slug, 'Episode', $id);
149
+        $episode = $this->getOneSub($slug, 'Episode', $id);
150 150
 
151 151
         return $this->json($episode);
152 152
     }
Please login to merge, or discard this patch.