Passed
Push — master ( 59ef72...ed809e )
by Gerrit
04:43
created
Tests/Mapping/Drivers/MappingXmlDriverTest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14 14
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
15
-use Addiks\RDMBundle\Mapping\Annotation\Service;
16
-use ReflectionProperty;
17 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
18 16
 use Doctrine\Common\Persistence\Mapping\Driver\FileLocator;
19 17
 use Addiks\RDMBundle\Mapping\Drivers\MappingXmlDriver;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $this->mappingDriver = new MappingXmlDriver(
44 44
             $this->fileLocator,
45
-            realpath(__DIR__ . "/../../../Resources/mapping-schema.v1.xsd")
45
+            realpath(__DIR__."/../../../Resources/mapping-schema.v1.xsd")
46 46
         );
47 47
     }
48 48
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function shouldReadMappingData()
53 53
     {
54 54
         /** @var string $mappingFilePath */
55
-        $mappingFilePath = __DIR__ . "/EntityExample.orm.xml";
55
+        $mappingFilePath = __DIR__."/EntityExample.orm.xml";
56 56
 
57 57
         $expectedMapping = new EntityMapping(EntityExample::class, [
58 58
             'foo' => new ServiceMapping('some_service', false, "in file '{$mappingFilePath}'"),
Please login to merge, or discard this patch.
Tests/Mapping/Drivers/MappingYamlDriverTest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14 14
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
15
-use Addiks\RDMBundle\Mapping\Annotation\Service;
16
-use ReflectionProperty;
17 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
18 16
 use Doctrine\Common\Persistence\Mapping\Driver\FileLocator;
19 17
 use Addiks\RDMBundle\Mapping\Drivers\MappingYamlDriver;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     public function shouldReadMappingData()
50 50
     {
51 51
         /** @var string $mappingFilePath */
52
-        $mappingFilePath = __DIR__ . "/EntityExample.orm.yml";
52
+        $mappingFilePath = __DIR__."/EntityExample.orm.yml";
53 53
 
54 54
         $expectedMapping = new EntityMapping(EntityExample::class, [
55 55
             'foo' => new ServiceMapping('some_service', false, "in file '{$mappingFilePath}'"),
Please login to merge, or discard this patch.
Tests/ValueResolver/ChoiceValueResolverTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Addiks\RDMBundle\Mapping\ChoiceMapping;
17 17
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
18 18
 use Addiks\RDMBundle\Mapping\ServiceMapping;
19
-use Addiks\RDMBundle\Mapping\MappingInterface;
20 19
 
21 20
 final class ChoiceValueResolverTest extends TestCase
22 21
 {
Please login to merge, or discard this patch.
ValueResolver/ChoiceValueResolver.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
                     $choiceMapping,
98 98
                     $entity,
99 99
                     [] # <= I'm not sure how this parameter should be handled correctly in the future,
100
-                       #    but with the current supported features it *should* be irrelevant.
100
+                        #    but with the current supported features it *should* be irrelevant.
101 101
                 );
102 102
 
103 103
                 if ($choiceValue === $valueFromEntityField) {
Please login to merge, or discard this patch.
Mapping/ChoiceMapping.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     ) {
46 46
         if (!$determinatorColumn instanceof Column) {
47 47
             $determinatorColumn = new Column(
48
-                (string)$determinatorColumn,
48
+                (string) $determinatorColumn,
49 49
                 Type::getType('string'),
50 50
                 [
51 51
                     'notnull' => false,
Please login to merge, or discard this patch.
Mapping/Drivers/MappingAnnotationDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
                 $column->type = 'string';
116 116
                 $column->length = 255;
117 117
                 $column->unique = false;
118
-                $column->nullable = (bool)$annotation->nullable;
118
+                $column->nullable = (bool) $annotation->nullable;
119 119
             }
120 120
 
121 121
             $dbalColumn = new DBALColumn(
Please login to merge, or discard this patch.
Tests/Mapping/Drivers/MappingAnnotationDriverTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         ];
71 71
 
72 72
         $this->annotationReader->method('getPropertyAnnotations')->will($this->returnCallback(
73
-            function (ReflectionProperty $propertyReflection) use ($annotationMap) {
73
+            function(ReflectionProperty $propertyReflection) use ($annotationMap) {
74 74
                 if (isset($annotationMap[$propertyReflection->getName()])) {
75 75
                     return $annotationMap[$propertyReflection->getName()];
76 76
                 } else {
Please login to merge, or discard this patch.
Tests/Symfony/FormType/ServiceFormTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $modelTransformer = null;
50 50
 
51 51
         $builder->expects($this->once())->method('addModelTransformer')->will($this->returnCallback(
52
-            function ($calledModelTransformer) use (&$modelTransformer) {
52
+            function($calledModelTransformer) use (&$modelTransformer) {
53 53
                 $modelTransformer = $calledModelTransformer;
54 54
             }
55 55
         ));
Please login to merge, or discard this patch.