@@ -12,8 +12,6 @@ |
||
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; |
@@ -42,7 +42,7 @@ discard block |
||
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 |
||
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}'"), |
@@ -12,8 +12,6 @@ |
||
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; |
@@ -49,7 +49,7 @@ |
||
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}'"), |
@@ -16,7 +16,6 @@ |
||
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 | { |
@@ -97,7 +97,7 @@ |
||
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) { |
@@ -45,7 +45,7 @@ |
||
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, |
@@ -115,7 +115,7 @@ |
||
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( |
@@ -70,7 +70,7 @@ |
||
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 { |
@@ -49,7 +49,7 @@ |
||
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 | )); |