Passed
Pull Request — 1.3.x (#115)
by Grégoire
09:46
created
lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 class_alias(
12 12
     \Doctrine\Persistence\Mapping\Driver\FileDriver::class,
13
-    __NAMESPACE__ . '\FileDriver'
13
+    __NAMESPACE__.'\FileDriver'
14 14
 );
15 15
 
16 16
 if (false) {
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 class_alias(
12 12
     \Doctrine\Persistence\Mapping\Driver\AnnotationDriver::class,
13
-    __NAMESPACE__ . '\AnnotationDriver'
13
+    __NAMESPACE__.'\AnnotationDriver'
14 14
 );
15 15
 
16 16
 if (false) {
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 class_alias(
12 12
     \Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator::class,
13
-    __NAMESPACE__ . '\SymfonyFileLocator'
13
+    __NAMESPACE__.'\SymfonyFileLocator'
14 14
 );
15 15
 
16 16
 if (false) {
Please login to merge, or discard this patch.
lib/Doctrine/Persistence/Mapping/RuntimeReflectionService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function getParentClasses($class)
35 35
     {
36
-        if (! class_exists($class)) {
36
+        if (!class_exists($class)) {
37 37
             throw MappingException::nonExistingClass($class);
38 38
         }
39 39
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         if ($reflectionProperty->isPublic()) {
79 79
             $reflectionProperty = new RuntimePublicReflectionProperty($class, $property);
80
-        } elseif ($this->supportsTypedPropertiesWorkaround && ! array_key_exists($property, $this->getClass($class)->getDefaultProperties())) {
80
+        } elseif ($this->supportsTypedPropertiesWorkaround && !array_key_exists($property, $this->getClass($class)->getDefaultProperties())) {
81 81
             $reflectionProperty = new TypedNoDefaultReflectionProperty($class, $property);
82 82
         }
83 83
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Persistence/Mapping/SymfonyFileLocatorTest.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function testGetPaths()
16 16
     {
17
-        $path   = __DIR__ . '/_files';
17
+        $path   = __DIR__.'/_files';
18 18
         $prefix = 'Foo';
19 19
 
20 20
         $locator = new SymfonyFileLocator([$path => $prefix]);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function testGetPrefixes()
28 28
     {
29
-        $path   = __DIR__ . '/_files';
29
+        $path   = __DIR__.'/_files';
30 30
         $prefix = 'Foo';
31 31
 
32 32
         $locator = new SymfonyFileLocator([$path => $prefix]);
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function testFileExists()
45 45
     {
46
-        $path   = __DIR__ . '/_files';
46
+        $path   = __DIR__.'/_files';
47 47
         $prefix = 'Foo';
48 48
 
49 49
         $locator = new SymfonyFileLocator([$path => $prefix], '.yml');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function testGetAllClassNames()
58 58
     {
59
-        $path   = __DIR__ . '/_files';
59
+        $path   = __DIR__.'/_files';
60 60
         $prefix = 'Foo';
61 61
 
62 62
         $locator       = new SymfonyFileLocator([$path => $prefix], '.yml');
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $this->expectException(InvalidArgumentException::class);
81 81
         $this->expectExceptionMessage('Namespace separator should not be empty');
82
-        $path   = __DIR__ . '/_files';
82
+        $path   = __DIR__.'/_files';
83 83
         $prefix = 'Foo';
84 84
 
85 85
         new SymfonyFileLocator([$path => $prefix], '.yml', null);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function testGetClassNamesWithCustomNsSeparator($separator, $dir)
105 105
     {
106
-        $path   = __DIR__ . $dir;
106
+        $path   = __DIR__.$dir;
107 107
         $prefix = 'Foo';
108 108
 
109 109
         $locator = new SymfonyFileLocator([$path => $prefix], '.yml', $separator);
@@ -148,29 +148,29 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function testFindMappingFileWithCustomNsSeparator($separator, $dir, $files)
150 150
     {
151
-        $path   = __DIR__ . $dir;
151
+        $path   = __DIR__.$dir;
152 152
         $prefix = 'Foo';
153 153
 
154 154
         $locator = new SymfonyFileLocator([$path => $prefix], '.yml', $separator);
155 155
 
156 156
         foreach ($files as $filePath => $className) {
157
-            self::assertSame(realpath($path . '/' . $filePath), realpath($locator->findMappingFile($className)));
157
+            self::assertSame(realpath($path.'/'.$filePath), realpath($locator->findMappingFile($className)));
158 158
         }
159 159
     }
160 160
 
161 161
     public function testFindMappingFile()
162 162
     {
163
-        $path   = __DIR__ . '/_files';
163
+        $path   = __DIR__.'/_files';
164 164
         $prefix = 'Foo';
165 165
 
166 166
         $locator = new SymfonyFileLocator([$path => $prefix], '.yml');
167 167
 
168
-        self::assertSame(__DIR__ . '/_files/stdClass.yml', $locator->findMappingFile('Foo\\stdClass'));
168
+        self::assertSame(__DIR__.'/_files/stdClass.yml', $locator->findMappingFile('Foo\\stdClass'));
169 169
     }
170 170
 
171 171
     public function testFindMappingFileNotFound()
172 172
     {
173
-        $path   = __DIR__ . '/_files';
173
+        $path   = __DIR__.'/_files';
174 174
         $prefix = 'Foo';
175 175
 
176 176
         $locator = new SymfonyFileLocator([$path => $prefix], '.yml');
@@ -184,13 +184,13 @@  discard block
 block discarded – undo
184 184
     {
185 185
         // Low -> High
186 186
         $prefixes                             = [];
187
-        $prefixes[__DIR__ . '/_match_ns']     = 'Foo';
188
-        $prefixes[__DIR__ . '/_match_ns/Bar'] = 'Foo\\Bar';
187
+        $prefixes[__DIR__.'/_match_ns']     = 'Foo';
188
+        $prefixes[__DIR__.'/_match_ns/Bar'] = 'Foo\\Bar';
189 189
 
190 190
         $locator = new SymfonyFileLocator($prefixes, '.yml');
191 191
 
192 192
         self::assertSame(
193
-            __DIR__ . '/_match_ns/Bar/barEntity.yml',
193
+            __DIR__.'/_match_ns/Bar/barEntity.yml',
194 194
             $locator->findMappingFile("Foo\\Bar\\barEntity")
195 195
         );
196 196
     }
@@ -198,13 +198,13 @@  discard block
 block discarded – undo
198 198
     public function testFindMappingFileMostSpecificNamespaceFirst()
199 199
     {
200 200
         $prefixes                             = [];
201
-        $prefixes[__DIR__ . '/_match_ns/Bar'] = 'Foo\\Bar';
202
-        $prefixes[__DIR__ . '/_match_ns']     = 'Foo';
201
+        $prefixes[__DIR__.'/_match_ns/Bar'] = 'Foo\\Bar';
202
+        $prefixes[__DIR__.'/_match_ns']     = 'Foo';
203 203
 
204 204
         $locator = new SymfonyFileLocator($prefixes, '.yml');
205 205
 
206 206
         self::assertSame(
207
-            __DIR__ . '/_match_ns/Bar/barEntity.yml',
207
+            __DIR__.'/_match_ns/Bar/barEntity.yml',
208 208
             $locator->findMappingFile("Foo\\Bar\\barEntity")
209 209
         );
210 210
     }
Please login to merge, or discard this patch.