Skip to content

Commit cc3fc80

Browse files
authored
[MAINTENANCE] Fix documentation (mainly an -> a) (kitodo#1522)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 1a2c90d commit cc3fc80

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Classes/Common/AbstractDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ abstract protected function establishRecordId(int $pid): void;
417417
*
418418
* @abstract
419419
*
420-
* @return \SimpleXMLElement|IiifResourceInterface An PHP object representation of
420+
* @return \SimpleXMLElement|IiifResourceInterface A PHP object representation of
421421
* the current document. SimpleXMLElement for METS, IiifResourceInterface for IIIF
422422
*/
423423
abstract protected function getDocument();

Classes/Common/Helper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public static function encrypt(string $string)
364364
}
365365

366366
/**
367-
* Clean up a string to use in an URL.
367+
* Clean up a string to use in a URL.
368368
*
369369
* @access public
370370
*
@@ -409,7 +409,7 @@ public static function getHookObjects(string $scriptRelPath): array
409409
}
410410

411411
/**
412-
* Get the "index_name" for an UID
412+
* Get the "index_name" for a UID
413413
*
414414
* @access public
415415
*
@@ -671,7 +671,7 @@ public static function translate(string $indexName, string $table, string $pid):
671671
$languageAspect = GeneralUtility::makeInstance(Context::class)->getAspect('language');
672672
$languageContentId = $languageAspect->getContentId();
673673

674-
// Check if "index_name" is an UID.
674+
// Check if "index_name" is a UID.
675675
if (MathUtility::canBeInterpretedAsInteger($indexName)) {
676676
$indexName = self::getIndexNameFromUid((int) $indexName, $table, $pid);
677677
}
@@ -716,7 +716,7 @@ public static function translate(string $indexName, string $table, string $pid):
716716
$row = $result->fetchAssociative();
717717

718718
if ($row) {
719-
// If there is an translated content element, overwrite the received $indexName.
719+
// If there is a translated content element, overwrite the received $indexName.
720720
$indexName = $row['index_name'];
721721
}
722722
}

Classes/Common/Solr/Solr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ protected function __construct(?string $core)
592592
$eventDispatcher = null;
593593
} else {
594594
// When updating to TYPO3 >=10.x and Solarium >=6.x
595-
// we have to provide an PSR-14 Event Dispatcher instead of
595+
// we have to provide a PSR-14 Event Dispatcher instead of
596596
// "null".
597597
$eventDispatcher = GeneralUtility::makeInstance(EventDispatcher::class);
598598
}

Classes/Eid/PageViewProxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function handleOptions(ServerRequestInterface $request): ResponseInter
132132
}
133133

134134
/**
135-
* Handle an HEAD request.
135+
* Handle a HEAD request.
136136
*
137137
* @access protected
138138
*

Documentation/Plugins/Index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ The model URL is extracted from the METS file or taken from the provided model p
10361036

10371037
Search in Document Tool
10381038
^^^^^^^^^^^^^^^^^^^^^^^
1039-
This plugin adds an possibility to search all appearances of the phrase in currently displayed document
1039+
This plugin adds a possibility to search all appearances of the phrase in currently displayed document.
10401040

10411041
:typoscript:`plugin.tx_dlf_searchindocumenttool.`
10421042

Resources/Private/Templates/ListView/Main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h2 class="tx-dlf-listview-label">
1818
<f:translate key="search.search" />
1919
<f:translate key="search.for" arguments="{0: '{lastSearch.query}'}" />
2020
<f:comment>
21-
We need an ViewHelper to get the Extbase document object here. Usable e.g. on search in a newspaper title.
21+
We need a ViewHelper to get the Extbase document object here. Usable e.g. on search in a newspaper title.
2222
<f:translate key="search.in" arguments="{0: '{lastSearch.documentId}'}" />
2323
</f:comment>
2424
</h2>

0 commit comments

Comments
 (0)