1
0
mirror of synced 2025-02-15 11:43:16 +03:00

PSR-2 CS improvements

This commit is contained in:
Asmir Mustafic 2015-07-16 16:20:36 +02:00
parent 32f0fefec7
commit 3a7b2991e8

View File

@ -1089,12 +1089,12 @@ class ClassMetadataInfo implements ClassMetadata
* *
* @return array * @return array
*/ */
public function getAssociationCacheDefaults ($fieldName, array $cache) public function getAssociationCacheDefaults($fieldName, array $cache)
{ {
if ( ! isset($cache['usage'])) { if ( ! isset($cache['usage'])) {
$cache['usage'] = isset($this->cache['usage']) $cache['usage'] = isset($this->cache['usage'])
? $this->cache['usage'] ? $this->cache['usage']
: self::CACHE_USAGE_READ_ONLY; : self::CACHE_USAGE_READ_ONLY;
} }
if ( ! isset($cache['region'])) { if ( ! isset($cache['region'])) {