Skip to content

Commit d3d8bbc

Browse files
committed
Cleanup.
1 parent c3d04cd commit d3d8bbc

6 files changed

Lines changed: 8 additions & 507 deletions

File tree

LICENSE.md

Lines changed: 0 additions & 478 deletions
This file was deleted.

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"simplesamlphp/composer-module-installer": "~1.0"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^9.0 | ^10.0",
3130
"squizlabs/php_codesniffer": "^3.0"
3231
},
3332
"autoload-dev": {

phpcs.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
2-
<ruleset name="drupalauth">
3-
<description>The coding standard for drupalauth.</description>
2+
<ruleset name="rollbar">
3+
<description>The coding standard for rollbar.</description>
44

55
<rule ref="PSR12" />
66
<file>./src</file>

phpunit.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

scripts/phpunit.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/Logger/RollbarLoggingHandler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515
*/
1616
class RollbarLoggingHandler implements LoggingHandlerInterface
1717
{
18-
1918
/**
2019
* Checks if the Rollbar is initialized.
2120
*
2221
* @var bool
2322
*/
24-
private $isInitialized = FALSE;
23+
private $isInitialized = false;
2524

2625
/**
2726
* This array contains the mappings from syslog log level to names.
@@ -83,20 +82,21 @@ public function __construct(Configuration $config)
8382
/**
8483
* Initialize rollbar object.
8584
*/
86-
protected function init() {
85+
protected function init()
86+
{
8787
if (empty($this->token) || empty($this->environment)) {
88-
return FALSE;
88+
return false;
8989
}
9090

9191
if (!$this->isInitialized) {
9292
Rollbar::init([
9393
'access_token' => $this->token,
9494
'environment' => $this->environment,
9595
]);
96-
$this->isInitialized = TRUE;
96+
$this->isInitialized = true;
9797
}
9898

99-
return TRUE;
99+
return true;
100100
}
101101

102102

0 commit comments

Comments
 (0)