Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
elaman committed May 1, 2024
1 parent c3d04cd commit d3d8bbc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 507 deletions.
478 changes: 0 additions & 478 deletions LICENSE.md

This file was deleted.

1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"simplesamlphp/composer-module-installer": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0 | ^10.0",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload-dev": {
Expand Down
4 changes: 2 additions & 2 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<ruleset name="drupalauth">
<description>The coding standard for drupalauth.</description>
<ruleset name="rollbar">
<description>The coding standard for rollbar.</description>

<rule ref="PSR12" />
<file>./src</file>
Expand Down
13 changes: 0 additions & 13 deletions phpunit.xml

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/phpunit.sh

This file was deleted.

12 changes: 6 additions & 6 deletions src/Logger/RollbarLoggingHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
*/
class RollbarLoggingHandler implements LoggingHandlerInterface
{

/**
* Checks if the Rollbar is initialized.
*
* @var bool
*/
private $isInitialized = FALSE;
private $isInitialized = false;

/**
* This array contains the mappings from syslog log level to names.
Expand Down Expand Up @@ -83,20 +82,21 @@ public function __construct(Configuration $config)
/**
* Initialize rollbar object.
*/
protected function init() {
protected function init()
{
if (empty($this->token) || empty($this->environment)) {
return FALSE;
return false;
}

if (!$this->isInitialized) {
Rollbar::init([
'access_token' => $this->token,
'environment' => $this->environment,
]);
$this->isInitialized = TRUE;
$this->isInitialized = true;
}

return TRUE;
return true;
}


Expand Down

0 comments on commit d3d8bbc

Please sign in to comment.