Completed
Push — 9.x ( 7da50e...327d8d )
by Tim
09:38
created
src/Observers/ConvertDecimalsObserver.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
         foreach ($this->getColumnNamesToConvert() as $columnName) {
50 50
             // convert the value, if the attribute code match
51 51
             if ($this->hasValue($columnName)) {
52
-                $this->setValue($columnName, $this->getNumberConverter()->convert($this->getValue($columnName, null, function ($value) {
52
+                $this->setValue($columnName, $this->getNumberConverter()->convert($this->getValue($columnName, null, function($value) {
53 53
                     return trim($value);
54 54
                 })));
55 55
             }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     protected function getEavAttributesByBackendType($backendType)
87 87
     {
88
-        return array_filter($this->getSubject()->getAttributes(), function ($attribute) use ($backendType) {
88
+        return array_filter($this->getSubject()->getAttributes(), function($attribute) use ($backendType) {
89 89
             return $attribute[MemberNames::BACKEND_TYPE] === $backendType;
90 90
         });
91 91
     }
Please login to merge, or discard this patch.