Passed
Push — master ( 7c8ae3...3c7bda )
by Dāvis
05:29
created
Translatable/Repository/TranslatableRepository.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.