diff --git a/module/VuFind/src/VuFind/Cookie/CookieManager.php b/module/VuFind/src/VuFind/Cookie/CookieManager.php index b0e3a6a5c42..a94e8d9fb7a 100644 --- a/module/VuFind/src/VuFind/Cookie/CookieManager.php +++ b/module/VuFind/src/VuFind/Cookie/CookieManager.php @@ -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, diff --git a/module/VuFind/src/VuFind/DigitalContent/FakeOverdriveConnector.php b/module/VuFind/src/VuFind/DigitalContent/FakeOverdriveConnector.php index a12c0535ae4..872c730f5bd 100644 --- a/module/VuFind/src/VuFind/DigitalContent/FakeOverdriveConnector.php +++ b/module/VuFind/src/VuFind/DigitalContent/FakeOverdriveConnector.php @@ -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 */ diff --git a/module/VuFind/src/VuFind/DigitalContent/OverdriveConnector.php b/module/VuFind/src/VuFind/DigitalContent/OverdriveConnector.php index 536d7af0561..a5f48177b24 100644 --- a/module/VuFind/src/VuFind/DigitalContent/OverdriveConnector.php +++ b/module/VuFind/src/VuFind/DigitalContent/OverdriveConnector.php @@ -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 */ diff --git a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php index eb0b68d203f..bf251164152 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php @@ -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. diff --git a/module/VuFind/src/VuFind/ILS/Driver/Alma.php b/module/VuFind/src/VuFind/ILS/Driver/Alma.php index e9628ab8006..4555d9896be 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Alma.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Alma.php @@ -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 * diff --git a/module/VuFind/src/VuFind/ILS/Driver/Demo.php b/module/VuFind/src/VuFind/ILS/Driver/Demo.php index d3ca3612b2a..8e413fa559c 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Demo.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Demo.php @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/Folio.php b/module/VuFind/src/VuFind/ILS/Driver/Folio.php index 5d881a41b63..c25f3697df8 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Folio.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Folio.php @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php b/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php index e1effd36145..fba335654f7 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php @@ -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 */ @@ -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) @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php index 5450fad41b5..e26d20ee42e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaRest.php b/module/VuFind/src/VuFind/ILS/Driver/KohaRest.php index db53614740a..e28b277eda5 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/KohaRest.php +++ b/module/VuFind/src/VuFind/ILS/Driver/KohaRest.php @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/PAIA.php b/module/VuFind/src/VuFind/ILS/Driver/PAIA.php index 99ec486bfb8..f0405d70329 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/PAIA.php +++ b/module/VuFind/src/VuFind/ILS/Driver/PAIA.php @@ -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 @@ -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 * diff --git a/module/VuFind/src/VuFind/ILS/Driver/Polaris.php b/module/VuFind/src/VuFind/ILS/Driver/Polaris.php index d4a29b7d681..d31b5351c8c 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Polaris.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Polaris.php @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php b/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php index da327e21ae6..fe5e0aeb20f 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php +++ b/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php b/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php index c759ee22a71..28ed63302dc 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/Virtua.php b/module/VuFind/src/VuFind/ILS/Driver/Virtua.php index 45d26690ae1..1343003c1fb 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Virtua.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Virtua.php @@ -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 diff --git a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php index 5ed7d5a1568..ea97cfdc968 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php +++ b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php @@ -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 diff --git a/module/VuFind/src/VuFind/Record/Cache.php b/module/VuFind/src/VuFind/Record/Cache.php index eb005f1da19..be7c76bbaad 100644 --- a/module/VuFind/src/VuFind/Record/Cache.php +++ b/module/VuFind/src/VuFind/Record/Cache.php @@ -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 * diff --git a/module/VuFind/src/VuFind/Record/Loader.php b/module/VuFind/src/VuFind/Record/Loader.php index 996d0f11bda..d54b0e743ca 100644 --- a/module/VuFind/src/VuFind/Record/Loader.php +++ b/module/VuFind/src/VuFind/Record/Loader.php @@ -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) { @@ -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); } diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Metadata.php b/module/VuFind/src/VuFind/View/Helper/Root/Metadata.php index 5289381edbf..d35d483ddf3 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/Metadata.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/Metadata.php @@ -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 diff --git a/module/VuFind/src/VuFind/XSLT/Import/VuFindGeo.php b/module/VuFind/src/VuFind/XSLT/Import/VuFindGeo.php index a35929a7233..420c6ad8e1e 100644 --- a/module/VuFind/src/VuFind/XSLT/Import/VuFindGeo.php +++ b/module/VuFind/src/VuFind/XSLT/Import/VuFindGeo.php @@ -45,7 +45,7 @@ class VuFindGeo { /** - * Method for logging errors (overrideable for testing purposes) + * Method for logging errors (overridable for testing purposes) * * @var callable */ diff --git a/module/VuFind/src/VuFindTest/Integration/Session.php b/module/VuFind/src/VuFindTest/Integration/Session.php index ae11cf330cd..e8e466adb35 100644 --- a/module/VuFind/src/VuFindTest/Integration/Session.php +++ b/module/VuFind/src/VuFindTest/Integration/Session.php @@ -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 diff --git a/module/VuFind/tests/fixtures/configs/contentsecuritypolicy/contentsecuritypolicy.ini b/module/VuFind/tests/fixtures/configs/contentsecuritypolicy/contentsecuritypolicy.ini index 79b3768bc1e..1d6247c0819 100644 --- a/module/VuFind/tests/fixtures/configs/contentsecuritypolicy/contentsecuritypolicy.ini +++ b/module/VuFind/tests/fixtures/configs/contentsecuritypolicy/contentsecuritypolicy.ini @@ -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' diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php index 601fedf0b88..6f4082ca483 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php @@ -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 * diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php index a66799ac995..2a25c6bb815 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php @@ -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 diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/FolioTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/FolioTest.php index 5853232e1bf..76bd16afdd5 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/FolioTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/FolioTest.php @@ -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 * @@ -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 diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/RecordDriver/DefaultRecordTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/RecordDriver/DefaultRecordTest.php index ddbb6a7b57d..931a5193ad7 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/RecordDriver/DefaultRecordTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/RecordDriver/DefaultRecordTest.php @@ -552,7 +552,7 @@ public function testGetCleanISBNs($result, $mode, $filterInvalid) } /** - * Test whether author deduplication works corrrectly. + * Test whether author deduplication works correctly. * * @return void */ diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/EDS/Backend.php b/module/VuFindSearch/src/VuFindSearch/Backend/EDS/Backend.php index d43321404ea..b7217804f60 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/EDS/Backend.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/EDS/Backend.php @@ -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 * diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/EDS/Base.php b/module/VuFindSearch/src/VuFindSearch/Backend/EDS/Base.php index 237e6adf288..be17e8a4388 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/EDS/Base.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/EDS/Base.php @@ -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 diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/Connector.php index 6775eeba09c..d09d2372b92 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/Connector.php @@ -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(); } diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php index 6a8ac324cf4..7f2b77701be 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php @@ -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'; } diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Response/Json/Spellcheck.php b/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Response/Json/Spellcheck.php index 38dee72d97b..6d8a480463d 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Response/Json/Spellcheck.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Response/Json/Spellcheck.php @@ -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; diff --git a/module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/Solr/QueryBuilderTest.php b/module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/Solr/QueryBuilderTest.php index cb524c09e9b..ad20f56231b 100644 --- a/module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/Solr/QueryBuilderTest.php +++ b/module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/Solr/QueryBuilderTest.php @@ -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 diff --git a/module/VuFindTheme/src/VuFindTheme/View/Helper/ConcatTrait.php b/module/VuFindTheme/src/VuFindTheme/View/Helper/ConcatTrait.php index 853e89602c1..6e674a4e4bb 100644 --- a/module/VuFindTheme/src/VuFindTheme/View/Helper/ConcatTrait.php +++ b/module/VuFindTheme/src/VuFindTheme/View/Helper/ConcatTrait.php @@ -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 */ @@ -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 */