Commit de051a15 authored by Christian Eßl's avatar Christian Eßl Committed by Daniel Goerz
Browse files

[BUGFIX] Fix several typos in php comments

Make spelling in TYPO3 great again.

Resolves: #89290
Releases: master
Change-Id: I520840dd0774aa5d658ce6a45811aa6282c9e461
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61845

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarJörg Bösche <typo3@joergboesche.de>
Tested-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarJörg Bösche <typo3@joergboesche.de>
Reviewed-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
parent 3fe27aed
......@@ -58,7 +58,7 @@ class InMemoryLogWriter extends AbstractWriter
}
/**
* Lock writer and add a info message that there may potentially be more entries.
* Lock writer and add an info message that there may potentially be more entries.
*/
protected function lockWriter(): void
{
......
......@@ -15,7 +15,7 @@ namespace TYPO3\CMS\Backend\Backend\Avatar;
*/
/**
* Contract for avatar providers that ensure how an avater should be rendered for a given Backend User
* Contract for avatar providers that ensure how an avatar should be rendered for a given Backend User
*/
interface AvatarProviderInterface
{
......
......@@ -134,7 +134,7 @@ class ShortcutRepository
}
/**
* runs through the available shortcuts an collects their groups
* runs through the available shortcuts and collects their groups
*
* @return array Array of groups which have shortcuts
*/
......
......@@ -78,7 +78,7 @@ class BackendUserConfiguration
}
/**
* Adds an value to an Comma-separated list
* Adds a value to a Comma-separated list
* stored in $key of user settings
*
* @param string $key
......@@ -98,8 +98,8 @@ class BackendUserConfiguration
}
/**
* Removes an value from an Comma-separated list
* stored $key of user settings
* Removes a value from a Comma-separated list
* stored in $key of user settings
*
* @param string $key
* @param mixed $value
......
......@@ -106,7 +106,7 @@ class TsConfigParser extends \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
* Does the actual parsing using the parent objects "parse" method. Creates the match-Object
*
* @param string $TSconfig The TSConfig being parsed
* @return array Array containing the parsed TSConfig, the encountered sectiosn, the matched sections
* @return array Array containing the parsed TSConfig, the encountered sections, the matched sections
*/
protected function parseWithConditions($TSconfig)
{
......
......@@ -23,7 +23,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
* Matching TypoScript conditions for backend disposal.
*
* Used with the TypoScript parser.
* Matches browserinfo, IPnumbers for use with templates
* Matches browserinfo, IP numbers for use with templates
*/
class ConditionMatcher extends AbstractConditionMatcher
{
......
......@@ -386,7 +386,7 @@ class ElementHistoryController
}
/**
* Renders HTML table-rows with the comparison information of an sys_history entry record
* Renders HTML table-rows with the comparison information of a sys_history entry record
*
* @param array $entry sys_history entry record.
* @param string $table The table name
......
......@@ -79,7 +79,7 @@ class FormFlexAjaxController extends AbstractFormEngineAjaxController
];
// A new container on a new record needs the 'NEW123' uid here, see comment
// in DatabaseUniqueUidNewRow for more information on that.
// @todo: Resolve, maybe with a redifinition of vanillaUid to transport the information more clean through this var?
// @todo: Resolve, maybe with a redefinition of vanillaUid to transport the information more clean through this var?
// @see issue #80100 for a series of changes in this area
if ($command === 'new') {
$formDataCompilerInput['databaseRow']['uid'] = $databaseRowUid;
......
......@@ -382,7 +382,7 @@ class InlineControlContainer extends AbstractContainer
* The possible keys for the parameter $type are 'newRecord', 'localize' and 'synchronize'.
*
* @param string $type The link type, values are 'newRecord', 'localize' and 'synchronize'.
* @param string $objectPrefix The "path" to the child record to create (e.g. 'data-parentPageId-partenTable-parentUid-parentField-childTable]')
* @param string $objectPrefix The "path" to the child record to create (e.g. 'data-parentPageId-parentTable-parentUid-parentField-childTable]')
* @param array $conf TCA configuration of the parent(!) field
* @return string The HTML code of the new link, wrapped in a div
*/
......
......@@ -102,7 +102,7 @@ class InputColorPickerElement extends AbstractFormElement
// @todo: The whole eval handling is a mess and needs refactoring
foreach ($evalList as $func) {
// @todo: This is ugly: The code should find out on it's own whether a eval definition is a
// @todo: This is ugly: The code should find out on it's own whether an eval definition is a
// @todo: keyword like "date", or a class reference. The global registration could be dropped then
// Pair hook to the one in \TYPO3\CMS\Core\DataHandling\DataHandler::checkValue_input_Eval()
if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][$func])) {
......
......@@ -160,7 +160,7 @@ class InputDateTimeElement extends AbstractFormElement
// (moment.js can only handle UTC or browser's local timezone), we need to offset the value
// to eliminate the timezone. JS will receive all dates as if they were UTC, which we undo on save in DataHandler
$adjustedValue = $itemValue + date('Z', (int)$itemValue);
// output date as a ISO-8601 date
// output date as an ISO-8601 date
$itemValue = gmdate('c', $adjustedValue);
}
if (isset($config['range']['lower'])) {
......
......@@ -127,7 +127,7 @@ class InputLinkElement extends AbstractFormElement
// @todo: The whole eval handling is a mess and needs refactoring
foreach ($evalList as $func) {
// @todo: This is ugly: The code should find out on it's own whether a eval definition is a
// @todo: This is ugly: The code should find out on it's own whether an eval definition is a
// @todo: keyword like "date", or a class reference. The global registration could be dropped then
// Pair hook to the one in \TYPO3\CMS\Core\DataHandling\DataHandler::checkValue_input_Eval()
if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][$func])) {
......
......@@ -109,7 +109,7 @@ class InputTextElement extends AbstractFormElement
// @todo: The whole eval handling is a mess and needs refactoring
foreach ($evalList as $func) {
// @todo: This is ugly: The code should find out on it's own whether a eval definition is a
// @todo: This is ugly: The code should find out on it's own whether an eval definition is a
// @todo: keyword like "date", or a class reference. The global registration could be dropped then
// Pair hook to the one in \TYPO3\CMS\Core\DataHandling\DataHandler::checkValue_input_Eval()
if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][$func])) {
......
......@@ -129,7 +129,7 @@ class TextElement extends AbstractFormElement
// @todo: The whole eval handling is a mess and needs refactoring
foreach ($evalList as $func) {
// @todo: This is ugly: The code should find out on it's own whether a eval definition is a
// @todo: This is ugly: The code should find out on it's own whether an eval definition is a
// @todo: keyword like "date", or a class reference. The global registration could be dropped then
// Pair hook to the one in \TYPO3\CMS\Core\DataHandling\DataHandler::checkValue_input_Eval()
// There is a similar hook for "evaluateFieldValue" in DataHandler and InputTextElement
......
......@@ -134,7 +134,7 @@ class TextTableElement extends AbstractFormElement
// @todo: The whole eval handling is a mess and needs refactoring
foreach ($evalList as $func) {
// @todo: This is ugly: The code should find out on it's own whether a eval definition is a
// @todo: This is ugly: The code should find out on it's own whether an eval definition is a
// @todo: keyword like "date", or a class reference. The global registration could be dropped then
// Pair hook to the one in \TYPO3\CMS\Core\DataHandling\DataHandler::checkValue_input_Eval()
// There is a similar hook for "evaluateFieldValue" in DataHandler and InputTextElement
......
......@@ -190,7 +190,7 @@ class FormDataCompiler
'pageLanguageOverlayRows' => [],
// If the handled row is a localized row, this entry hold the default language row array
'defaultLanguageRow' => null,
// If the handled row is a localived row and $TCA[<tableName>]['ctrl']['translationSource'] is configured,
// If the handled row is a localized row and $TCA[<tableName>]['ctrl']['translationSource'] is configured,
// This entry holds the row of the language source record.
'sourceLanguageRow' => null,
// If the handled row is a localized row and a transOrigDiffSourceField is defined, this
......@@ -228,7 +228,7 @@ class FormDataCompiler
// BackendUser->uc['inlineView'] - This array holds status of expand / collapsed inline items
// This array is "flat", an inline structure with parent uid 1 having firstChild uid 2 having secondChild uid 3
// firstChild and secondChild are not nested. If an uid is set it means "record is expanded", example:
// firstChild and secondChild are not nested. If a uid is set it means "record is expanded", example:
// 'parent' => [
// 1 => [
// 'firstChild' => [ 2 ], // record 2 of firstChild table is open in inline context to parent 1
......@@ -261,7 +261,7 @@ class FormDataCompiler
// Field name of the top most parent element
'inlineTopMostParentFieldName' => '',
// If is on symetric side of an inline child parent reference.
// If is on symmetric side of an inline child parent reference.
// symmetric side can be achieved in case of an mm relation to the same table. If record A has a relation
// to record B, the symmetric side is set in case that record B gets edited.
// Record A (table1) <=> mm <=> Record B (table1)
......
......@@ -18,7 +18,7 @@ use TYPO3\CMS\Backend\Form\FormDataProviderInterface;
use TYPO3\CMS\Core\Utility\StringUtility;
/**
* On "new" command, initialize uid with an unqique uid
* On "new" command, initialize uid with a unique uid
*/
class DatabaseUniqueUidNewRow implements FormDataProviderInterface
{
......
......@@ -28,7 +28,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
* new ajax controllers for instance or add buttons and are not restricted by the
* framework further.
*
* Examples for field wizards are the display of the "languaged diff" in input elements
* Examples for field wizards are the display of the "language diff" in input elements
* and the file upload button in group elements.
*/
class FieldWizard extends AbstractNode
......
......@@ -174,7 +174,7 @@ class PageTsBackendLayoutDataProvider implements DataProviderInterface
$backendLayout['uid'] = substr($identifier, 0, -1);
$backendLayout['title'] = $data['title'] ? $data['title'] : $backendLayout['uid'];
$backendLayout['icon'] = $data['icon'] ?: '';
// Convert PHP array back to plain TypoScript so it can be procecced
// Convert PHP array back to plain TypoScript so it can be processed
$config = \TYPO3\CMS\Core\Utility\ArrayUtility::flatten($data['config.']);
$backendLayout['config'] = '';
foreach ($config as $row => $value) {
......
......@@ -81,7 +81,7 @@ class QueryParser
}
/**
* Verify if an given query contains a page jump command.
* Verify if a given query contains a page jump command.
*
* @param string $query A valid value looks like '#14'
* @return int
......@@ -107,7 +107,7 @@ class QueryParser
}
/**
* Verify if an given query contains an registered command key.
* Verify if a given query contains a registered command key.
*
* @param string $query
* @return bool
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment