aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/Debug/DebugBar.php
blob: bbd80c9f13fce2d026b435fe86a3573e79338352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
namespace Studip\Debug;

final class DebugBar
{
    public static function isActivated(): bool
    {
        return \Studip\ENV === 'development'
            && ($_ENV['DEBUG_BAR'] ?? false)
            && class_exists(\DebugBar\DebugBar::class);
    }
}