Apply fixes from StyleCI (#12117)

* Apply fixes from StyleCI

* Disable style check
This commit is contained in:
Jellyfrog
2020-09-21 14:54:51 +02:00
committed by GitHub
parent 8ec9183df5
commit 77c531527c
752 changed files with 6238 additions and 5833 deletions

View File

@@ -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',
]
],
];
}
}