From bfe5fc5a6beb293ae68902b94aa2ad94f6d3578b Mon Sep 17 00:00:00 2001 From: Stefan Weil <sw@weilnetz.de> Date: Thu, 4 Dec 2014 22:17:17 +0100 Subject: [PATCH] Fix typos in comments. --- module/VuFind/src/VuFind/Connection/OpenLibrary.php | 4 ++-- module/VuFind/src/VuFind/Controller/AjaxController.php | 2 +- module/VuFind/src/VuFind/Controller/FeedbackController.php | 2 +- module/VuFind/src/VuFind/ILS/Driver/Horizon.php | 2 +- module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php | 4 ++-- module/VuFind/src/VuFind/ILS/Driver/Innovative.php | 4 ++-- module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php | 2 +- module/VuFind/src/VuFind/ILS/Driver/Virtua.php | 4 ++-- module/VuFind/src/VuFind/ILS/Driver/XCNCIP.php | 2 +- module/VuFind/src/VuFind/RecordDriver/SolrDefault.php | 2 +- module/VuFind/src/VuFind/Resolver/Driver/Ezb.php | 4 ++-- module/VuFind/tests/fixtures/configs/1.1/sitemap.ini | 2 +- module/VuFind/tests/fixtures/configs/1.2/sitemap.ini | 2 +- module/VuFind/tests/fixtures/configs/1.3/sitemap.ini | 2 +- module/VuFind/tests/fixtures/configs/1.4/sitemap.ini | 2 +- .../VuFindSearch/src/VuFindSearch/Backend/SRU/Connector.php | 2 +- 16 files changed, 21 insertions(+), 21 deletions(-) diff --git a/module/VuFind/src/VuFind/Connection/OpenLibrary.php b/module/VuFind/src/VuFind/Connection/OpenLibrary.php index 37dd94bec0a..b64345aa6d1 100644 --- a/module/VuFind/src/VuFind/Connection/OpenLibrary.php +++ b/module/VuFind/src/VuFind/Connection/OpenLibrary.php @@ -69,7 +69,7 @@ class OpenLibrary * @param bool $details Whether to return full details * @param int $limit The number of works to return * @param int $offset Paging offset - * @param bool $publicFullText Only return publically available, full-text + * @param bool $publicFullText Only return publicly available, full-text * works * * @return array @@ -117,7 +117,7 @@ class OpenLibrary * * @param string $url URL to request * @param int $limit The number of works to return - * @param bool $publicFullText Only return publically available, full-text + * @param bool $publicFullText Only return publicly available, full-text * works * * @return array diff --git a/module/VuFind/src/VuFind/Controller/AjaxController.php b/module/VuFind/src/VuFind/Controller/AjaxController.php index 85e311ce2b8..b85c0aac6bc 100644 --- a/module/VuFind/src/VuFind/Controller/AjaxController.php +++ b/module/VuFind/src/VuFind/Controller/AjaxController.php @@ -547,7 +547,7 @@ class AjaxController extends AbstractBase * * @param string $errno Error code number * @param string $errstr Error message - * @param string $errfile File where error occured + * @param string $errfile File where error occurred * @param string $errline Line number of error * * @return bool Always true to cancel default error handling diff --git a/module/VuFind/src/VuFind/Controller/FeedbackController.php b/module/VuFind/src/VuFind/Controller/FeedbackController.php index bd2e0073dbe..3949d9ef6f4 100644 --- a/module/VuFind/src/VuFind/Controller/FeedbackController.php +++ b/module/VuFind/src/VuFind/Controller/FeedbackController.php @@ -38,7 +38,7 @@ class FeedbackController extends AbstractBase } /** - * Recieves input from the user and sends an email to the recipient set in + * Receives input from the user and sends an email to the recipient set in * the config.ini * * @return void diff --git a/module/VuFind/src/VuFind/ILS/Driver/Horizon.php b/module/VuFind/src/VuFind/ILS/Driver/Horizon.php index 043d30fc483..1b0514b8261 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Horizon.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Horizon.php @@ -1053,7 +1053,7 @@ class Horizon extends AbstractBase $hzVersionFound = $row['database_revision']; } - /* The Horizon database version is made up of 4 numbers seperated by periods. + /* The Horizon database version is made up of 4 numbers separated by periods. * Explode the string and check each segment against the required version. */ $foundVersionParts = explode('.', $hzVersionFound); diff --git a/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php b/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php index 2c7827046b9..59957990b9b 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php @@ -771,7 +771,7 @@ class HorizonXMLAPI extends Horizon implements \VuFindHttp\HttpServiceAwareInter /** * Process Renewals * - * This is responsible for processing renewals and is neccessary + * This is responsible for processing renewals and is necessary * as result of renew attempt is not returned * * @param array $renewIDs A list of the items being renewed @@ -780,7 +780,7 @@ class HorizonXMLAPI extends Horizon implements \VuFindHttp\HttpServiceAwareInter * @param array $renewData A Simple XML array of loan data after the * renewal attempt * - * @return array An Array specifiying the results of each renewal attempt + * @return array An Array specifying the results of each renewal attempt */ protected function processRenewals($renewIDs, $origData, $renewData) { diff --git a/module/VuFind/src/VuFind/ILS/Driver/Innovative.php b/module/VuFind/src/VuFind/ILS/Driver/Innovative.php index 6d0a1e55eea..3434549a1a7 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Innovative.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Innovative.php @@ -157,7 +157,7 @@ class Innovative extends AbstractBase implements '/1%2C1%2C1%2CB/holdings~' . $id_ . '&FF=&1%2C0%2C' ); - // strip out html before the first occurance of 'bibItems', should be + // strip out html before the first occurrence of 'bibItems', should be // '<table class="bibItems" ' $r = substr($result, stripos($result, 'bibItems')); // strip out the rest of the first table tag. @@ -384,7 +384,7 @@ class Innovative extends AbstractBase implements // search for successful response of "RETCOD=0" if (stripos($result, "RETCOD=0") == -1) { // pin did not match, can look up specific error to return - // more usefull info. + // more useful info. return null; } diff --git a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php index c499e62a2c1..65495b33a5c 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php +++ b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php @@ -92,7 +92,7 @@ class MultiBackend extends AbstractBase protected $config = array(); /** - * The seperating values to be used for each ILS. + * The separating values to be used for each ILS. * Not yet implemented * @var object */ diff --git a/module/VuFind/src/VuFind/ILS/Driver/Virtua.php b/module/VuFind/src/VuFind/ILS/Driver/Virtua.php index 15d1deb47f9..4818b19316b 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Virtua.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Virtua.php @@ -626,7 +626,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa if ($item_stat_code !== null) { // ... but has a status, so it can't be requested. } else { - // ... can the user borrow avilable items at this + // ... can the user borrow available items at this // location? if (in_array( $location, $available_locs[$item_loc_code] @@ -920,7 +920,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa /** * Renders individual holdings against a pattern * Note fields and prediction patterns are handled - * seperately + * separately * * @param array $patterns Pattern data * @param array $field Field data diff --git a/module/VuFind/src/VuFind/ILS/Driver/XCNCIP.php b/module/VuFind/src/VuFind/ILS/Driver/XCNCIP.php index 3dd57d2eadf..ccd1385ce83 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/XCNCIP.php +++ b/module/VuFind/src/VuFind/ILS/Driver/XCNCIP.php @@ -458,7 +458,7 @@ class XCNCIP extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa '</UserElementType>'; } - // Add relevent empty elements: + // Add relevant empty elements: if (!is_array($otherElements)) { $otherElements = array($otherElements); } diff --git a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php index 216ca4590d3..b1d415b2260 100644 --- a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php +++ b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php @@ -1451,7 +1451,7 @@ class SolrDefault extends AbstractBase * * @param string $hierarchyID The hierarchy to get the tree for * - * @return mixed An associative array of hierachy trees on success (id => title), + * @return mixed An associative array of hierarchy trees on success (id => title), * false if no hierarchies found */ public function getHierarchyTrees($hierarchyID = false) diff --git a/module/VuFind/src/VuFind/Resolver/Driver/Ezb.php b/module/VuFind/src/VuFind/Resolver/Driver/Ezb.php index bb01fdf89e9..9a1dd67b489 100644 --- a/module/VuFind/src/VuFind/Resolver/Driver/Ezb.php +++ b/module/VuFind/src/VuFind/Resolver/Driver/Ezb.php @@ -222,7 +222,7 @@ class Ezb implements DriverInterface "Result[@state={$state}]/AccessURL"; $record['href'] = $xpath->query($urlXP, $result)->item($i)->nodeValue; // Service type needs to be hard-coded for calling code to properly - // categorize links. The commented out code below picks a more appropiate + // categorize links. The commented out code below picks a more appropriate // value but won't work for now -- retained for future reference. //$service_typeXP = "/OpenURLResponseXML/Full/ElectronicData/ResultList/" // . "Result[@state={$state}]/AccessLevel"; @@ -257,7 +257,7 @@ class Ezb implements DriverInterface $urlXP = "/OpenURLResponseXML/Full/PrintData/References/Reference/URL"; $record['href'] = $xpath->query($urlXP, $result)->item($i)->nodeValue; // Service type needs to be hard-coded for calling code to properly - // categorize links. The commented out code below picks a more appropiate + // categorize links. The commented out code below picks a more appropriate // value but won't work for now -- retained for future reference. //$service_typeXP = "/OpenURLResponseXML/Full/PrintData/References" // . "/Reference/Label"; diff --git a/module/VuFind/tests/fixtures/configs/1.1/sitemap.ini b/module/VuFind/tests/fixtures/configs/1.1/sitemap.ini index 68b542cef29..1d192f6eefd 100644 --- a/module/VuFind/tests/fixtures/configs/1.1/sitemap.ini +++ b/module/VuFind/tests/fixtures/configs/1.1/sitemap.ini @@ -15,7 +15,7 @@ frequency = weekly ; countPerPage indicates how many URL entries will appear in each outputted sitemap ; This is useful in case your repository is huge (as many search engines cap ; the number of urls in a sitemap to around 50000) or if you're indexing formats -; that severly reduce the amount of items that can go into a sitemap (aka +; that severely reduce the amount of items that can go into a sitemap (aka ; images indexed in google max at 1000 per sitemap). countPerPage = 10000 diff --git a/module/VuFind/tests/fixtures/configs/1.2/sitemap.ini b/module/VuFind/tests/fixtures/configs/1.2/sitemap.ini index 68b542cef29..1d192f6eefd 100644 --- a/module/VuFind/tests/fixtures/configs/1.2/sitemap.ini +++ b/module/VuFind/tests/fixtures/configs/1.2/sitemap.ini @@ -15,7 +15,7 @@ frequency = weekly ; countPerPage indicates how many URL entries will appear in each outputted sitemap ; This is useful in case your repository is huge (as many search engines cap ; the number of urls in a sitemap to around 50000) or if you're indexing formats -; that severly reduce the amount of items that can go into a sitemap (aka +; that severely reduce the amount of items that can go into a sitemap (aka ; images indexed in google max at 1000 per sitemap). countPerPage = 10000 diff --git a/module/VuFind/tests/fixtures/configs/1.3/sitemap.ini b/module/VuFind/tests/fixtures/configs/1.3/sitemap.ini index 68b542cef29..1d192f6eefd 100644 --- a/module/VuFind/tests/fixtures/configs/1.3/sitemap.ini +++ b/module/VuFind/tests/fixtures/configs/1.3/sitemap.ini @@ -15,7 +15,7 @@ frequency = weekly ; countPerPage indicates how many URL entries will appear in each outputted sitemap ; This is useful in case your repository is huge (as many search engines cap ; the number of urls in a sitemap to around 50000) or if you're indexing formats -; that severly reduce the amount of items that can go into a sitemap (aka +; that severely reduce the amount of items that can go into a sitemap (aka ; images indexed in google max at 1000 per sitemap). countPerPage = 10000 diff --git a/module/VuFind/tests/fixtures/configs/1.4/sitemap.ini b/module/VuFind/tests/fixtures/configs/1.4/sitemap.ini index 68b542cef29..1d192f6eefd 100644 --- a/module/VuFind/tests/fixtures/configs/1.4/sitemap.ini +++ b/module/VuFind/tests/fixtures/configs/1.4/sitemap.ini @@ -15,7 +15,7 @@ frequency = weekly ; countPerPage indicates how many URL entries will appear in each outputted sitemap ; This is useful in case your repository is huge (as many search engines cap ; the number of urls in a sitemap to around 50000) or if you're indexing formats -; that severly reduce the amount of items that can go into a sitemap (aka +; that severely reduce the amount of items that can go into a sitemap (aka ; images indexed in google max at 1000 per sitemap). countPerPage = 10000 diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/SRU/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/SRU/Connector.php index b6271628a22..6bc126e4b61 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/SRU/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/SRU/Connector.php @@ -123,7 +123,7 @@ class Connector implements LoggerAwareInterface } /** - * Get records similiar to one record + * Get records similar to one record * * @param array $record An associative array of the record data * @param string $id The record id -- GitLab