src/Manipulators/Brightness.php
public function getBrightness()
    {
        if (!preg_match('/^-*[0-9]+$/', $this->bri)) {
            return;
        }

        if ($this->bri < -100 or $this->bri > 100) {
            return;
        }

        return (int) $this->bri;
    }
public function getBrightness()
    {
        if (!preg_match('/^-*[0-9]+$/', $this->bri)) {
            return;
        }

        if ($this->bri < -100 or $this->bri > 100) {
            return;
        }

        return (int) $this->bri;
    }
public function getBrightness ( ) { if ( ! preg_match ( '/^-*[0-9]+$/' , $ this -> bri ) ) { return ; } if ( $ this -> bri < - 100 or $ this -> bri > 100 ) { return ; } return ( int ) $ this -> bri ; }
Resolve brightness amount.
@return string The resolved brightness amount.
Resolve brightness amount .