Completed
Pull Request — 1.4.x (#111)
by
unknown
02:45
created
Doctrine/Tests/Common/Persistence/Mapping/TestClassMetadataFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     protected function getFqcnFromAlias($namespaceAlias, $simpleClassName)
37 37
     {
38
-        return __NAMESPACE__ . '\\' . $simpleClassName;
38
+        return __NAMESPACE__.'\\'.$simpleClassName;
39 39
     }
40 40
 
41 41
     protected function initialize()
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     protected function onNotFoundMetadata($className)
68 68
     {
69
-        if (! $this->fallbackCallback) {
69
+        if (!$this->fallbackCallback) {
70 70
             return null;
71 71
         }
72 72
 
Please login to merge, or discard this patch.
lib/Doctrine/Persistence/Mapping/AbstractClassMetadataFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function getAllMetadata()
81 81
     {
82
-        if (! $this->initialized) {
82
+        if (!$this->initialized) {
83 83
             $this->initialize();
84 84
         }
85 85
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 
175 175
         try {
176 176
             if ($this->cacheDriver) {
177
-                $cached = $this->cacheDriver->fetch($realClassName . $this->cacheSalt);
177
+                $cached = $this->cacheDriver->fetch($realClassName.$this->cacheSalt);
178 178
                 if ($cached instanceof ClassMetadata) {
179 179
                     $this->loadedMetadata[$realClassName] = $cached;
180 180
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                 } else {
183 183
                     foreach ($this->loadMetadata($realClassName) as $loadedClassName) {
184 184
                         $this->cacheDriver->save(
185
-                            $loadedClassName . $this->cacheSalt,
185
+                            $loadedClassName.$this->cacheSalt,
186 186
                             $this->loadedMetadata[$loadedClassName]
187 187
                         );
188 188
                     }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         } catch (MappingException $loadingException) {
194 194
             $fallbackMetadataResponse = $this->onNotFoundMetadata($realClassName);
195 195
 
196
-            if (! $fallbackMetadataResponse) {
196
+            if (!$fallbackMetadataResponse) {
197 197
                 throw $loadingException;
198 198
             }
199 199
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      */
275 275
     protected function loadMetadata($name)
276 276
     {
277
-        if (! $this->initialized) {
277
+        if (!$this->initialized) {
278 278
             $this->initialize();
279 279
         }
280 280
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      */
362 362
     public function isTransient($class)
363 363
     {
364
-        if (! $this->initialized) {
364
+        if (!$this->initialized) {
365 365
             $this->initialize();
366 366
         }
367 367
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      */
403 403
     private function getRealClass(string $class) : string
404 404
     {
405
-        $pos = strrpos($class, '\\' . Proxy::MARKER . '\\');
405
+        $pos = strrpos($class, '\\'.Proxy::MARKER.'\\');
406 406
 
407 407
         if ($pos === false) {
408 408
             return $class;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $locator->expects($this->once())
37 37
                 ->method('findMappingFile')
38 38
                 ->with($this->equalTo('stdClass'))
39
-                ->will($this->returnValue(__DIR__ . '/_files/stdClass.yml'));
39
+                ->will($this->returnValue(__DIR__.'/_files/stdClass.yml'));
40 40
 
41 41
         $driver = new TestFileDriver($locator);
42 42
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $locator->expects($this->once())
52 52
             ->method('findMappingFile')
53 53
             ->with($this->equalTo('stdClass'))
54
-            ->will($this->returnValue(__DIR__ . '/_files/stdClass.yml'));
54
+            ->will($this->returnValue(__DIR__.'/_files/stdClass.yml'));
55 55
 
56 56
         $driver = new TestFileDriver($locator);
57 57
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     public function testNonLocatorFallback()
134 134
     {
135
-        $driver = new TestFileDriver(__DIR__ . '/_files', '.yml');
135
+        $driver = new TestFileDriver(__DIR__.'/_files', '.yml');
136 136
         self::assertTrue($driver->isTransient('stdClass2'));
137 137
         self::assertFalse($driver->isTransient('stdClass'));
138 138
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     {
142 142
         $locator = $this->createMock(FileLocator::class);
143 143
         $locator->expects($this->any())->method('getFileExtension')->will($this->returnValue('.yml'));
144
-        $locator->expects($this->any())->method('getPaths')->will($this->returnValue([__DIR__ . '/_files']));
144
+        $locator->expects($this->any())->method('getPaths')->will($this->returnValue([__DIR__.'/_files']));
145 145
 
146 146
         return $locator;
147 147
     }
Please login to merge, or discard this patch.
lib/Doctrine/Common/NotifyPropertyChanged.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use function sprintf;
9 9
 use function trigger_error;
10 10
 
11
-if (! interface_exists(\Doctrine\Persistence\NotifyPropertyChanged::class, false)) {
11
+if (!interface_exists(\Doctrine\Persistence\NotifyPropertyChanged::class, false)) {
12 12
     @trigger_error(sprintf(
13 13
         'The %s\NotifyPropertyChanged class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14 14
         . ' Use \Doctrine\Persistence\NotifyPropertyChanged instead.',
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 class_alias(
20 20
     \Doctrine\Persistence\NotifyPropertyChanged::class,
21
-    __NAMESPACE__ . '\NotifyPropertyChanged'
21
+    __NAMESPACE__.'\NotifyPropertyChanged'
22 22
 );
23 23
 
24 24
 if (false) {
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/ObjectManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use function sprintf;
9 9
 use function trigger_error;
10 10
 
11
-if (! interface_exists(\Doctrine\Persistence\ObjectManager::class, false)) {
11
+if (!interface_exists(\Doctrine\Persistence\ObjectManager::class, false)) {
12 12
     @trigger_error(sprintf(
13 13
         'The %s\ObjectManager class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14 14
         . ' Use \Doctrine\Persistence\ObjectManager instead.',
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 class_alias(
20 20
     \Doctrine\Persistence\ObjectManager::class,
21
-    __NAMESPACE__ . '\ObjectManager'
21
+    __NAMESPACE__.'\ObjectManager'
22 22
 );
23 23
 
24 24
 if (false) {
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use function sprintf;
9 9
 use function trigger_error;
10 10
 
11
-if (! class_exists(\Doctrine\Persistence\AbstractManagerRegistry::class, false)) {
11
+if (!class_exists(\Doctrine\Persistence\AbstractManagerRegistry::class, false)) {
12 12
     @trigger_error(sprintf(
13 13
         'The %s\AbstractManagerRegistry class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14 14
         . ' Use \Doctrine\Persistence\AbstractManagerRegistry instead.',
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 class_alias(
20 20
     \Doctrine\Persistence\AbstractManagerRegistry::class,
21
-    __NAMESPACE__ . '\AbstractManagerRegistry'
21
+    __NAMESPACE__.'\AbstractManagerRegistry'
22 22
 );
23 23
 
24 24
 if (false) {
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/ObjectManagerAware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use function sprintf;
9 9
 use function trigger_error;
10 10
 
11
-if (! interface_exists(\Doctrine\Persistence\ObjectManagerAware::class, false)) {
11
+if (!interface_exists(\Doctrine\Persistence\ObjectManagerAware::class, false)) {
12 12
     @trigger_error(sprintf(
13 13
         'The %s\ObjectManagerAware class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14 14
         . ' Use \Doctrine\Persistence\ObjectManagerAware instead.',
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 class_alias(
20 20
     \Doctrine\Persistence\ObjectManagerAware::class,
21
-    __NAMESPACE__ . '\ObjectManagerAware'
21
+    __NAMESPACE__.'\ObjectManagerAware'
22 22
 );
23 23
 
24 24
 if (false) {
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Mapping/ReflectionService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use function sprintf;
9 9
 use function trigger_error;
10 10
 
11
-if (! interface_exists(\Doctrine\Persistence\Mapping\ReflectionService::class, false)) {
11
+if (!interface_exists(\Doctrine\Persistence\Mapping\ReflectionService::class, false)) {
12 12
     @trigger_error(sprintf(
13 13
         'The %s\ReflectionService class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14 14
         . ' Use \Doctrine\Persistence\Mapping\ReflectionService instead.',
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 class_alias(
20 20
     \Doctrine\Persistence\Mapping\ReflectionService::class,
21
-    __NAMESPACE__ . '\ReflectionService'
21
+    __NAMESPACE__.'\ReflectionService'
22 22
 );
23 23
 
24 24
 if (false) {
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Mapping/StaticReflectionService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use function sprintf;
9 9
 use function trigger_error;
10 10
 
11
-if (! class_exists(\Doctrine\Persistence\Mapping\StaticReflectionService::class, false)) {
11
+if (!class_exists(\Doctrine\Persistence\Mapping\StaticReflectionService::class, false)) {
12 12
     @trigger_error(sprintf(
13 13
         'The %s\StaticReflectionService class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14 14
         . ' Use \Doctrine\Persistence\Mapping\StaticReflectionService instead.',
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 class_alias(
20 20
     \Doctrine\Persistence\Mapping\StaticReflectionService::class,
21
-    __NAMESPACE__ . '\StaticReflectionService'
21
+    __NAMESPACE__.'\StaticReflectionService'
22 22
 );
23 23
 
24 24
 if (false) {
Please login to merge, or discard this patch.