@@ -79,8 +79,8 @@ |
||
| 79 | 79 | |
| 80 | 80 | $page_setup['navbar'] = [ |
| 81 | 81 | 'Overview' => $device_url, |
| 82 | - 'Graphs' => $device_url . '/graphs', |
|
| 83 | - 'Health' => $device_url . '/health', |
|
| 82 | + 'Graphs' => $device_url.'/graphs', |
|
| 83 | + 'Health' => $device_url.'/health', |
|
| 84 | 84 | ]; |
| 85 | 85 | return view('devices.show', compact(['device', 'page_setup', 'request', 'page'])); |
| 86 | 86 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function register() |
| 48 | 48 | { |
| 49 | - \App::bind('settings', function () { |
|
| 49 | + \App::bind('settings', function() { |
|
| 50 | 50 | return new \App\Settings; |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | // match the current password for the supplied user id |
| 42 | 42 | Validator::extend( |
| 43 | 43 | 'password', |
| 44 | - function ($attribute, $value, $parameters, $validator) { |
|
| 44 | + function($attribute, $value, $parameters, $validator) { |
|
| 45 | 45 | return Auth::validate([ |
| 46 | 46 | 'user_id' => $parameters[0], |
| 47 | 47 | 'password' => $value, |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | { |
| 151 | 151 | parent::boot(); |
| 152 | 152 | |
| 153 | - static::deleting(function (Device $device) { |
|
| 153 | + static::deleting(function(Device $device) { |
|
| 154 | 154 | // delete related data |
| 155 | 155 | $device->ports()->delete(); |
| 156 | 156 | $device->syslogs()->delete(); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | // return the table filter merged with $filter, fetch from cache if available |
| 65 | - return array_merge($filter, Cache::rememberForever('query_builder_table_filter', function () { |
|
| 65 | + return array_merge($filter, Cache::rememberForever('query_builder_table_filter', function() { |
|
| 66 | 66 | $tableFilter = []; |
| 67 | 67 | $schema = DB::getDoctrineSchemaManager(); |
| 68 | 68 | |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } elseif ($format == 'csv') { |
| 66 | 66 | return $this->csvSerialize(); |
| 67 | 67 | } |
| 68 | - return null; // shouldn't get here |
|
| 68 | + return null; // shouldn't get here |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | return $this->datatables |
| 41 | 41 | ->eloquent($this->query()) |
| 42 | - ->editColumn('device.hostname', function ($syslog) { |
|
| 42 | + ->editColumn('device.hostname', function($syslog) { |
|
| 43 | 43 | $hostname = is_null($syslog->device) ? trans('devices.text.deleted') : $syslog->device->hostname; |
| 44 | 44 | return '<a href="'.url("devices/".$syslog->device_id).'">'.$hostname.'</a>'; |
| 45 | 45 | }) |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | { |
| 43 | 43 | return $this->datatables |
| 44 | 44 | ->eloquent($this->query()) |
| 45 | - ->editColumn('device.hostname', function ($eventlog) { |
|
| 45 | + ->editColumn('device.hostname', function($eventlog) { |
|
| 46 | 46 | $hostname = is_null($eventlog->device) ? trans('devices.text.deleted') : $eventlog->device->hostname; |
| 47 | 47 | return '<a href="'.url("devices/".$eventlog->device_id).'">'.$hostname.'</a>'; |
| 48 | 48 | }) |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function getAjax() |
| 107 | 107 | { |
| 108 | - return url('eventlog?device_id=' . $this->device_id); |
|
| 108 | + return url('eventlog?device_id='.$this->device_id); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | public function forDevice($device_id) |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | return $this->datatables |
| 41 | 41 | ->eloquent($this->query()) |
| 42 | - ->editColumn('device.hostname', function ($inventory) { |
|
| 42 | + ->editColumn('device.hostname', function($inventory) { |
|
| 43 | 43 | $hostname = is_null($inventory->device) ? trans('devices.text.deleted') : $inventory->device->hostname; |
| 44 | 44 | return '<a href="'.url("devices/".$inventory->device_id).'">'.$hostname.'</a>'; |
| 45 | 45 | }) |