Passed
Push — master ( 0ddf00...f0f4df )
by Dāvis
03:35
created
Translatable/Repository/TranslatableRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             $locale = self::$localeArr[$locale];
129 129
         }
130 130
 
131
-        $res = (int)self::findByLocale($class, $locale, $content, $field, null, $id);
131
+        $res = (int) self::findByLocale($class, $locale, $content, $field, null, $id);
132 132
         $class = str_replace('\\', '\\\\', $class);
133 133
         $content = trim($content) != '' ? $content : null;
134 134
         if ($res) {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         $result = $sth->fetch();
223 223
 
224 224
         if (isset($result['AUTO_INCREMENT'])) {
225
-            return (int)$result['AUTO_INCREMENT'];
225
+            return (int) $result['AUTO_INCREMENT'];
226 226
         }
227 227
 
228 228
         return 1;
Please login to merge, or discard this patch.
Translatable/Form/Type/TranslatorType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         }
50 50
 
51 51
         // 'populate' fields by *hook on form generation
52
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($fieldName, $locales, $translations, $fieldType, $class, $required, $className, $id) {
52
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($fieldName, $locales, $translations, $fieldType, $class, $required, $className, $id) {
53 53
             $form = $event->getForm();
54 54
             foreach ($locales as $locale) {
55 55
                 $data = (array_key_exists($locale, $translations) && array_key_exists($fieldName, $translations[$locale])) ? $translations[$locale][$fieldName] : null;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             $form->add('currentFieldName', 'hidden', ['data' => $fieldName]);
71 71
         });
72 72
 
73
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($fieldName, $className, $id, $locales, $userLocale) {
73
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) use ($fieldName, $className, $id, $locales, $userLocale) {
74 74
             $form = $event->getForm();
75 75
             $this->manager->persistTranslations($form, $className, $fieldName, $id, $locales, $userLocale);
76 76
         });
Please login to merge, or discard this patch.
Position/Twig/ObjectPositionExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function getFunctions()
34 34
     {
35 35
         return [
36
-            new Twig_SimpleFunction(self::NAME, function ($entity) {
36
+            new Twig_SimpleFunction(self::NAME, function($entity) {
37 37
                 $getter = sprintf('get%s', ucfirst($this->positionService->getPositionFieldByEntity($entity)));
38 38
 
39 39
                 return $entity->{$getter}();
Please login to merge, or discard this patch.