public function register($check, $tags = [])
    {
        $check = ['check' => $check, 'tags' => []];
        if (!empty($tags)) {
            $check['tags'] = $tags;
        }

        $this->registeredChecks[] = $check;
    }
public function register($check, $tags = [])
    {
        $check = ['check' => $check, 'tags' => []];
        if (!empty($tags)) {
            $check['tags'] = $tags;
        }

        $this->registeredChecks[] = $check;
    }
public function register ( $ check , $ tags = [ ] ) { $ check = [ 'check' => $ check , 'tags' => [ ] ] ; if ( ! empty ( $ tags ) ) { $ check [ 'tags' ] = $ tags ; } $ this -> registeredChecks [ ] = $ check ; }
Register checks to be run with the check registry.

@param callable $check
@param array    $tags

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Register checks to be run with the check registry .