@@ -25,12 +25,12 @@ discard block |
||
25 | 25 | self::init($class, $className); |
26 | 26 | $locale = self::getLocaleVar($locale); |
27 | 27 | |
28 | - if((int)$id === 0){ |
|
28 | + if ((int)$id === 0) { |
|
29 | 29 | $id = Quick::findNextIdExt(self::$entityManager->getMetadataFactory()->getMetadataFor($class)); |
30 | 30 | } |
31 | 31 | |
32 | 32 | $update = (int)self::findByLocale($class, $locale, $content, $field, null, $id); |
33 | - if($update === 0){ |
|
33 | + if ($update === 0) { |
|
34 | 34 | $id = Quick::findNextIdExt(self::$entityManager->getMetadataFactory()->getMetadataFor($class)); |
35 | 35 | } |
36 | 36 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if ($isId) { |
104 | 104 | $where['foreign_key'] = $isId; |
105 | 105 | } else { |
106 | - if($content !== null) { |
|
106 | + if ($content !== null) { |
|
107 | 107 | $where['content'] = $content; |
108 | 108 | } |
109 | 109 | } |
@@ -25,12 +25,12 @@ |
||
25 | 25 | self::init($class, $className); |
26 | 26 | $locale = self::getLocaleVar($locale); |
27 | 27 | |
28 | - if((int)$id === 0){ |
|
28 | + if((int)$id === 0) { |
|
29 | 29 | $id = Quick::findNextIdExt(self::$entityManager->getMetadataFactory()->getMetadataFor($class)); |
30 | 30 | } |
31 | 31 | |
32 | 32 | $update = (int)self::findByLocale($class, $locale, $content, $field, null, $id); |
33 | - if($update === 0){ |
|
33 | + if($update === 0) { |
|
34 | 34 | $id = Quick::findNextIdExt(self::$entityManager->getMetadataFactory()->getMetadataFor($class)); |
35 | 35 | } |
36 | 36 |