public function emailCheck($warnings)
    {
        if ($warnings) {
            foreach ($warnings as $warning) {
                if ($warning === static::warnings()['email']) {
                    return false;
                }
            }
        }
        $user = User::findMe();
        if ($user && empty($user->email)) {
            $this->warning(static::warnings()['email'], false);
        }
        return false;
    }
public function emailCheck($warnings)
    {
        if ($warnings) {
            foreach ($warnings as $warning) {
                if ($warning === static::warnings()['email']) {
                    return false;
                }
            }
        }
        $user = User::findMe();
        if ($user && empty($user->email)) {
            $this->warning(static::warnings()['email'], false);
        }
        return false;
    }
public function emailCheck ( $ warnings ) { if ( $ warnings ) { foreach ( $ warnings as $ warning ) { if ( $ warning === static :: warnings ( ) [ 'email' ] ) { return false ; } } } $ user = User :: findMe ( ) ; if ( $ user && empty ( $ user -> email ) ) { $ this -> warning ( static :: warnings ( ) [ 'email' ] , false ) ; } return false ; }
Performs email check.
@param array $warnings Flash warnings
@return bool
@since 0.2
Performs email check .