original_string: public function getUserPreference($userLogin, $preferenceName)
      {
          Piwik::checkUserHasSuperUserAccessOrIsTheUser($userLogin);
  
          $optionValue = $this->getPreferenceValue($userLogin, $preferenceName);
  
          if ($optionValue !== false) {
              return $optionValue;
          }
  
          return $this->getDefaultUserPreference($preferenceName, $userLogin);
      }
code: public function getUserPreference($userLogin, $preferenceName)
      {
          Piwik::checkUserHasSuperUserAccessOrIsTheUser($userLogin);
  
          $optionValue = $this->getPreferenceValue($userLogin, $preferenceName);
  
          if ($optionValue !== false) {
              return $optionValue;
          }
  
          return $this->getDefaultUserPreference($preferenceName, $userLogin);
      }
code_tokens: public function getUserPreference ( $ userLogin , $ preferenceName ) { Piwik :: checkUserHasSuperUserAccessOrIsTheUser ( $ userLogin ) ; $ optionValue = $ this -> getPreferenceValue ( $ userLogin , $ preferenceName ) ; if ( $ optionValue !== false ) { return $ optionValue ; } return $ this -> getDefaultUserPreference ( $ preferenceName , $ userLogin ) ; }
docstring: Gets a user preference
  @param string $userLogin
  @param string $preferenceName
  @return bool|string
docstring_tokens: Gets a user preference