Passed
Pull Request — 1.2.x (#47)
by Michael
01:51
created
tests/Doctrine/Tests/Common/Persistence/ObjectManagerDecoratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     public function testAllMethodCallsAreDelegatedToTheWrappedInstance($method, array $parameters, $isVoidMethod)
63 63
     {
64
-        $returnedValue = $isVoidMethod ? null : 'INNER VALUE FROM ' . $method;
64
+        $returnedValue = $isVoidMethod ? null : 'INNER VALUE FROM '.$method;
65 65
         $stub          = $this->wrapped
66 66
             ->expects($this->once())
67 67
             ->method($method)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
     public function getAssociationTargetClass($assocName)
179 179
     {
180
-        return __NAMESPACE__ . '\TestObject';
180
+        return __NAMESPACE__.'\TestObject';
181 181
     }
182 182
 
183 183
     public function getFieldNames()
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
     public function getName()
194 194
     {
195
-        return __NAMESPACE__ . '\TestObject';
195
+        return __NAMESPACE__.'\TestObject';
196 196
     }
197 197
 
198 198
     public function getReflectionClass()
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $this->cm = new TestObjectMetadata();
36 36
         $this->om = $this->createMock(ObjectManager::class);
37 37
         $this->om->expects($this->any())->method('getClassMetadata')
38
-                 ->will($this->returnValue($this->cm));
38
+                    ->will($this->returnValue($this->cm));
39 39
         $this->object = new TestObject();
40 40
         PersistentObject::setObjectManager($this->om);
41 41
         $this->object->injectObjectManager($this->om, $this->cm);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Persistence/Mapping/AnnotationDriverTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function testGetAllClassNames()
14 14
     {
15 15
         $reader = new AnnotationReader();
16
-        $driver = new SimpleAnnotationDriver($reader, [__DIR__ . '/_files/annotation']);
16
+        $driver = new SimpleAnnotationDriver($reader, [__DIR__.'/_files/annotation']);
17 17
 
18 18
         $classes = $driver->getAllClassNames();
19 19
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         foreach ($this->drivers as $namespace => $driver) {
94 94
             $oid = spl_object_hash($driver);
95 95
 
96
-            if (! isset($driverClasses[$oid])) {
96
+            if (!isset($driverClasses[$oid])) {
97 97
                 $driverClasses[$oid] = $driver->getAllClassNames();
98 98
             }
99 99
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Persistence/Mapping/PHPDriverTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         $metadata = $this->createMock(ClassMetadata::class);
17 17
         $metadata->expects($this->once())->method('getFieldNames');
18 18
 
19
-        $driver = new PHPDriver([__DIR__ . '/_files']);
19
+        $driver = new PHPDriver([__DIR__.'/_files']);
20 20
         $driver->loadMetadataForClass('TestEntity', $metadata);
21 21
     }
22 22
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Persistence/ManagerRegistryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     private function getManagerFactory()
81 81
     {
82
-        return function () {
82
+        return function() {
83 83
             $mock     = $this->createMock(ObjectManager::class);
84 84
             $driver   = $this->createMock(MappingDriver::class);
85 85
             $metadata = $this->createMock(ClassMetadata::class);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
     protected function getService($name)
120 120
     {
121
-        if (! isset($this->services[$name])) {
121
+        if (!isset($this->services[$name])) {
122 122
             $this->services[$name] = call_user_func($this->managerFactory);
123 123
         }
124 124
 
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
         return $locator;
146 146
     }
147 147
 }
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function getParentClasses($class)
21 21
     {
22
-        if (! class_exists($class)) {
22
+        if (!class_exists($class)) {
23 23
             throw MappingException::nonExistingClass($class);
24 24
         }
25 25
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Mapping/MappingException.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public static function pathRequired()
31 31
     {
32
-        return new self('Specifying the paths to your entities is required ' .
32
+        return new self('Specifying the paths to your entities is required '.
33 33
             'in the AnnotationDriver to retrieve all class names.');
34 34
     }
35 35
 
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public static function fileMappingDriversRequireConfiguredDirectoryPath($path = null)
42 42
     {
43
-        if (! empty($path)) {
44
-            $path = '[' . $path . ']';
43
+        if (!empty($path)) {
44
+            $path = '['.$path.']';
45 45
         }
46 46
 
47 47
         return new self(sprintf(
48
-            'File mapping drivers must have a valid directory path, ' .
48
+            'File mapping drivers must have a valid directory path, '.
49 49
             'however the given path %s seems to be incorrect!',
50 50
             $path
51 51
         ));
Please login to merge, or discard this patch.