Completed
Pull Request — master (#23)
by
unknown
06:28
created
src/Component/PageTotalsRow.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
             $valueCalculators[$column->getId()] = $column->getValueCalculator();
141 141
             $valueFormatters[$column->getId()] = $prevFormatter = $column->getValueFormatter();
142 142
             $column->setValueCalculator(null);
143
-            $column->setValueFormatter(function ($value) use ($prevFormatter, $column) {
143
+            $column->setValueFormatter(function($value) use ($prevFormatter, $column) {
144 144
                 $operation = $this->getOperation($column->getId());
145
-                if ($operation === static::OPERATION_IGNORE){
145
+                if ($operation === static::OPERATION_IGNORE) {
146 146
                     return null;
147 147
                 }
148 148
                 if ($prevFormatter) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 }
151 151
                 $operation = $this->getOperation($column->getId());
152 152
                 if ($value !== null && is_string($operation) && array_key_exists($operation, $this->valuePrefixes)) {
153
-                    $value = $this->valuePrefixes[$operation] . ' ' . $value;
153
+                    $value = $this->valuePrefixes[$operation].' '.$value;
154 154
                 }
155 155
                 return $value;
156 156
             });
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     protected function replaceGridDataInjector(Grid $grid)
245 245
     {
246 246
         /** @var CollectionView $collectionView */
247
-        $grid->getCollectionView()->setDataInjector(function ($dataRow) use ($grid) {
247
+        $grid->getCollectionView()->setDataInjector(function($dataRow) use ($grid) {
248 248
             $grid->setCurrentRow($dataRow);
249 249
             $this->processCurrentRow();
250 250
         });
Please login to merge, or discard this patch.