File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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 >
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515 */
1616class 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
You can’t perform that action at this time.
0 commit comments