original_string: protected function findUser($idOrEmail)
      {
          if (!$user = User::find()->andWhere(is_numeric($idOrEmail) ? ['id' => $idOrEmail] : ['email' => $idOrEmail])->limit(1)->one()) {
              $this->stderr('User not found.' . PHP_EOL);
          }
          return $user;
      }
code: protected function findUser($idOrEmail)
      {
          if (!$user = User::find()->andWhere(is_numeric($idOrEmail) ? ['id' => $idOrEmail] : ['email' => $idOrEmail])->limit(1)->one()) {
              $this->stderr('User not found.' . PHP_EOL);
          }
          return $user;
      }
code_tokens: protected function findUser ( $ idOrEmail ) { if ( ! $ user = User :: find ( ) -> andWhere ( is_numeric ( $ idOrEmail ) ? [ 'id' => $ idOrEmail ] : [ 'email' => $ idOrEmail ] ) -> limit ( 1 ) -> one ( ) ) { $ this -> stderr ( 'User not found.' . PHP_EOL ) ; } return $ user ; }
docstring: Finds user by id or email
  @param int|string $idOrEmail internal podium user id or email
  @return User
docstring_tokens: Finds user by id or email