Skip to content

Commit

Permalink
Fix some typos (#3973)
Browse files Browse the repository at this point in the history
Most of them were found by `codespell` and `typos`.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil authored Oct 1, 2024
1 parent 65999d0 commit 5e939de
Show file tree
Hide file tree
Showing 33 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Cookie/CookieManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class CookieManager
* @param ?string $sessionName Session cookie name (if null defaults to PHP
* settings)
* @param bool $httpOnly Are cookies HTTP only? (default = true)
* @param string $sameSite Default SameSite attribute (defaut = 'Lax')
* @param string $sameSite Default SameSite attribute (default = 'Lax')
*/
public function __construct(
$cookies,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ public function getAuthHeader()
}

/**
* Returns permanant links for Ovedrive resources
* Returns permanent links for OverDrive resources
*
* @param array $overDriveIds An array of overdrive IDs we need links for
* @param array $overDriveIds An array of OverDrive IDs we need links for
*
* @return array<string>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,9 @@ public function getFormatNames()
}

/**
* Returns permanant links for Ovedrive resources
* Returns permanent links for OverDrive resources
*
* @param array $overDriveIds An array of overdrive IDs we need links for
* @param array $overDriveIds An array of OverDrive IDs we need links for
*
* @return array<string>
*/
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/Aleph.php
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ public function getConfig($func, $params = [])
/**
* Get Pick Up Locations
*
* This is responsible for gettting a list of valid library locations for
* This is responsible for getting a list of valid library locations for
* holds / recall retrieval
*
* @param array $patron Patron information returned by the patronLogin method.
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/Alma.php
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ public function getConfig($function, $params = [])
* Place a hold request via Alma API. This could be a title level request or
* an item level request.
*
* @param array $holdDetails An associative array w/ atleast patron and item_id
* @param array $holdDetails An associative array w/ at least patron and item_id
*
* @return array success: bool, sysMessage: string
*
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/Demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Demo extends AbstractBase implements \VuFind\I18n\HasSorterInterface
use \VuFind\I18n\HasSorterTrait;

/**
* Catalog ID used to distinquish between multiple Demo driver instances with the
* Catalog ID used to distinguish between multiple Demo driver instances with the
* MultiBackend driver
*
* @var string
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/Folio.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ protected function getItemById($itemId)
}

/**
* Given an instance object or identifer, or a holding or item identifier,
* Given an instance object or identifier, or a holding or item identifier,
* determine an appropriate value to use as VuFind's bibliographic ID.
*
* @param string $instanceOrInstanceId Instance object or ID (will be looked up
Expand Down
6 changes: 3 additions & 3 deletions module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class HorizonXMLAPI extends Horizon implements \VuFindHttp\HttpServiceAwareInter
protected $wsPickUpLocations;

/**
* Defaut pickup location for holds
* Default pickup location for holds
*
* @var string
*/
Expand Down Expand Up @@ -561,7 +561,7 @@ protected function renewItems($session, $items)
* @param string $session A valid Horizon session key
* @param array $requestDetails An array of request details
*
* @return array An array witk keys indicating the a success (boolean),
* @return array An array with keys indicating the success (boolean),
* status (string) and sysMessage (string) if available
*/
protected function placeRequest($session, $requestDetails)
Expand Down Expand Up @@ -676,7 +676,7 @@ protected function cancelRequest($session, $data)
}
}

// Go through the submited bib ids and look for a match
// Go through the submitted bib ids and look for a match
foreach ($data as $values) {
$itemID = $values['item_id'];
// If the bib id is matched, the cancel must have failed
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public function getConfig($function, $params = [])
/**
* Get Pick Up Locations
*
* This is responsible for gettting a list of valid library locations for
* This is responsible for getting a list of valid library locations for
* holds / recall retrieval
*
* @param array $patron Patron information returned by the patronLogin
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/KohaRest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ public function cancelHolds($cancelDetails)
/**
* Get Pick Up Locations
*
* This is responsible for gettting a list of valid library locations for
* This is responsible for getting a list of valid library locations for
* holds / recall retrieval
*
* @param array $patron Patron information returned by the patronLogin
Expand Down
4 changes: 2 additions & 2 deletions module/VuFind/src/VuFind/ILS/Driver/PAIA.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ public function getNewItems($page, $limit, $daysOld, $fundID)
/**
* Get Pick Up Locations
*
* This is responsible for gettting a list of valid library locations for
* This is responsible for getting a list of valid library locations for
* holds / recall retrieval
*
* @param array $patron Patron information returned by the patronLogin
Expand Down Expand Up @@ -1746,7 +1746,7 @@ protected function paiaGetRequest($file, $access_token)
}

/**
* Helper function for PAIA to uniformely parse JSON
* Helper function for PAIA to uniformly parse JSON
*
* @param string $file JSON data
*
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/Polaris.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public function placeHold($holdDetails)
/**
* Get Pick Up Locations
*
* This is responsible for gettting a list of valid library locations for
* This is responsible for getting a list of valid library locations for
* holds / recall retrieval
*
* @param array $patron Patron information returned by the patronLogin
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/SierraRest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ public function updateHolds(
/**
* Get Pick Up Locations
*
* This is responsible for gettting a list of valid library locations for
* This is responsible for getting a list of valid library locations for
* holds / recall retrieval
*
* @param array $patron Patron information returned by the patronLogin
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/Unicorn.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function getConfig($function, $params = [])
/**
* Get Pick Up Locations
*
* This is responsible for gettting a list of valid library locations for
* This is responsible for getting a list of valid library locations for
* holds / recall retrieval
*
* @param array $patron Patron information returned by the patronLogin
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/Virtua.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public function getHolding($id, array $patron = null, array $options = [])
* - Return the holdings array with true/false and a reason.
*
* Because of the location comparisons with the patron's
* location that occur here we also take the oppurtunity
* location that occur here we also take the opportunity
* to push their "Home" location to the top.
*
* @param string $patron_id ID of patron
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ protected function pickUpLocationIsValid($pickUpLocation, $patron, $holdDetails)
/**
* Get Pick Up Locations
*
* This is responsible for gettting a list of valid library locations for
* This is responsible for getting a list of valid library locations for
* holds / recall retrieval
*
* @param array $patron Patron information returned by the patronLogin
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Record/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function isFallback($source)
}

/**
* Check whether a record source is cachable
* Check whether a record source is cacheable
*
* @param string $source Record source
*
Expand Down
4 changes: 2 additions & 2 deletions module/VuFind/src/VuFind/Record/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function loadBatchForSource(
$list = new Checklist($ids);
$cachedRecords = [];
if (null !== $this->recordCache && $this->recordCache->isPrimary($source)) {
// Try to load records from cache if source is cachable
// Try to load records from cache if source is cacheable
$cachedRecords = $this->recordCache->lookupBatch($ids, $source);
// Check which records could not be loaded from the record cache
foreach ($cachedRecords as $cachedRecord) {
Expand Down Expand Up @@ -273,7 +273,7 @@ public function loadBatchForSource(
$list->hasUnchecked() && null !== $this->recordCache
&& $this->recordCache->isFallback($source)
) {
// Try to load missing records from cache if source is cachable
// Try to load missing records from cache if source is cacheable
$cachedRecords = $this->recordCache
->lookupBatch($list->getUnchecked(), $source);
}
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/View/Helper/Root/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function getVocabularies(\VuFind\RecordDriver\AbstractBase $driver)
* Generate all metatags for RecordDriver and add to page
*
* Decide which Plugins to load for the given RecordDriver
* dependant on configuration. (only by class name,
* dependent on configuration. (only by class name,
* namespace will not be considered)
*
* @param \VuFind\RecordDriver\AbstractBase $driver Record driver
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/XSLT/Import/VuFindGeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
class VuFindGeo
{
/**
* Method for logging errors (overrideable for testing purposes)
* Method for logging errors (overridable for testing purposes)
*
* @var callable
*/
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFindTest/Integration/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Session extends \Behat\Mink\Session
protected $coverageDir = '';

/**
* Set remote code coverate configuration
* Set remote code coverage configuration
*
* @param string $testName Test name
* @param string $coverageDir Coverage data directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ base-uri[] = "'self'"
;
; Set URI that some browsers use to report CSP violation.
report-uri[] = 'https://abc.report-uri.com'
; Set the named endpoint that other borwsers use to report CSP violations. The endpoint name
; Set the named endpoint that other browsers use to report CSP violations. The endpoint name
; should match a group name in ReportTo below.
report-to[] = 'CSPReportingEndpoint'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public function testCartPrint()
* Assert visibility
*
* @param array $combo Current Site configuration
* @param bool[] $elements Array of element visibilty states indexed by name
* @param bool[] $elements Array of element visibility states indexed by name
* @param string $name Name of element to check
* @param string $exp Expected visibility
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ public function testCollapseStatePersistence(): void

// We have now reloaded the page. Let's toggle format off and on to confirm
// that it was opened, and let's also toggle building on to confirm that
// it was not alread opened.
// it was not already opened.
$this->clickCss($page, '#side-panel-format .title'); // off
$this->waitForPageLoad($page);
$this->clickCss($page, '#side-panel-format .collapsed'); // on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ public function testIsHoldableCaseSensitivityConfig(): void

/**
* Test calls to isHoldable using exact mode with invalid
* location values and paramter values to isHoldable
* location values and parameter values to isHoldable
*
* @depends testTokens
*
Expand Down Expand Up @@ -1264,7 +1264,7 @@ public function testGetPagedResultsEqualToLimit(): void
* Test getPagedResults with estimates being passed back from folio
* for the first response. This is different from
* testGetPagedResultsEqualToLimit since the totalRecords in the
* response from the API is inacurrate for the first response
* response from the API is inaccurate for the first response
* (i.e. just an estimate).
*
* @depends testTokens
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public function testGetCleanISBNs($result, $mode, $filterInvalid)
}

/**
* Test whether author deduplication works corrrectly.
* Test whether author deduplication works correctly.
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ protected function isGuest()
* Obtain the session to use with the EDS API from cache if it exists. If not,
* then generate a new one.
*
* @param bool $isGuest Whether or not this sesssion will be a guest session
* @param bool $isGuest Whether or not this session will be a guest session
* @param string $profile Authentication to use for generating a new session
* if necessary
*
Expand Down
2 changes: 1 addition & 1 deletion module/VuFindSearch/src/VuFindSearch/Backend/EDS/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function __construct($settings = [])
}

/**
* Obtain edsapi search critera and application related settings
* Obtain edsapi search criteria and application related settings
*
* @param string $authenticationToken Authentication token
* @param string $sessionToken Session token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function init()
*/
protected function query($command, ParamBag $data = null)
{
// If we don't have a session as long as we're not being explict
// If we don't have a session as long as we're not being explicit
if (!$this->session && $command !== 'init') {
$this->init();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function ($value) {
// pcAvailability = false
// By setting this value to true, also matches, which
// are NOT available via Holdingsfile are returned
// (yes, right, set this to true - thats ExLibris Logic)
// (yes, right, set this to true - that's ExLibris Logic)
if ($args['pcAvailability']) {
$qs[] = 'pcAvailability=true';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function mergeWith(Spellcheck $spellcheck)
}
}

// Store secondary suggestions in case merge yielded non-useful
// Store secondary suggestions in case merge yielded useless
// result set:
if (!$this->secondary) {
$this->secondary = $spellcheck;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function runAdvancedQuestionTest($qb, $handler, $test)

/**
* Run the standard suite of question mark tests, accounting for differences
* between stanard Lucene, basic Dismax and eDismax handlers.
* between standard Lucene, basic Dismax and eDismax handlers.
*
* @param array $builderParams Parameters for QueryBuilder constructor
* @param string $handler Search handler: dismax|edismax|standard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ protected function getMinifiedData($details, $concatPath)
/**
* Process and return items in index order
*
* @param string|int $indent Amount of whitespace/string to use for indention
* @param string|int $indent Amount of whitespace/string to use for indentation
*
* @return string
*/
Expand Down Expand Up @@ -466,7 +466,7 @@ protected function isPipelineActive()
* Render link elements as string
* Customized to minify and concatenate
*
* @param string|int $indent Amount of whitespace or string to use for indention
* @param string|int $indent Amount of whitespace or string to use for indentation
*
* @return string
*/
Expand Down

0 comments on commit 5e939de

Please sign in to comment.