Completed
Pull Request — master (#13)
by Alexandre
13:17 queued 11:14
created
src/AppBundle/Cart/Cart.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@
 block discarded – undo
61 61
         $this->addRow($row);
62 62
     }
63 63
 
64
+    /**
65
+     * @param integer $quantity
66
+     */
64 67
     public function setMeal(Meal $meal, $quantity)
65 68
     {
66 69
         if ($quantity == 0) {
Please login to merge, or discard this patch.
src/AppBundle/Controller/AdminOrderController.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -2,17 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace AppBundle\Controller;
4 4
 
5
-use AppBundle\Cart\Cart;
6
-use AppBundle\Cart\CartSerializer;
7 5
 use AppBundle\Entity\Order;
8
-use AppBundle\Event\OrderEvent;
9
-use AppBundle\Event\OrderEvents;
10
-use AppBundle\Form\Type\OrderType;
11 6
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
12 7
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
13 8
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
14 9
 use Symfony\Component\HttpFoundation\Request;
15
-use Symfony\Component\HttpFoundation\Response;
16 10
 
17 11
 class AdminOrderController extends Controller
18 12
 {
Please login to merge, or discard this patch.
src/AppBundle/Service/Planning.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                 $hours = $this->workDayHours;
41 41
             }
42 42
 
43
-            $vals = array_map(function ($val) use ($date) {
43
+            $vals = array_map(function($val) use ($date) {
44 44
                 return $date.' // '.$val;
45 45
             }, $hours);
46 46
             $result[$date] = array_combine($vals, $vals);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace AppBundle\Service;
4 4
 
5
-use AppBundle\Entity\Holiday;
6 5
 use AppBundle\Service\Loader\HolidayLoaderInterface;
7 6
 
8 7
 class Planning
Please login to merge, or discard this patch.
src/AppBundle/Util/Uuid.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,24 +6,24 @@
 block discarded – undo
6 6
 {
7 7
     static public function generateV4()
8 8
     {
9
-        return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
9
+        return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
10 10
             // 32 bits for "time_low"
11
-            mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),
11
+            mt_rand(0, 0xffff), mt_rand(0, 0xffff),
12 12
 
13 13
             // 16 bits for "time_mid"
14
-            mt_rand( 0, 0xffff ),
14
+            mt_rand(0, 0xffff),
15 15
 
16 16
             // 16 bits for "time_hi_and_version",
17 17
             // four most significant bits holds version number 4
18
-            mt_rand( 0, 0x0fff ) | 0x4000,
18
+            mt_rand(0, 0x0fff) | 0x4000,
19 19
 
20 20
             // 16 bits, 8 bits for "clk_seq_hi_res",
21 21
             // 8 bits for "clk_seq_low",
22 22
             // two most significant bits holds zero and one for variant DCE1.1
23
-            mt_rand( 0, 0x3fff ) | 0x8000,
23
+            mt_rand(0, 0x3fff) | 0x8000,
24 24
 
25 25
             // 48 bits for "node"
26
-            mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )
26
+            mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
27 27
         );
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/AppBundle/Controller/AdminMenuController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
10 10
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
11 11
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
12
-use Symfony\Component\Form\Extension\Core\Type\SubmitType;
13 12
 use Symfony\Component\HttpFoundation\Request;
14 13
 
15 14
 class AdminMenuController extends Controller
Please login to merge, or discard this patch.
src/AppBundle/Entity/Category.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
-        usort($meals, function ($left, $right) {
65
+        usort($meals, function($left, $right) {
66 66
             return $left->getPosition() > $right->getPosition();
67 67
         });
68 68
 
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/PriceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         $resolver->setDefaults(array(
33 33
             'data_class' => Price::class,
34
-            'empty_data' => function (FormInterface $form) {
34
+            'empty_data' => function(FormInterface $form) {
35 35
                 return new Price(
36 36
                     $form->get('amount')->getData()
37 37
                 );
Please login to merge, or discard this patch.
src/AppBundle/Service/PhotoService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     private $sizes = array(
24 24
         '300'  => array(300, 100),
25
-        '800' => array(800,  600),
25
+        '800' => array(800, 600),
26 26
     );
27 27
 
28 28
     public function __construct($uploadsDir, $uploadsUriPrefix)
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/MealType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             ))
61 61
         ;
62 62
 
63
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
63
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
64 64
             $form = $event->getForm();
65 65
 
66 66
             $meal = $form->getData();
Please login to merge, or discard this patch.