Passed
Push — types ( dc70ba...f34b39 )
by Jonathan
02:44
created
lib/Doctrine/Persistence/AbstractManagerRegistry.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $name = $this->defaultConnection;
92 92
         }
93 93
 
94
-        if (! isset($this->connections[$name])) {
94
+        if (!isset($this->connections[$name])) {
95 95
             throw new InvalidArgumentException(
96 96
                 sprintf('Doctrine %s Connection named "%s" does not exist.', $this->name, $name)
97 97
             );
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             $name = $this->defaultManager;
149 149
         }
150 150
 
151
-        if (! isset($this->managers[$name])) {
151
+        if (!isset($this->managers[$name])) {
152 152
             throw new InvalidArgumentException(
153 153
                 sprintf('Doctrine %s Manager named "%s" does not exist.', $this->name, $name)
154 154
             );
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         if (strpos($class, ':') !== false) {
170 170
             [$namespaceAlias, $simpleClassName] = explode(':', $class, 2);
171 171
 
172
-            $class = $this->getAliasNamespace($namespaceAlias) . '\\' . $simpleClassName;
172
+            $class = $this->getAliasNamespace($namespaceAlias).'\\'.$simpleClassName;
173 173
         }
174 174
 
175 175
         $proxyClass = new ReflectionClass($class);
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             /** @var ObjectManager $manager */
189 189
             $manager = $this->getService($id);
190 190
 
191
-            if (! $manager->getMetadataFactory()->isTransient($class)) {
191
+            if (!$manager->getMetadataFactory()->isTransient($class)) {
192 192
                 return $manager;
193 193
             }
194 194
         }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             $name = $this->defaultManager;
248 248
         }
249 249
 
250
-        if (! isset($this->managers[$name])) {
250
+        if (!isset($this->managers[$name])) {
251 251
             throw new InvalidArgumentException(sprintf('Doctrine %s Manager named "%s" does not exist.', $this->name, $name));
252 252
         }
253 253
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Persistence/Mapping/DefaultFileLocatorTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function testGetPaths() : void
16 16
     {
17
-        $path = __DIR__ . '/_files';
17
+        $path = __DIR__.'/_files';
18 18
 
19 19
         $locator = new DefaultFileLocator([$path]);
20 20
         self::assertSame([$path], $locator->getPaths());
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function testUniquePaths() : void
35 35
     {
36
-        $path = __DIR__ . '/_files';
36
+        $path = __DIR__.'/_files';
37 37
 
38 38
         $locator = new DefaultFileLocator([$path, $path]);
39 39
         self::assertSame([$path], $locator->getPaths());
@@ -41,16 +41,16 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function testFindMappingFile() : void
43 43
     {
44
-        $path = __DIR__ . '/_files';
44
+        $path = __DIR__.'/_files';
45 45
 
46 46
         $locator = new DefaultFileLocator([$path], '.yml');
47 47
 
48
-        self::assertSame(__DIR__ . '/_files' . DIRECTORY_SEPARATOR . 'stdClass.yml', $locator->findMappingFile('stdClass'));
48
+        self::assertSame(__DIR__.'/_files'.DIRECTORY_SEPARATOR.'stdClass.yml', $locator->findMappingFile('stdClass'));
49 49
     }
50 50
 
51 51
     public function testFindMappingFileNotFound() : void
52 52
     {
53
-        $path = __DIR__ . '/_files';
53
+        $path = __DIR__.'/_files';
54 54
 
55 55
         $locator = new DefaultFileLocator([$path], '.yml');
56 56
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function testGetAllClassNames() : void
63 63
     {
64
-        $path = __DIR__ . '/_files';
64
+        $path = __DIR__.'/_files';
65 65
 
66 66
         $locator       = new DefaultFileLocator([$path], '.yml');
67 67
         $allClasses    = $locator->getAllClassNames('');
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     public function testGetAllClassNamesNonMatchingFileExtension() : void
83 83
     {
84
-        $path = __DIR__ . '/_files';
84
+        $path = __DIR__.'/_files';
85 85
 
86 86
         $locator = new DefaultFileLocator([$path], '.xml');
87 87
         self::assertSame([], $locator->getAllClassNames('global'));
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     public function testFileExists() : void
91 91
     {
92
-        $path = __DIR__ . '/_files';
92
+        $path = __DIR__.'/_files';
93 93
 
94 94
         $locator = new DefaultFileLocator([$path], '.yml');
95 95
 
Please login to merge, or discard this patch.