Completed
Push — master ( b71e6c...5e9553 )
by
unknown
156:05 queued 101:02
created
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/PonthubBundle/Entity/PonthubFile.php 2 patches
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.
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/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.
back/src/KI/PonthubBundle/Controller/DefaultController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function filelistAction($token, Request $request)
45 45
     {
46
-        $path = __DIR__ . '/../../../../web/uploads/tmp/';
46
+        $path = __DIR__.'/../../../../web/uploads/tmp/';
47 47
         if ($token != $this->container->getParameter('fleur_token')) {
48 48
             return $this->json('Vous n\'avez pas le droit de faire ça', 403);
49 49
         }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
         // On récupère le contenu du fichier
57 57
         $request->files->get('filelist')->move($path, 'files.list');
58
-        $list = fopen($path . 'files.list', 'r+');
58
+        $list = fopen($path.'files.list', 'r+');
59 59
         if ($list === false) {
60 60
             throw new BadRequestHttpException('Erreur lors de l\'upload du fichier');
61 61
         }
Please login to merge, or discard this patch.
back/src/KI/PonthubBundle/Helper/GlobalStatisticsHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
         // On regarde les détails sur chaque utilisateur
43 43
         $downloaderCategories = [];
44 44
         $downloaderSeries = [
45
-            ['name' => 'Films',     'data' => []],
46
-            ['name' => 'Séries',    'data' => []],
47
-            ['name' => 'Jeux',      'data' => []],
45
+            ['name' => 'Films', 'data' => []],
46
+            ['name' => 'Séries', 'data' => []],
47
+            ['name' => 'Jeux', 'data' => []],
48 48
             ['name' => 'Logiciels', 'data' => []],
49
-            ['name' => 'Autres',    'data' => []]
49
+            ['name' => 'Autres', 'data' => []]
50 50
         ];
51 51
 
52 52
         foreach ($downloaderIds as $key => $value) {
Please login to merge, or discard this patch.
back/src/KI/PonthubBundle/Helper/StatisticsHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 block discarded – undo
44 44
             ['Autres', 0]
45 45
         ];
46 46
         $timeline = [
47
-            ['name' => 'Films',     'data' => [[$date, 0]]],
48
-            ['name' => 'Épisodes',  'data' => [[$date, 0]]],
49
-            ['name' => 'Jeux',      'data' => [[$date, 0]]],
47
+            ['name' => 'Films', 'data' => [[$date, 0]]],
48
+            ['name' => 'Épisodes', 'data' => [[$date, 0]]],
49
+            ['name' => 'Jeux', 'data' => [[$date, 0]]],
50 50
             ['name' => 'Logiciels', 'data' => [[$date, 0]]],
51
-            ['name' => 'Autres',    'data' => [[$date, 0]]]
51
+            ['name' => 'Autres', 'data' => [[$date, 0]]]
52 52
         ];
53 53
         $totalSize = 0;
54 54
         $hipster = 0;
Please login to merge, or discard this patch.
back/src/KI/FoyerBundle/Controller/TransactionsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
 
177 177
         $transaction = $this->findBySlug($id);
178 178
         $helper = $this->get('ki_foyer.helper.transaction');
179
-        $helper->updateBalance($transaction->getUser(), -1 * $transaction->getAmount());
179
+        $helper->updateBalance($transaction->getUser(), -1*$transaction->getAmount());
180 180
 
181 181
         $this->delete($id, $this->isFoyerMember());
182 182
 
Please login to merge, or discard this patch.