Completed
Pull Request — master (#2)
by Samuel
04:21
created
src/DataFixtures/VehicleFixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function load(ObjectManager $manager)
13 13
     {
14 14
         foreach (self::getVehicles() as $id => $data) {
15
-            switch($data['class']) {
15
+            switch ($data['class']) {
16 16
                 case Car::class:
17 17
                     $vehicle = new Car($id, $data['manufacturer'], $data['model'], $data['seats']);
18 18
                     break;
Please login to merge, or discard this patch.
src/Common/App/Expression/IdFromGlobalId.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         parent::__construct(
13 13
             $name,
14
-            function ($globalId) {
14
+            function($globalId) {
15 15
                 return sprintf(
16 16
                     '\%s::getIdFromGlobalId(%s)',
17 17
                     AppGlobalId::class,
Please login to merge, or discard this patch.
src/Common/App/Transformer/AppGlobalId.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 class AppGlobalId extends GlobalId
8 8
 {
9 9
     /**
10
-     * @param $globalId
10
+     * @param string $globalId
11 11
      * @return int|null
12 12
      */
13 13
     public static function getIdFromGlobalId(?string $globalId): ?string
Please login to merge, or discard this patch.
src/Vehicle/App/Mutation/CarMutation.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 GraphQL\Error\UserError;
10 10
 use Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface;
11 11
 use Overblog\GraphQLBundle\Definition\Resolver\MutationInterface;
12
-use Symfony\Component\Form\FormFactoryInterface;
13 12
 use Symfony\Component\Validator\Validator\ValidatorInterface;
14 13
 
15 14
 class CarMutation implements MutationInterface, AliasedInterface
Please login to merge, or discard this patch.