Passed
Push — master ( 0ddf00...f0f4df )
by Dāvis
03:35
created
Oauth/Client/Provider/Facebook/Facebook.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         ];
96 96
 
97 97
         // backwards compatibility with less than v2.8
98
-        if ((float)substr($this->graphApiVersion, 1) < 2.8) {
98
+        if ((float) substr($this->graphApiVersion, 1) < 2.8) {
99 99
             $fields[] = 'bio';
100 100
         }
101 101
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     public function getLongLivedAccessToken($accessToken)
117 117
     {
118 118
         $params = [
119
-            'fb_exchange_token' => (string)$accessToken,
119
+            'fb_exchange_token' => (string) $accessToken,
120 120
         ];
121 121
 
122 122
         return $this->getAccessToken('fb_exchange_token', $params);
Please login to merge, or discard this patch.
Oauth/Exception/CustomIdentityProviderException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     protected static function fromResponse(ResponseInterface $response, $message = null)
21 21
     {
22
-        return new static($message, $response->getStatusCode(), (string)$response->getBody());
22
+        return new static($message, $response->getStatusCode(), (string) $response->getBody());
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
Translatable/Listener/TranslatableListener.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function setSkipOnLoad($bool)
140 140
     {
141
-        $this->skipOnLoad = (bool)$bool;
141
+        $this->skipOnLoad = (bool) $bool;
142 142
 
143 143
         return $this;
144 144
     }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function setPersistDefaultLocaleTranslation($bool)
155 155
     {
156
-        $this->persistDefaultLocaleTranslation = (bool)$bool;
156
+        $this->persistDefaultLocaleTranslation = (bool) $bool;
157 157
 
158 158
         return $this;
159 159
     }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function getPersistDefaultLocaleTranslation()
168 168
     {
169
-        return (bool)$this->persistDefaultLocaleTranslation;
169
+        return (bool) $this->persistDefaultLocaleTranslation;
170 170
     }
171 171
 
172 172
     /**
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      */
217 217
     public function setTranslationFallback($bool)
218 218
     {
219
-        $this->translationFallback = (bool)$bool;
219
+        $this->translationFallback = (bool) $bool;
220 220
 
221 221
         return $this;
222 222
     }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
             $reflectionProperty->setAccessible(true);
313 313
             $value = $reflectionProperty->getValue($object);
314 314
             if (is_object($value) && method_exists($value, '__toString')) {
315
-                $value = (string)$value;
315
+                $value = (string) $value;
316 316
             }
317 317
             if ($this->isValidLocale($value)) {
318 318
                 $locale = $value;
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
             // translate object's translatable properties
467 467
             foreach ($config['fields'] as $field) {
468 468
                 $translated = '';
469
-                foreach ((array)$result as $entry) {
469
+                foreach ((array) $result as $entry) {
470 470
                     if ($entry['field'] == $field) {
471 471
                         $translated = $entry['content'];
472 472
                         break;
Please login to merge, or discard this patch.
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.