@@ -61,7 +61,7 @@ |
||
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) |
@@ -177,7 +177,7 @@ discard block |
||
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 |
||
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() |
@@ -35,7 +35,7 @@ |
||
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); |
@@ -13,7 +13,7 @@ |
||
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 |
@@ -93,7 +93,7 @@ |
||
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 |
@@ -16,7 +16,7 @@ |
||
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 | } |
@@ -19,7 +19,7 @@ |
||
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 |
@@ -29,7 +29,7 @@ discard block |
||
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 |
||
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 | )); |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | $result = $this->loadMappingFile($this->locator->findMappingFile($className)); |
93 | - if (! isset($result[$className])) { |
|
94 | - throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className) . $this->locator->getFileExtension()); |
|
93 | + if (!isset($result[$className])) { |
|
94 | + throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className).$this->locator->getFileExtension()); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | $this->classCache[$className] = $result[$className]; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | return false; |
113 | 113 | } |
114 | 114 | |
115 | - return ! $this->locator->fileExists($className); |
|
115 | + return !$this->locator->fileExists($className); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $this->initialize(); |
125 | 125 | } |
126 | 126 | |
127 | - if (! $this->classCache) { |
|
127 | + if (!$this->classCache) { |
|
128 | 128 | return (array) $this->locator->getAllClassNames($this->globalBasename); |
129 | 129 | } |
130 | 130 | |
@@ -163,8 +163,8 @@ discard block |
||
163 | 163 | } |
164 | 164 | |
165 | 165 | foreach ($this->locator->getPaths() as $path) { |
166 | - $file = $path . '/' . $this->globalBasename . $this->locator->getFileExtension(); |
|
167 | - if (! is_file($file)) { |
|
166 | + $file = $path.'/'.$this->globalBasename.$this->locator->getFileExtension(); |
|
167 | + if (!is_file($file)) { |
|
168 | 168 | continue; |
169 | 169 | } |
170 | 170 |
@@ -94,12 +94,12 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function findMappingFile($className) |
96 | 96 | { |
97 | - $fileName = str_replace('\\', '.', $className) . $this->fileExtension; |
|
97 | + $fileName = str_replace('\\', '.', $className).$this->fileExtension; |
|
98 | 98 | |
99 | 99 | // Check whether file exists |
100 | 100 | foreach ($this->paths as $path) { |
101 | - if (is_file($path . DIRECTORY_SEPARATOR . $fileName)) { |
|
102 | - return $path . DIRECTORY_SEPARATOR . $fileName; |
|
101 | + if (is_file($path.DIRECTORY_SEPARATOR.$fileName)) { |
|
102 | + return $path.DIRECTORY_SEPARATOR.$fileName; |
|
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | if ($this->paths) { |
117 | 117 | foreach ($this->paths as $path) { |
118 | - if (! is_dir($path)) { |
|
118 | + if (!is_dir($path)) { |
|
119 | 119 | throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path); |
120 | 120 | } |
121 | 121 | |
@@ -145,11 +145,11 @@ discard block |
||
145 | 145 | */ |
146 | 146 | public function fileExists($className) |
147 | 147 | { |
148 | - $fileName = str_replace('\\', '.', $className) . $this->fileExtension; |
|
148 | + $fileName = str_replace('\\', '.', $className).$this->fileExtension; |
|
149 | 149 | |
150 | 150 | // Check whether file exists |
151 | 151 | foreach ((array) $this->paths as $path) { |
152 | - if (is_file($path . DIRECTORY_SEPARATOR . $fileName)) { |
|
152 | + if (is_file($path.DIRECTORY_SEPARATOR.$fileName)) { |
|
153 | 153 | return true; |
154 | 154 | } |
155 | 155 | } |