Completed
Branch develop (d0d4c6)
by Marco
16:40
created
tests/Doctrine/Tests/ORM/Functional/OneToManyOrphanRemovalTest.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ORM\Functional;
4 4
 
5
-use Doctrine\Tests\Models\CMS\CmsUser,
6
-    Doctrine\Tests\Models\CMS\CmsPhonenumber;
5
+use Doctrine\Tests\Models\CMS\CmsUser;
6
+use Doctrine\Tests\Models\CMS\CmsPhonenumber;
7 7
 use Doctrine\Tests\OrmFunctionalTestCase;
8 8
 
9 9
 /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OneToOneOrphanRemovalTest.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ORM\Functional;
4 4
 
5
-use Doctrine\Tests\Models\CMS\CmsUser,
6
-    Doctrine\Tests\Models\CMS\CmsEmail,
7
-    Doctrine\Tests\Models\CMS\CmsAddress;
5
+use Doctrine\Tests\Models\CMS\CmsUser;
6
+use Doctrine\Tests\Models\CMS\CmsEmail;
7
+use Doctrine\Tests\Models\CMS\CmsAddress;
8 8
 use Doctrine\Tests\OrmFunctionalTestCase;
9 9
 
10 10
 /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/QueryTest.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,11 +3,10 @@
 block discarded – undo
3 3
 namespace Doctrine\Tests\ORM\Functional;
4 4
 
5 5
 use Doctrine\Common\Collections\ArrayCollection;
6
-
7 6
 use Doctrine\ORM\UnexpectedResultException;
8
-use Doctrine\Tests\Models\CMS\CmsUser,
9
-    Doctrine\Tests\Models\CMS\CmsArticle,
10
-    Doctrine\Tests\Models\CMS\CmsPhonenumber;
7
+use Doctrine\Tests\Models\CMS\CmsUser;
8
+use Doctrine\Tests\Models\CMS\CmsArticle;
9
+use Doctrine\Tests\Models\CMS\CmsPhonenumber;
11 10
 use Doctrine\ORM\Mapping\ClassMetadata;
12 11
 use Doctrine\ORM\Query;
13 12
 use Doctrine\ORM\Query\Parameter;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 use Doctrine\ORM\Tools\Export\ClassMetadataExporter;
26 26
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
27 27
 use Doctrine\ORM\Tools\EntityGenerator;
28
-use Doctrine\Tests\Mocks\MetadataDriverMock;
29 28
 use Doctrine\Tests\Mocks\EntityManagerMock;
30 29
 use Doctrine\Tests\Mocks\ConnectionMock;
31 30
 use Doctrine\Tests\Mocks\DriverMock;
Please login to merge, or discard this patch.
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@  discard block
 block discarded – undo
68 68
         return EntityManagerMock::create($connection, $config, $eventManager);
69 69
     }
70 70
 
71
+    /**
72
+     * @param string $path
73
+     */
71 74
     protected function _createMetadataDriver($type, $path)
72 75
     {
73 76
         $mappingDriver = array(
@@ -86,6 +89,9 @@  discard block
 block discarded – undo
86 89
         return $driver;
87 90
     }
88 91
 
92
+    /**
93
+     * @param EntityManagerMock $em
94
+     */
89 95
     protected function _createClassMetadataFactory($em, $type)
90 96
     {
91 97
         $factory = ($type === 'annotation')
@@ -295,7 +301,6 @@  discard block
 block discarded – undo
295 301
 
296 302
     /**
297 303
      * @depends testOneToManyAssociationsAreExported
298
-     * @param ClassMetadata $metadata
299 304
      */
300 305
     public function testManyToManyAssociationsAreExported($class)
301 306
     {
@@ -388,6 +393,9 @@  discard block
 block discarded – undo
388 393
 #        $this->_deleteDirectory(__DIR__ . '/export/'.$this->_getType());
389 394
     }
390 395
 
396
+    /**
397
+     * @param string $path
398
+     */
391 399
     protected function _deleteDirectory($path)
392 400
     {
393 401
         if (is_file($path)) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultCacheFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -217,12 +217,12 @@
 block discarded – undo
217 217
 
218 218
             if ( ! $this->fileLockRegionDirectory) {
219 219
                 throw new \LogicException(
220
-                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, ' .
220
+                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, '.
221 221
                     'The default implementation provided by doctrine is "Doctrine\ORM\Cache\Region\FileLockRegion" if you what to use it please provide a valid directory, DefaultCacheFactory#setFileLockRegionDirectory(). '
222 222
                 );
223 223
             }
224 224
 
225
-            $directory = $this->fileLockRegionDirectory . DIRECTORY_SEPARATOR . $cache['region'];
225
+            $directory = $this->fileLockRegionDirectory.DIRECTORY_SEPARATOR.$cache['region'];
226 226
             $region    = new FileLockRegion($region, $directory, $this->regionsConfig->getLockLifetime($cache['region']));
227 227
         }
228 228
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -224,8 +224,8 @@  discard block
 block discarded – undo
224 224
      */
225 225
     public function transactional($func)
226 226
     {
227
-        if (!is_callable($func)) {
228
-            throw new \InvalidArgumentException('Expected argument of type "callable", got "' . gettype($func) . '"');
227
+        if ( ! is_callable($func)) {
228
+            throw new \InvalidArgumentException('Expected argument of type "callable", got "'.gettype($func).'"');
229 229
         }
230 230
 
231 231
         $this->conn->beginTransaction();
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
      */
754 754
     public function isOpen()
755 755
     {
756
-        return (!$this->closed);
756
+        return ( ! $this->closed);
757 757
     }
758 758
 
759 759
     /**
@@ -859,7 +859,7 @@  discard block
 block discarded – undo
859 859
         }
860 860
 
861 861
         if ( ! $connection instanceof Connection) {
862
-            throw new \InvalidArgumentException("Invalid argument: " . $connection);
862
+            throw new \InvalidArgumentException("Invalid argument: ".$connection);
863 863
         }
864 864
 
865 865
         return $connection;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/ClassMetadataFactoryTest.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,6 +222,9 @@  discard block
 block discarded – undo
222 222
         $this->assertEquals(array(), $metadata);
223 223
     }
224 224
 
225
+    /**
226
+     * @param \PHPUnit_Framework_MockObject_MockObject $conn
227
+     */
225 228
     protected function _createEntityManager($metadataDriver, $conn = null)
226 229
     {
227 230
         $driverMock = new DriverMock();
@@ -250,7 +253,6 @@  discard block
 block discarded – undo
250 253
     }
251 254
 
252 255
     /**
253
-     * @param string $class
254 256
      * @return ClassMetadata
255 257
      */
256 258
     protected function _createValidClassMetadata()
@@ -460,6 +462,10 @@  discard block
 block discarded – undo
460 462
         return $this->mockMetadata[$className];
461 463
     }
462 464
 
465
+    /**
466
+     * @param string $className
467
+     * @param ClassMetadata $metadata
468
+     */
463 469
     public function setMetadataForClass($className, $metadata)
464 470
     {
465 471
         $this->mockMetadata[$className] = $metadata;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Repository/DefaultRepositoryFactoryTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     }
136 136
 
137 137
     /**
138
-     * @return \Doctrine\ORM\EntityManagerInterface|\PHPUnit_Framework_MockObject_MockObject
138
+     * @return \PHPUnit_Framework_MockObject_MockObject
139 139
      */
140 140
     private function createEntityManager()
141 141
     {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ClassMetadata.php 3 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
     /**
596 596
      * Gets the ReflectionProperties of the mapped class.
597 597
      *
598
-     * @return array An array of ReflectionProperty instances.
598
+     * @return \ReflectionProperty[] An array of ReflectionProperty instances.
599 599
      */
600 600
     public function getReflectionProperties()
601 601
     {
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
      *
687 687
      * @param object $entity
688 688
      * @param string $field
689
-     * @param mixed  $value
689
+     * @param integer  $value
690 690
      *
691 691
      * @return void
692 692
      */
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
      *      - reflClass (ReflectionClass)
732 732
      *      - reflFields (ReflectionProperty array)
733 733
      *
734
-     * @return array The names of all the fields that should be serialized.
734
+     * @return string[] The names of all the fields that should be serialized.
735 735
      */
736 736
     public function __sleep()
737 737
     {
@@ -1612,7 +1612,7 @@  discard block
 block discarded – undo
1612 1612
      * Sets the mapped identifier/primary key fields of this class.
1613 1613
      * Mainly used by the ClassMetadataFactory to assign inherited identifiers.
1614 1614
      *
1615
-     * @param array $identifier
1615
+     * @param string[] $identifier
1616 1616
      *
1617 1617
      * @return void
1618 1618
      */
@@ -1641,7 +1641,7 @@  discard block
 block discarded – undo
1641 1641
     /**
1642 1642
      * Gets an array containing all the column names.
1643 1643
      *
1644
-     * @param array|null $fieldNames
1644
+     * @param string[] $fieldNames
1645 1645
      *
1646 1646
      * @return array
1647 1647
      */
@@ -1841,7 +1841,7 @@  discard block
 block discarded – undo
1841 1841
     /**
1842 1842
      * Sets the mapped subclasses of this class.
1843 1843
      *
1844
-     * @param array $subclasses The names of all mapped subclasses.
1844
+     * @param string[] $subclasses The names of all mapped subclasses.
1845 1845
      *
1846 1846
      * @return void
1847 1847
      */
@@ -1857,7 +1857,7 @@  discard block
 block discarded – undo
1857 1857
      * Assumes that the class names in the passed array are in the order:
1858 1858
      * directParent -> directParentParent -> directParentParentParent ... -> root.
1859 1859
      *
1860
-     * @param array $classNames
1860
+     * @param string[] $classNames
1861 1861
      *
1862 1862
      * @return void
1863 1863
      */
@@ -2040,7 +2040,7 @@  discard block
 block discarded – undo
2040 2040
      *
2041 2041
      * @param string $fieldName
2042 2042
      *
2043
-     * @return boolean TRUE if the field is inherited, FALSE otherwise.
2043
+     * @return boolean|null TRUE if the field is inherited, FALSE otherwise.
2044 2044
      */
2045 2045
     public function isInheritedEmbeddedClass($fieldName)
2046 2046
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@  discard block
 block discarded – undo
21 21
 
22 22
 use BadMethodCallException;
23 23
 use Doctrine\Instantiator\Instantiator;
24
-use Doctrine\ORM\EntityManager;
25 24
 use Doctrine\ORM\EntityManagerInterface;
26 25
 use Doctrine\ORM\Utility\PersisterHelper;
27 26
 use InvalidArgumentException;
@@ -29,7 +28,6 @@  discard block
 block discarded – undo
29 28
 use Doctrine\DBAL\Types\Type;
30 29
 use Doctrine\DBAL\Platforms\AbstractPlatform;
31 30
 use ReflectionClass;
32
-use Doctrine\Common\ClassLoader;
33 31
 use Doctrine\Common\Persistence\Mapping\ClassMetadata as ClassMetadataInterface;
34 32
 use Doctrine\ORM\Cache\CacheException;
35 33
 
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
     public function getSingleIdReflectionProperty()
625 625
     {
626 626
         if ($this->isIdentifierComposite) {
627
-            throw new BadMethodCallException("Class " . $this->name . " has a composite identifier.");
627
+            throw new BadMethodCallException("Class ".$this->name." has a composite identifier.");
628 628
         }
629 629
 
630 630
         return $this->reflFields[$this->identifier[0]];
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
      */
718 718
     public function __toString()
719 719
     {
720
-        return __CLASS__ . '@' . spl_object_hash($this);
720
+        return __CLASS__.'@'.spl_object_hash($this);
721 721
     }
722 722
 
723 723
     /**
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
      */
1003 1003
     public function enableAssociationCache($fieldName, array $cache)
1004 1004
     {
1005
-        $this->associationMappings[$fieldName]['cache'] = $this->getAssociationCacheDefaults ($fieldName, $cache);
1005
+        $this->associationMappings[$fieldName]['cache'] = $this->getAssociationCacheDefaults($fieldName, $cache);
1006 1006
     }
1007 1007
 
1008 1008
     /**
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
         }
1021 1021
 
1022 1022
         if ( ! isset($cache['region'])) {
1023
-            $cache['region'] = strtolower(str_replace('\\', '_', $this->rootEntityName)) . '__' . $fieldName;
1023
+            $cache['region'] = strtolower(str_replace('\\', '_', $this->rootEntityName)).'__'.$fieldName;
1024 1024
         }
1025 1025
 
1026 1026
         return $cache;
@@ -1268,7 +1268,7 @@  discard block
 block discarded – undo
1268 1268
         $mapping['isOwningSide'] = true; // assume owning side until we hit mappedBy
1269 1269
 
1270 1270
         // unset optional indexBy attribute if its empty
1271
-        if ( ! isset($mapping['indexBy']) || !$mapping['indexBy']) {
1271
+        if ( ! isset($mapping['indexBy']) || ! $mapping['indexBy']) {
1272 1272
             unset($mapping['indexBy']);
1273 1273
         }
1274 1274
 
@@ -1307,7 +1307,7 @@  discard block
 block discarded – undo
1307 1307
                 $this->isIdentifierComposite = true;
1308 1308
             }
1309 1309
 
1310
-            if ($this->cache && !isset($mapping['cache'])) {
1310
+            if ($this->cache && ! isset($mapping['cache'])) {
1311 1311
                 throw CacheException::nonCacheableEntityAssociation($this->name, $mapping['fieldName']);
1312 1312
             }
1313 1313
         }
@@ -1420,7 +1420,7 @@  discard block
 block discarded – undo
1420 1420
                     throw new RuntimeException("ClassMetadata::setTable() has to be called before defining a one to one relationship.");
1421 1421
                 }
1422 1422
 
1423
-                $this->table['uniqueConstraints'][$mapping['fieldName'] . "_uniq"] = array(
1423
+                $this->table['uniqueConstraints'][$mapping['fieldName']."_uniq"] = array(
1424 1424
                     'columns' => $uniqueConstraintColumns
1425 1425
                 );
1426 1426
             }
@@ -1431,14 +1431,14 @@  discard block
 block discarded – undo
1431 1431
         $mapping['orphanRemoval'] = isset($mapping['orphanRemoval']) ? (bool) $mapping['orphanRemoval'] : false;
1432 1432
 
1433 1433
         if ($mapping['orphanRemoval']) {
1434
-            if (! in_array('remove', $mapping['cascade'])) {
1434
+            if ( ! in_array('remove', $mapping['cascade'])) {
1435 1435
                 $mapping['cascade'][] = 'remove';
1436 1436
             }
1437 1437
 
1438 1438
             unset($mapping['unique']);
1439 1439
         }
1440 1440
 
1441
-        if (isset($mapping['id']) && $mapping['id'] === true && !$mapping['isOwningSide']) {
1441
+        if (isset($mapping['id']) && $mapping['id'] === true && ! $mapping['isOwningSide']) {
1442 1442
             throw MappingException::illegalInverseIdentifierAssociation($this->name, $mapping['fieldName']);
1443 1443
         }
1444 1444
 
@@ -1499,7 +1499,7 @@  discard block
 block discarded – undo
1499 1499
             }
1500 1500
 
1501 1501
             $selfReferencingEntityWithoutJoinColumns = $mapping['sourceEntity'] == $mapping['targetEntity']
1502
-                && (! (isset($mapping['joinTable']['joinColumns']) || isset($mapping['joinTable']['inverseJoinColumns'])));
1502
+                && ( ! (isset($mapping['joinTable']['joinColumns']) || isset($mapping['joinTable']['inverseJoinColumns'])));
1503 1503
 
1504 1504
             if ( ! isset($mapping['joinTable']['joinColumns'])) {
1505 1505
                 $mapping['joinTable']['joinColumns'] = array(
@@ -1831,11 +1831,11 @@  discard block
 block discarded – undo
1831 1831
     {
1832 1832
         $schema = empty($this->getSchemaName())
1833 1833
             ? ''
1834
-            : $this->getSchemaName() . '_'
1834
+            : $this->getSchemaName().'_'
1835 1835
         ;
1836 1836
 
1837 1837
         // replace dots with underscores because PostgreSQL creates temporary tables in a special schema
1838
-        return $schema . $this->getTableName() . '_id_tmp';
1838
+        return $schema.$this->getTableName().'_id_tmp';
1839 1839
     }
1840 1840
 
1841 1841
     /**
@@ -2136,7 +2136,7 @@  discard block
 block discarded – undo
2136 2136
         $property->setDeclaringClass($this);
2137 2137
         $property->setName($fieldName);
2138 2138
         $property->setType($type);
2139
-        $property->setTableName(! $this->isMappedSuperclass ? $this->getTableName() : null);
2139
+        $property->setTableName( ! $this->isMappedSuperclass ? $this->getTableName() : null);
2140 2140
         $property->setColumnName($mapping['columnName'] ?? $this->namingStrategy->propertyToColumnName($fieldName, $this->name));
2141 2141
         $property->setColumnDefinition($mapping['columnDefinition'] ?? null);
2142 2142
         $property->setLength($mapping['length'] ?? null);
@@ -2169,14 +2169,14 @@  discard block
 block discarded – undo
2169 2169
                 throw MappingException::cannotVersionIdField($this->name, $fieldName);
2170 2170
             }
2171 2171
 
2172
-            assert(! $type->canRequireSQLConversion(), MappingException::sqlConversionNotAllowedForPrimaryKeyProperties($property));
2172
+            assert( ! $type->canRequireSQLConversion(), MappingException::sqlConversionNotAllowedForPrimaryKeyProperties($property));
2173 2173
 
2174
-            if (! in_array($fieldName, $this->identifier)) {
2174
+            if ( ! in_array($fieldName, $this->identifier)) {
2175 2175
                 $this->identifier[] = $fieldName;
2176 2176
             }
2177 2177
 
2178 2178
             // Check for composite key
2179
-            if (! $this->isIdentifierComposite && count($this->identifier) > 1) {
2179
+            if ( ! $this->isIdentifierComposite && count($this->identifier) > 1) {
2180 2180
                 $this->isIdentifierComposite = true;
2181 2181
             }
2182 2182
         }
@@ -2254,7 +2254,7 @@  discard block
 block discarded – undo
2254 2254
      */
2255 2255
     public function addNamedQuery(array $queryMapping)
2256 2256
     {
2257
-        if (!isset($queryMapping['name'])) {
2257
+        if ( ! isset($queryMapping['name'])) {
2258 2258
             throw MappingException::nameIsMandatoryForQueryMapping($this->name);
2259 2259
         }
2260 2260
 
@@ -2262,7 +2262,7 @@  discard block
 block discarded – undo
2262 2262
             throw MappingException::duplicateQueryMapping($this->name, $queryMapping['name']);
2263 2263
         }
2264 2264
 
2265
-        if (!isset($queryMapping['query'])) {
2265
+        if ( ! isset($queryMapping['query'])) {
2266 2266
             throw MappingException::emptyQueryMapping($this->name, $queryMapping['name']);
2267 2267
         }
2268 2268
 
@@ -2289,7 +2289,7 @@  discard block
 block discarded – undo
2289 2289
      */
2290 2290
     public function addNamedNativeQuery(array $queryMapping)
2291 2291
     {
2292
-        if (!isset($queryMapping['name'])) {
2292
+        if ( ! isset($queryMapping['name'])) {
2293 2293
             throw MappingException::nameIsMandatoryForQueryMapping($this->name);
2294 2294
         }
2295 2295
 
@@ -2297,11 +2297,11 @@  discard block
 block discarded – undo
2297 2297
             throw MappingException::duplicateQueryMapping($this->name, $queryMapping['name']);
2298 2298
         }
2299 2299
 
2300
-        if (!isset($queryMapping['query'])) {
2300
+        if ( ! isset($queryMapping['query'])) {
2301 2301
             throw MappingException::emptyQueryMapping($this->name, $queryMapping['name']);
2302 2302
         }
2303 2303
 
2304
-        if (!isset($queryMapping['resultClass']) && !isset($queryMapping['resultSetMapping'])) {
2304
+        if ( ! isset($queryMapping['resultClass']) && ! isset($queryMapping['resultSetMapping'])) {
2305 2305
             throw MappingException::missingQueryMapping($this->name, $queryMapping['name']);
2306 2306
         }
2307 2307
 
@@ -2333,7 +2333,7 @@  discard block
 block discarded – undo
2333 2333
      */
2334 2334
     public function addSqlResultSetMapping(array $resultMapping)
2335 2335
     {
2336
-        if (!isset($resultMapping['name'])) {
2336
+        if ( ! isset($resultMapping['name'])) {
2337 2337
             throw MappingException::nameIsMandatoryForSqlResultSetMapping($this->name);
2338 2338
         }
2339 2339
 
@@ -2343,7 +2343,7 @@  discard block
 block discarded – undo
2343 2343
 
2344 2344
         if (isset($resultMapping['entities'])) {
2345 2345
             foreach ($resultMapping['entities'] as $key => $entityResult) {
2346
-                if (!isset($entityResult['entityClass'])) {
2346
+                if ( ! isset($entityResult['entityClass'])) {
2347 2347
                     throw MappingException::missingResultSetMappingEntity($this->name, $resultMapping['name']);
2348 2348
                 }
2349 2349
 
@@ -2362,11 +2362,11 @@  discard block
 block discarded – undo
2362 2362
 
2363 2363
                 if (isset($entityResult['fields'])) {
2364 2364
                     foreach ($entityResult['fields'] as $k => $field) {
2365
-                        if (!isset($field['name'])) {
2365
+                        if ( ! isset($field['name'])) {
2366 2366
                             throw MappingException::missingResultSetMappingFieldName($this->name, $resultMapping['name']);
2367 2367
                         }
2368 2368
 
2369
-                        if (!isset($field['column'])) {
2369
+                        if ( ! isset($field['column'])) {
2370 2370
                             $fieldName = $field['name'];
2371 2371
 
2372 2372
                             if (strpos($fieldName, '.')) {
@@ -2908,7 +2908,7 @@  discard block
 block discarded – undo
2908 2908
     public function getAssociationTargetClass($assocName)
2909 2909
     {
2910 2910
         if ( ! isset($this->associationMappings[$assocName])) {
2911
-            throw new InvalidArgumentException("Association name expected, '" . $assocName ."' is not an association.");
2911
+            throw new InvalidArgumentException("Association name expected, '".$assocName."' is not an association.");
2912 2912
         }
2913 2913
 
2914 2914
         return $this->associationMappings[$assocName]['targetEntity'];
@@ -2979,7 +2979,7 @@  discard block
 block discarded – undo
2979 2979
         $namespace = $this->reflClass->getNamespaceName();
2980 2980
 
2981 2981
         if ($className !== null && strpos($className, '\\') === false && strlen($namespace) > 0) {
2982
-            return $namespace . '\\' . $className;
2982
+            return $namespace.'\\'.$className;
2983 2983
         }
2984 2984
 
2985 2985
         return $className;
@@ -3093,10 +3093,10 @@  discard block
 block discarded – undo
3093 3093
 
3094 3094
         // Prepend the schema name to the table name if there is one
3095 3095
         if ($schemaName = $this->getSchemaName()) {
3096
-            $sequencePrefix = $schemaName . '.' . $tableName;
3096
+            $sequencePrefix = $schemaName.'.'.$tableName;
3097 3097
 
3098 3098
             if ( ! $platform->supportsSchemas() && $platform->canEmulateSchemas()) {
3099
-                $sequencePrefix = $schemaName . '__' . $tableName;
3099
+                $sequencePrefix = $schemaName.'__'.$tableName;
3100 3100
             }
3101 3101
         }
3102 3102
 
Please login to merge, or discard this patch.