Skip to content

Commit 6957f5b

Browse files
committed
Fix typos
Change-Id: I4a61e22ed61b8ae39091dda983d376fe946fdd4b
1 parent c571736 commit 6957f5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+122
-115
lines changed

Classes/Backend/SolrModule/AbstractModuleController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* This copyright notice MUST APPEAR in all copies of the script!
2525
***************************************************************/
2626

27+
use TYPO3\CMS\Core\Messaging\FlashMessage;
28+
use TYPO3\CMS\Core\Utility\GeneralUtility;
2729
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
2830
use TYPO3\CMS\Extbase\Mvc\Exception\NoSuchArgumentException;
2931
use TYPO3\CMS\Extbase\Mvc\View\ViewInterface;
@@ -197,8 +199,8 @@ public function addFlashMessage($messageBody, $messageTitle = '', $severity = \T
197199
if (!is_string($messageBody)) {
198200
throw new \InvalidArgumentException('The message body must be of type string, "' . gettype($messageBody) . '" given.', 1243258395);
199201
}
200-
/* @var \TYPO3\CMS\Core\Messaging\FlashMessage $flashMessage */
201-
$flashMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
202+
/* @var FlashMessage $flashMessage */
203+
$flashMessage = GeneralUtility::makeInstance(
202204
'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $messageBody, $messageTitle, $severity, $storeInSession
203205
);
204206
$this->controllerContext->getFlashMessageQueue()->enqueue($flashMessage);

Classes/ConnectionManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ protected function getConfiguredSolrConnectionByRootPage(array $rootPage, $langu
438438
}
439439

440440
/**
441-
* Gets the language name for a given lanuguage ID.
441+
* Gets the language name for a given language ID.
442442
*
443443
* @param integer $languageId language ID
444444
* @return string Language name

Classes/ContentObject/Relation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* localField: the record's field to use to resolve relations
3232
* foreignLabelField: Usually the label field to retrieve from the related records is determined automatically using TCA, using this option the desired field can be specified explicitly
3333
* multiValue: whether to return related records suitable for a multi value field
34-
* singleValueGlue: when not using multiValue, the related records need to be concatened using a glue string, by default this is ", ". Using this option a custom glue can be specified. The custom value must be wrapped by pipe (|) characters.
34+
* singleValueGlue: when not using multiValue, the related records need to be concatenated using a glue string, by default this is ", ". Using this option a custom glue can be specified. The custom value must be wrapped by pipe (|) characters.
3535
* relationTableSortingField: field in an mm relation table to sort by, usually "sorting"
3636
* enableRecursiveValueResolution: if the specified remote table's label field is a relation to another table, the value will be resolve by following the relation recursively.
3737
* removeEmptyValues: Removes empty values when resolving relations, defaults to TRUE

Classes/IndexQueue/FrontendHelper/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
/**
27-
* Index Queue page indexer frontend helper base class implementing comon
27+
* Index Queue page indexer frontend helper base class implementing common
2828
* functionality.
2929
*
3030
* @author Ingo Renner <[email protected]>

Classes/IndexQueue/FrontendHelper/UserGroupDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Tx_Solr_IndexQueue_FrontendHelper_UserGroupDetector
7070
* resources required by the frontend helper to work.
7171
*/
7272
public function activate() {
73-
// regsiter hooks
73+
// register hooks
7474
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['isOutputting'][__CLASS__] = '&Tx_Solr_IndexQueue_FrontendHelper_UserGroupDetector->disableFrontendOutput';
7575
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['tslib_fe-PostProc'][__CLASS__] = '&Tx_Solr_IndexQueue_FrontendHelper_UserGroupDetector->disableCaching';
7676
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['configArrayPostProc'][__CLASS__] = '&Tx_Solr_IndexQueue_FrontendHelper_UserGroupDetector->deactivateTcaFrontendGroupEnableFields';

Classes/IndexQueue/PageIndexerResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function addActionResult($action, $result) {
6767
* Gets the complete set of results or a specific action's results.
6868
*
6969
* @param string $action Optional action name.
70+
* @return array
7071
*/
7172
public function getActionResult($action = NULL) {
7273
$result = $this->results;

Classes/JavascriptManager.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Tx_Solr_JavascriptManager {
5454
protected static $snippets = array();
5555

5656
/**
57-
* JavaScript tags to add to the page for the current inxtance
57+
* JavaScript tags to add to the page for the current instance
5858
*
5959
* @var array
6060
*/
@@ -204,11 +204,13 @@ protected function buildJavascriptTags() {
204204

205205
// add snippets
206206
if (!empty($snippets)) {
207-
$snippets = '<script type="text/javascript">
208-
/*<![CDATA[*/
209-
' . $snippets . '
210-
/*]]>*/
211-
</script>';
207+
$snippets = <<<SNIPPETS
208+
<script type="text/javascript">
209+
/*<![CDATA[*/
210+
$snippets
211+
/*]]>*/
212+
</script>
213+
SNIPPETS;
212214

213215
$this->javaScriptTags['snippets'] = $snippets;
214216
}

Classes/PluginBase/BackendSummary.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function initialize(array $contentElement) {
4545
}
4646

4747
/**
48-
* Returns information about a plugin's flexform configruation
48+
* Returns information about a plugin's flexform configuration
4949
*
5050
* @param array $parameters Parameters to the hook
5151
* @return string Plugin configuration information
@@ -57,7 +57,7 @@ public function getSummary(array $parameters) {
5757
$this->getFilter();
5858
$this->getSorting();
5959
$this->getResultsPerPage();
60-
$this->getBoostFuntion();
60+
$this->getBoostFunction();
6161
$this->getBoostQuery();
6262
$this->getTemplateFile();
6363

@@ -131,7 +131,7 @@ protected function getResultsPerPage() {
131131
}
132132
}
133133

134-
protected function getBoostFuntion() {
134+
protected function getBoostFunction() {
135135
$boostFunction = $this->getFieldFromFlexform('boostFunction', 'sQuery');
136136

137137
if (!empty($boostFunction)) {

Classes/PluginBase/CommandPluginBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* This abstract class should be used to implement commandBased templates.
2929
* Inheriting plugins should implement the methods getCommandResolver()
30-
* and getCommandList() the implemented render method applys
30+
* and getCommandList() the implemented render method applies
3131
* the registered commands and renders the result into the template.
3232
*
3333
* @author Ingo Renner <[email protected]>

Classes/PluginBase/PluginBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ protected function postRender($content) {
435435
/**
436436
* Determines the template file from the configuration.
437437
*
438-
* Overwrite this method to use a diffrent template.
438+
* Overwrite this method to use a different template.
439439
*
440440
* @return string The template file name to be used for the plugin
441441
*/

0 commit comments

Comments
 (0)