original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Performs email check.
  @param array $warnings Flash warnings
  @return bool
  @since 0.2
docstring_tokens: Performs email check .