Code clean up. Remove some duplicate keys; Remove some unused parameters; Fix some FQCN;

This commit is contained in:
Luis Henrique Mulinari
2017-10-11 21:19:07 +02:00
parent e426eff98c
commit 968bc6a3ce
9 changed files with 12 additions and 17 deletions
+4 -4
View File
@@ -71,7 +71,7 @@ class MetricRepository
$pointKey = $dateTime->sub(new DateInterval('PT1M'))->format('H:i');
}
return $points->sortBy(function ($point, $key) use ($points) {
return $points->sortBy(function ($point, $key) {
return $key;
});
}
@@ -98,7 +98,7 @@ class MetricRepository
$pointKey = $dateTime->sub(new DateInterval('PT1H'))->format('H:00');
}
return $points->sortBy(function ($point, $key) use ($points) {
return $points->sortBy(function ($point, $key) {
return $key;
});
}
@@ -124,7 +124,7 @@ class MetricRepository
$pointKey = $dateTime->sub(new DateInterval('P1D'))->format('Y-m-d');
}
return $points->sortBy(function ($point, $key) use ($points) {
return $points->sortBy(function ($point, $key) {
return $key;
});
}
@@ -151,7 +151,7 @@ class MetricRepository
$pointKey = $dateTime->sub(new DateInterval('P1D'))->format('Y-m-d');
}
return $points->sortBy(function ($point, $key) use ($points) {
return $points->sortBy(function ($point, $key) {
return $key;
});
}