Skip to content

Commit 0d56bbd

Browse files
authored
Apply fixes from StyleCI (librenms#12123)
1 parent 2fc3a21 commit 0d56bbd

File tree

1,090 files changed

+0
-1367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,090 files changed

+0
-1367
lines changed

LibreNMS/Alert/AlertDB.php

-3
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@
2424
* @license GPL
2525
*
2626
* Modified by:
27-
* @package LibreNMS
2827
* @link http://librenms.org
2928
* @copyright 2019 KanREN, Inc.
3029
* @author Heath Barnhart <[email protected]>
3130
*/
3231

3332
namespace LibreNMS\Alert;
3433

35-
use App\Models\Device;
36-
use LibreNMS\Alert\AlertUtil;
3734
use LibreNMS\Alerting\QueryBuilderParser;
3835

3936
class AlertDB

LibreNMS/Alert/AlertData.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* You should have received a copy of the GNU General Public License
1818
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
*
20-
* @package LibreNMS
2120
* @link http://librenms.org
2221
* @copyright 2018 Tony Murray
2322
* @author Tony Murray <[email protected]>

LibreNMS/Alert/AlertRules.php

-8
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,14 @@
2121
* @author Daniel Preussker <[email protected]>
2222
* @copyright 2014 f0o, LibreNMS
2323
* @license GPL
24-
* @package LibreNMS
25-
* @subpackage Alerts
26-
*
27-
* Modeified by:
28-
* @package LibreNMS
2924
* @link http://librenms.org
3025
* @copyright 2019 KanREN, Inc.
3126
* @author Heath Barnhart <[email protected]>
3227
*/
3328

3429
namespace LibreNMS\Alert;
3530

36-
use App\Models\Device;
3731
use Carbon\Carbon;
38-
use LibreNMS\Alert\AlertDB;
39-
use LibreNMS\Alert\AlertUtil;
4032
use LibreNMS\Enum\AlertState;
4133

4234
class AlertRules

LibreNMS/Alert/AlertUtil.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* You should have received a copy of the GNU General Public License
1818
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
*
20-
* @package LibreNMS
2120
* @link http://librenms.org
2221
* @copyright 2019 KanREN, Inc.
2322
* @author Heath Barnhart <[email protected]>

LibreNMS/Alert/Template.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* You should have received a copy of the GNU General Public License
1818
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
*
20-
* @package LibreNMS
2120
* @link http://librenms.org
2221
* @copyright 2018 Neil Lathwood
2322
* @author Neil Lathwood <[email protected]>

LibreNMS/Alert/Transport/Alerta.php

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
* @author GitStoph <https://github.com/GitStoph>
1111
* @copyright 2019 GitStoph
1212
* @license GPL
13-
* @package LibreNMS
14-
* @subpackage Alerts
1513
*/
1614

1715
namespace LibreNMS\Alert\Transport;

LibreNMS/Alert/Transport/Alertmanager.php

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
* Alertmanager Transport
1818
* @copyright 2019 LibreNMS
1919
* @license GPL
20-
* @package LibreNMS
21-
* @subpackage Alerts
2220
*/
2321

2422
namespace LibreNMS\Alert\Transport;

LibreNMS/Alert/Transport/Api.php

-4
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@
1919
* @author PipoCanaja (github.com/PipoCanaja)
2020
* @copyright 2014 f0o, LibreNMS
2121
* @license GPL
22-
* @package LibreNMS
23-
* @subpackage Alerts
2422
*/
2523

2624
namespace LibreNMS\Alert\Transport;
2725

28-
use GuzzleHttp\Client;
2926
use LibreNMS\Alert\Transport;
30-
use LibreNMS\Enum\AlertState;
3127

3228
class Api extends Transport
3329
{

LibreNMS/Alert/Transport/Boxcar.php

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
* @author trick77 <[email protected]>
3333
* @copyright 2015 trick77, neokjames, f0o, LibreNMS
3434
* @license GPL
35-
* @package LibreNMS
36-
* @subpackage Alerts
3735
*/
3836

3937
namespace LibreNMS\Alert\Transport;

LibreNMS/Alert/Transport/Canopsis.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace LibreNMS\Alert\Transport;
44

55
use LibreNMS\Alert\Transport;
6-
use LibreNMS\Enum\AlertState;
76

87
class Canopsis extends Transport
98
{

LibreNMS/Alert/Transport/Ciscospark.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
namespace LibreNMS\Alert\Transport;
1414

1515
use LibreNMS\Alert\Transport;
16-
use LibreNMS\Enum\AlertState;
1716

1817
class Ciscospark extends Transport
1918
{

LibreNMS/Alert/Transport/Clickatell.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author f0o <[email protected]>
1919
* @copyright 2015 f0o, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Clickatell extends Transport
3128
{

LibreNMS/Alert/Transport/Discord.php

-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* You should have received a copy of the GNU General Public License
1818
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
*
20-
* @package LibreNMS
2120
* @link http://librenms.org
2221
* @copyright 2018 Ryan Finney
2322
* @author https://github.com/theherodied/
@@ -29,7 +28,6 @@
2928
namespace LibreNMS\Alert\Transport;
3029

3130
use LibreNMS\Alert\Transport;
32-
use LibreNMS\Enum\AlertState;
3331

3432
class Discord extends Transport
3533
{

LibreNMS/Alert/Transport/Dummy.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author f0o <[email protected]>
1919
* @copyright 2014 f0o, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Dummy extends Transport
3128
{

LibreNMS/Alert/Transport/Gitlab.php

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* @author Drew Hynes <[email protected]>
1919
* @copyright 2018 Drew Hynes, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;

LibreNMS/Alert/Transport/Hipchat.php

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
namespace LibreNMS\Alert\Transport;
2626

2727
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2928

3029
class Hipchat extends Transport
3130
{

LibreNMS/Alert/Transport/Irc.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@
1818
* @author f0o <[email protected]>
1919
* @copyright 2014 f0o, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
2826
use LibreNMS\Config;
29-
use LibreNMS\Enum\AlertState;
3027

3128
class Irc extends Transport
3229
{

LibreNMS/Alert/Transport/Jira.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author Aldemir Akpinar <[email protected]>
1919
* @copyright 2017 Aldemir Akpinar, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Jira extends Transport
3128
{

LibreNMS/Alert/Transport/Kayako.php

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use LibreNMS\Alert\Transport;
1616
use LibreNMS\Config;
17-
use LibreNMS\Enum\AlertState;
1817

1918
class Kayako extends Transport
2019
{

LibreNMS/Alert/Transport/Linenotify.php

-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<?php
22
/**
33
* LINE Notify Transport
4-
* @package LibreNMS
5-
* @subpackage Alerts
64
*/
75

86
namespace LibreNMS\Alert\Transport;
97

108
use LibreNMS\Alert\Transport;
11-
use LibreNMS\Enum\AlertState;
129

1310
class Linenotify extends Transport
1411
{

LibreNMS/Alert/Transport/Mail.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@
1818
* @author f0o <[email protected]>
1919
* @copyright 2014 f0o, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
2826
use LibreNMS\Config;
29-
use LibreNMS\Enum\AlertState;
3027

3128
class Mail extends Transport
3229
{

LibreNMS/Alert/Transport/Matrix.php

-4
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@
1818
* @author Raphael Dannecker (github.com/raphael247)
1919
* @copyright 2020 , LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

27-
use GuzzleHttp\Client;
2825
use LibreNMS\Alert\Transport;
29-
use LibreNMS\Enum\AlertState;
3026

3127
class Matrix extends Transport
3228
{

LibreNMS/Alert/Transport/Mattermost.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author George Pantazis <[email protected]>
1919
* @copyright 2019 George Pantazis, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Mattermost extends Transport
3128
{

LibreNMS/Alert/Transport/Msteams.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
namespace LibreNMS\Alert\Transport;
1414

1515
use LibreNMS\Alert\Transport;
16-
use LibreNMS\Enum\AlertState;
1716

1817
class Msteams extends Transport
1918
{

LibreNMS/Alert/Transport/Nagios.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author f0o <[email protected]>
1919
* @copyright 2014 f0o, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Nagios extends Transport
3128
{

LibreNMS/Alert/Transport/Opsgenie.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author Celal Emre CICEK <[email protected]>
1919
* @copyright 2017 Celal Emre CICEK
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Opsgenie extends Transport
3128
{

LibreNMS/Alert/Transport/Osticket.php

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use LibreNMS\Alert\Transport;
1616
use LibreNMS\Config;
17-
use LibreNMS\Enum\AlertState;
1817

1918
class Osticket extends Transport
2019
{

LibreNMS/Alert/Transport/Pagerduty.php

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* @author f0o <[email protected]>
1919
* @copyright 2015 f0o, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;

LibreNMS/Alert/Transport/Playsms.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author f0o <[email protected]>
1919
* @copyright 2015 f0o, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Playsms extends Transport
3128
{

LibreNMS/Alert/Transport/Pushbullet.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author f0o <[email protected]>
1919
* @copyright 2015 f0o, LibreNMS
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Pushbullet extends Transport
3128
{

LibreNMS/Alert/Transport/Pushover.php

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
* @author neokjames <[email protected]>
3333
* @copyright 2015 neokjames, f0o, LibreNMS
3434
* @license GPL
35-
* @package LibreNMS
36-
* @subpackage Alerts
3735
*/
3836

3937
namespace LibreNMS\Alert\Transport;

LibreNMS/Alert/Transport/Rocket.php

-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
* @author ToeiRei <[email protected]>
1919
* @copyright 2017 ToeiRei, LibreNMS work based on the work of f0o. It's his work.
2020
* @license GPL
21-
* @package LibreNMS
22-
* @subpackage Alerts
2321
*/
2422

2523
namespace LibreNMS\Alert\Transport;
2624

2725
use LibreNMS\Alert\Transport;
28-
use LibreNMS\Enum\AlertState;
2926

3027
class Rocket extends Transport
3128
{

0 commit comments

Comments
 (0)