@@ -1259,7 +1259,7 @@ discard block |
||
| 1259 | 1259 | /** |
| 1260 | 1260 | * Schedules an entity for being updated. |
| 1261 | 1261 | * |
| 1262 | - * @param object $entity The entity to schedule for being updated. |
|
| 1262 | + * @param \Doctrine\Tests\Models\Forum\ForumUser $entity The entity to schedule for being updated. |
|
| 1263 | 1263 | * |
| 1264 | 1264 | * @return void |
| 1265 | 1265 | * |
@@ -1327,7 +1327,7 @@ discard block |
||
| 1327 | 1327 | /** |
| 1328 | 1328 | * Checks whether an entity is registered to be checked in the unit of work. |
| 1329 | 1329 | * |
| 1330 | - * @param object $entity |
|
| 1330 | + * @param \Doctrine\Tests\ORM\NotifyChangedEntity $entity |
|
| 1331 | 1331 | * |
| 1332 | 1332 | * @return boolean |
| 1333 | 1333 | */ |
@@ -3139,7 +3139,7 @@ discard block |
||
| 3139 | 3139 | } |
| 3140 | 3140 | |
| 3141 | 3141 | /** |
| 3142 | - * @param $class |
|
| 3142 | + * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class |
|
| 3143 | 3143 | * @param string $oid |
| 3144 | 3144 | */ |
| 3145 | 3145 | public function clearScheduledForSynchronization($class, $oid) { |
@@ -3155,7 +3155,7 @@ discard block |
||
| 3155 | 3155 | * |
| 3156 | 3156 | * @param object $entity The entity that owns the property. |
| 3157 | 3157 | * @param string $propertyName The name of the property that changed. |
| 3158 | - * @param mixed $oldValue The old value of the property. |
|
| 3158 | + * @param null|integer $oldValue The old value of the property. |
|
| 3159 | 3159 | * @param mixed $newValue The new value of the property. |
| 3160 | 3160 | * |
| 3161 | 3161 | * @return void |
@@ -3355,7 +3355,7 @@ discard block |
||
| 3355 | 3355 | /** |
| 3356 | 3356 | * Verifies if two given entities actually are the same based on identifier comparison |
| 3357 | 3357 | * |
| 3358 | - * @param object $entity1 |
|
| 3358 | + * @param Proxy $entity1 |
|
| 3359 | 3359 | * @param object $entity2 |
| 3360 | 3360 | * |
| 3361 | 3361 | * @return bool |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | if($reservedKeyList->isKeyword($class->table['name'])){ |
| 57 | 57 | return $platform->quoteIdentifier($class->table['name']); |
| 58 | 58 | } |
| 59 | - return $class->table['name']; |
|
| 59 | + return $class->table['name']; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
@@ -34,11 +34,11 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function getColumnName($fieldName, ClassMetadata $class, AbstractPlatform $platform) |
| 36 | 36 | { |
| 37 | - if(isset($class->fieldMappings[$fieldName]['quoted'])){ |
|
| 37 | + if (isset($class->fieldMappings[$fieldName]['quoted'])) { |
|
| 38 | 38 | return $platform->quoteIdentifier($class->fieldMappings[$fieldName]['columnName']); |
| 39 | 39 | } |
| 40 | 40 | $reservedKeyList = $platform->getReservedKeywordsList(); |
| 41 | - if($reservedKeyList->isKeyword($fieldName)){ |
|
| 41 | + if ($reservedKeyList->isKeyword($fieldName)) { |
|
| 42 | 42 | return $platform->quoteIdentifier($class->fieldMappings[$fieldName]['columnName']); |
| 43 | 43 | } |
| 44 | 44 | return $class->fieldMappings[$fieldName]['columnName']; |
@@ -49,11 +49,11 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function getTableName(ClassMetadata $class, AbstractPlatform $platform) |
| 51 | 51 | { |
| 52 | - if(isset($class->table['quoted'])){ |
|
| 52 | + if (isset($class->table['quoted'])) { |
|
| 53 | 53 | return $platform->quoteIdentifier($class->table['name']); |
| 54 | 54 | } |
| 55 | 55 | $reservedKeyList = $platform->getReservedKeywordsList(); |
| 56 | - if($reservedKeyList->isKeyword($class->table['name'])){ |
|
| 56 | + if ($reservedKeyList->isKeyword($class->table['name'])) { |
|
| 57 | 57 | return $platform->quoteIdentifier($class->table['name']); |
| 58 | 58 | } |
| 59 | 59 | return $class->table['name']; |
@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function getSequenceName(array $definition, ClassMetadata $class, AbstractPlatform $platform) |
| 66 | 66 | { |
| 67 | - if(isset($definition['quoted'])){ |
|
| 67 | + if (isset($definition['quoted'])) { |
|
| 68 | 68 | return $platform->quoteIdentifier($class->table['name']); |
| 69 | 69 | } |
| 70 | 70 | $reservedKeyList = $platform->getReservedKeywordsList(); |
| 71 | - if($reservedKeyList->isKeyword($definition['sequenceName'])){ |
|
| 71 | + if ($reservedKeyList->isKeyword($definition['sequenceName'])) { |
|
| 72 | 72 | return $platform->quoteIdentifier($definition['sequenceName']); |
| 73 | 73 | } |
| 74 | 74 | return $definition['sequenceName']; |
@@ -79,11 +79,11 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function getJoinColumnName(array $joinColumn, ClassMetadata $class, AbstractPlatform $platform) |
| 81 | 81 | { |
| 82 | - if(isset($joinColumn['quoted'])){ |
|
| 82 | + if (isset($joinColumn['quoted'])) { |
|
| 83 | 83 | return $platform->quoteIdentifier($joinColumn['name']); |
| 84 | 84 | } |
| 85 | 85 | $reservedKeyList = $platform->getReservedKeywordsList(); |
| 86 | - if($reservedKeyList->isKeyword($joinColumn['name'])){ |
|
| 86 | + if ($reservedKeyList->isKeyword($joinColumn['name'])) { |
|
| 87 | 87 | return $platform->quoteIdentifier($joinColumn['name']); |
| 88 | 88 | } |
| 89 | 89 | return $joinColumn['name']; |
@@ -94,11 +94,11 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function getReferencedJoinColumnName(array $joinColumn, ClassMetadata $class, AbstractPlatform $platform) |
| 96 | 96 | { |
| 97 | - if(isset($joinColumn['quoted'])){ |
|
| 97 | + if (isset($joinColumn['quoted'])) { |
|
| 98 | 98 | return $platform->quoteIdentifier($joinColumn['referencedColumnName']); |
| 99 | 99 | } |
| 100 | 100 | $reservedKeyList = $platform->getReservedKeywordsList(); |
| 101 | - if($reservedKeyList->isKeyword($joinColumn['referencedColumnName'])){ |
|
| 101 | + if ($reservedKeyList->isKeyword($joinColumn['referencedColumnName'])) { |
|
| 102 | 102 | return $platform->quoteIdentifier($joinColumn['referencedColumnName']); |
| 103 | 103 | } |
| 104 | 104 | return $joinColumn['referencedColumnName']; |
@@ -109,11 +109,11 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform) |
| 111 | 111 | { |
| 112 | - if(isset($association['joinTable']['quoted'])){ |
|
| 112 | + if (isset($association['joinTable']['quoted'])) { |
|
| 113 | 113 | return $platform->quoteIdentifier($association['joinTable']['name']); |
| 114 | 114 | } |
| 115 | 115 | $reservedKeyList = $platform->getReservedKeywordsList(); |
| 116 | - if($reservedKeyList->isKeyword($association['joinTable']['name'])){ |
|
| 116 | + if ($reservedKeyList->isKeyword($association['joinTable']['name'])) { |
|
| 117 | 117 | return $platform->quoteIdentifier($association['joinTable']['name']); |
| 118 | 118 | } |
| 119 | 119 | return $association['joinTable']['name']; |
@@ -136,13 +136,13 @@ discard block |
||
| 136 | 136 | // Association defined as Id field |
| 137 | 137 | $joinColumns = $class->associationMappings[$fieldName]['joinColumns']; |
| 138 | 138 | $assocQuotedColumnNames = array_map( |
| 139 | - function ($joinColumn) use ($platform) |
|
| 139 | + function($joinColumn) use ($platform) |
|
| 140 | 140 | { |
| 141 | - if(isset($joinColumn['quoted'])){ |
|
| 141 | + if (isset($joinColumn['quoted'])) { |
|
| 142 | 142 | return $platform->quoteIdentifier($joinColumn['name']); |
| 143 | 143 | } |
| 144 | 144 | $reservedKeyList = $platform->getReservedKeywordsList(); |
| 145 | - if($reservedKeyList->isKeyword($joinColumn['name'])){ |
|
| 145 | + if ($reservedKeyList->isKeyword($joinColumn['name'])) { |
|
| 146 | 146 | return $platform->quoteIdentifier($joinColumn['name']); |
| 147 | 147 | } |
| 148 | 148 | return $joinColumn['name']; |
@@ -166,10 +166,10 @@ discard block |
||
| 166 | 166 | // If the alias is to long, characters are cut off from the beginning. |
| 167 | 167 | // 3 ) Strip non alphanumeric characters |
| 168 | 168 | // 4 ) Prefix with "_" if the result its numeric |
| 169 | - $columnName = $columnName . '_' . $counter; |
|
| 169 | + $columnName = $columnName.'_'.$counter; |
|
| 170 | 170 | $columnName = substr($columnName, -$platform->getMaxIdentifierLength()); |
| 171 | 171 | $columnName = preg_replace('/[^A-Za-z0-9_]/', '', $columnName); |
| 172 | - $columnName = is_numeric($columnName) ? '_' . $columnName : $columnName; |
|
| 172 | + $columnName = is_numeric($columnName) ? '_'.$columnName : $columnName; |
|
| 173 | 173 | |
| 174 | 174 | return $platform->getSQLResultCasing($columnName); |
| 175 | 175 | } |