mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI * Disable style check
This commit is contained in:
@@ -4,16 +4,18 @@
|
||||
* @package LibreNMS
|
||||
* @subpackage Alerts
|
||||
*/
|
||||
|
||||
namespace LibreNMS\Alert\Transport;
|
||||
|
||||
use LibreNMS\Enum\AlertState;
|
||||
use LibreNMS\Alert\Transport;
|
||||
use LibreNMS\Enum\AlertState;
|
||||
|
||||
class Linenotify extends Transport
|
||||
{
|
||||
public function deliverAlert($obj, $opts)
|
||||
{
|
||||
$opts['line-notify-access-token'] = $this->config['line-notify-access-token'];
|
||||
|
||||
return $this->contactLineNotify($obj, $opts);
|
||||
}
|
||||
|
||||
@@ -36,6 +38,7 @@ class Linenotify extends Transport
|
||||
if ($code != 200) {
|
||||
return 'HTTP Status code ' . $code;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -47,12 +50,12 @@ class Linenotify extends Transport
|
||||
'title' => 'Token',
|
||||
'name' => 'line-notify-access-token',
|
||||
'descr' => 'LINE Notify Token',
|
||||
'type' => 'text'
|
||||
]
|
||||
'type' => 'text',
|
||||
],
|
||||
],
|
||||
'validation' => [
|
||||
'line-notify-access-token' => 'required|string',
|
||||
]
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user