Applied fixes from StyleCI
This commit is contained in:
committed by
James Brooks
parent
1c27cf7360
commit
6e9d5f5e8a
@@ -22,7 +22,8 @@ class MetricPresenter extends AbstractPresenter
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function view_name() {
|
public function view_name()
|
||||||
|
{
|
||||||
switch ($this->wrappedObject->default_view) {
|
switch ($this->wrappedObject->default_view) {
|
||||||
case 0: return 'last_hour';
|
case 0: return 'last_hour';
|
||||||
case 1: return 'today';
|
case 1: return 'today';
|
||||||
@@ -36,7 +37,8 @@ class MetricPresenter extends AbstractPresenter
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function trans_string_name() {
|
public function trans_string_name()
|
||||||
|
{
|
||||||
switch ($this->wrappedObject->default_view) {
|
switch ($this->wrappedObject->default_view) {
|
||||||
case 0: return 'last_hour';
|
case 0: return 'last_hour';
|
||||||
case 1: return 'hourly';
|
case 1: return 'hourly';
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
class AlterTableMetricsAddDefaultViewColumn extends Migration
|
class AlterTableMetricsAddDefaultViewColumn extends Migration
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user