Passed
Push — master ( b6e0a2...70a407 )
by Paras
02:43
created
src/BarChartMetricResult.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function jsonSerialize()
114 114
     {
115 115
         return [
116
-            'value' => collect($this->value ?? [])->map(function ($value, $label) {
116
+            'value' => collect($this->value ?? [])->map(function($value, $label) {
117 117
                 return ['label' => $label, 'value' => $value];
118 118
             })->values()->all(),
119 119
             'prefix' => $this->prefix,
@@ -136,8 +136,7 @@  discard block
 block discarded – undo
136 136
             if (2 == count($labelParts)) {
137 137
                 $newLabel = $this->formatStrNumber($labelParts[0], $labelPrecision) . ' - ' .
138 138
                     $this->formatStrNumber($labelParts[1], $labelPrecision);
139
-                $newData[$newLabel] = isset($newData[$newLabel]) ? ($value + $newData[$newLabel]) :
140
-                    $value;
139
+                $newData[$newLabel] = isset($newData[$newLabel]) ? ($value + $newData[$newLabel]) : $value;
141 140
             }
142 141
         }
143 142
 
Please login to merge, or discard this patch.
src/HasFrequencyDistributions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             ->orderBy('minval', 'asc')
45 45
             ->get();
46 46
 
47
-        return $this->result($results->mapWithKeys(function ($result) use ($column) {
47
+        return $this->result($results->mapWithKeys(function($result) use ($column) {
48 48
             return $this->formatAggregateResult($result, 'rng');
49 49
         })->all());
50 50
     }
Please login to merge, or discard this patch.
src/NovaBarMetricsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	 */
14 14
 	public function boot()
15 15
 	{
16
-		Nova::serving(function (ServingNova $event) {
16
+		Nova::serving(function(ServingNova $event) {
17 17
 			Nova::script('nova-bar-metrics', __DIR__ . '/../dist/js/nova-bar-metrics.js');
18 18
 			// Nova::style('nova-bar-metrics', __DIR__ . '/../dist/css/nova-bar-metrics.css');
19 19
 		});
Please login to merge, or discard this patch.