Commit a9902b5c authored by Sebastian Michaelsen's avatar Sebastian Michaelsen Committed by Nicole Cordes
Browse files

[TASK] Use "an" instead of "a" where appropriate

In english you have to use "an" before any spoken vowel.

Resolves: #68326
Releases: master
Change-Id: I2f8996d14eb532bd297b7035a6daaee4fea3f140
Reviewed-on: http://review.typo3.org/41651


Reviewed-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Tested-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
parent 793191c7
...@@ -2698,7 +2698,7 @@ class BackendUtility { ...@@ -2698,7 +2698,7 @@ class BackendUtility {
} }
// If there's a help text or some overload information, proceed with preparing an output // If there's a help text or some overload information, proceed with preparing an output
// @todo: right now this is a hard dependency on csh manual, as the whole help system should be moved to // @todo: right now this is a hard dependency on csh manual, as the whole help system should be moved to
// the extension. The core provides a API for adding help, and rendering help, but the rendering // the extension. The core provides an API for adding help and rendering help, but the rendering
// should be up to the extension itself // should be up to the extension itself
if ((!empty($helpText) || $hasHelpTextOverload) && ExtensionManagementUtility::isLoaded('cshmanual')) { if ((!empty($helpText) || $hasHelpTextOverload) && ExtensionManagementUtility::isLoaded('cshmanual')) {
// If no text was given, just use the regular help icon // If no text was given, just use the regular help icon
...@@ -3045,7 +3045,7 @@ class BackendUtility { ...@@ -3045,7 +3045,7 @@ class BackendUtility {
/** /**
* Input field function menu * Input field function menu
* Works like ->getFuncMenu() / ->getFuncCheck() but displays a input field instead which updates the script "onchange" * Works like ->getFuncMenu() / ->getFuncCheck() but displays an input field instead which updates the script "onchange"
* *
* @param mixed $mainParams $id is the "&id=" parameter value to be sent to the module, but it can be also a parameter array which will be passed instead of the &id=... * @param mixed $mainParams $id is the "&id=" parameter value to be sent to the module, but it can be also a parameter array which will be passed instead of the &id=...
* @param string $elementName The form elements name, probably something like "SET[...] * @param string $elementName The form elements name, probably something like "SET[...]
......
...@@ -313,7 +313,7 @@ class IconUtility { ...@@ -313,7 +313,7 @@ class IconUtility {
$wHattribs = 'width="' . round($iInfo[0] * $scaleFactor) . '" height="' . round($iInfo[1] * $scaleFactor) . '"'; $wHattribs = 'width="' . round($iInfo[0] * $scaleFactor) . '" height="' . round($iInfo[1] * $scaleFactor) . '"';
} }
// In any case, set currect src / wHattrib - this way we make sure that an entry IS found next time we hit the function, // In any case, set currect src / wHattrib - this way we make sure that an entry IS found next time we hit the function,
// regardless of whether it points to a alternative icon or just the current. // regardless of whether it points to an alternative icon or just the current.
$GLOBALS['TBE_STYLES']['skinImg'][$srcKey] = array($src, $wHattribs); $GLOBALS['TBE_STYLES']['skinImg'][$srcKey] = array($src, $wHattribs);
} }
// Rendering disabled (greyed) icons using _i (inactive) as name suffix ("_d" is already used) // Rendering disabled (greyed) icons using _i (inactive) as name suffix ("_d" is already used)
...@@ -749,7 +749,7 @@ class IconUtility { ...@@ -749,7 +749,7 @@ class IconUtility {
} }
if ($iconName === NULL) { if ($iconName === NULL) {
// in folder tree view $options['folder-open'] can define a open folder icon // in folder tree view $options['folder-open'] can define an open folder icon
if (!empty($options['folder-open'])) { if (!empty($options['folder-open'])) {
$iconName = 'apps-filetree-folder-opened'; $iconName = 'apps-filetree-folder-opened';
} else { } else {
......
...@@ -385,7 +385,7 @@ var inline = { ...@@ -385,7 +385,7 @@ var inline = {
return true; return true;
} }
// for group/db: table and uid is stored in a assoc array // for group/db: table and uid is stored in an assoc array
} else if (unique.type == 'groupdb') { } else if (unique.type == 'groupdb') {
for (var i = values.length - 1; i >= 0; i--) { for (var i = values.length - 1; i >= 0; i--) {
// if the pair table:uid is already used: // if the pair table:uid is already used:
......
...@@ -491,7 +491,7 @@ class IconUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { ...@@ -491,7 +491,7 @@ class IconUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
} }
/** /**
* Tests whether a overrideIconOverlay hook is called. * Tests whether an overrideIconOverlay hook is called.
* *
* @test * @test
*/ */
...@@ -682,7 +682,7 @@ class IconUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { ...@@ -682,7 +682,7 @@ class IconUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
} }
/** /**
* Tests whether a overrideResourceIcon hook is called. * Tests whether an overrideResourceIcon hook is called.
* *
* @test * @test
*/ */
......
...@@ -1346,7 +1346,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU ...@@ -1346,7 +1346,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
* Function is called recursively to fetch subgroups * Function is called recursively to fetch subgroups
* *
* @param string $grList Commalist of be_groups uid numbers * @param string $grList Commalist of be_groups uid numbers
* @param string $idList List of already processed be_groups-uids so the function will not fall into a eternal recursion. * @param string $idList List of already processed be_groups-uids so the function will not fall into an eternal recursion.
* @return void * @return void
* @access private * @access private
*/ */
......
...@@ -42,7 +42,7 @@ abstract class AbstractFrontend implements FrontendInterface { ...@@ -42,7 +42,7 @@ abstract class AbstractFrontend implements FrontendInterface {
/** /**
* Constructs the cache * Constructs the cache
* *
* @param string $identifier A identifier which describes this cache * @param string $identifier An identifier which describes this cache
* @param BackendInterface $backend Backend to be used for this cache * @param BackendInterface $backend Backend to be used for this cache
* @throws \InvalidArgumentException if the identifier doesn't match PATTERN_ENTRYIDENTIFIER * @throws \InvalidArgumentException if the identifier doesn't match PATTERN_ENTRYIDENTIFIER
*/ */
......
...@@ -28,7 +28,7 @@ class PhpFrontend extends StringFrontend { ...@@ -28,7 +28,7 @@ class PhpFrontend extends StringFrontend {
/** /**
* Constructs the cache * Constructs the cache
* *
* @param string $identifier A identifier which describes this cache * @param string $identifier An identifier which describes this cache
* @param PhpCapableBackendInterface $backend Backend to be used for this cache * @param PhpCapableBackendInterface $backend Backend to be used for this cache
*/ */
public function __construct($identifier, PhpCapableBackendInterface $backend) { public function __construct($identifier, PhpCapableBackendInterface $backend) {
......
...@@ -27,7 +27,7 @@ interface PersistableCollectionInterface { ...@@ -27,7 +27,7 @@ interface PersistableCollectionInterface {
/** /**
* Get the identifier of the collection * Get the identifier of the collection
* *
* For database stored collections, this will be a integer, * For database stored collections, this will be an integer,
* session stored, registry stored or other collections might * session stored, registry stored or other collections might
* use a string as well * use a string as well
* *
......
...@@ -21,7 +21,7 @@ namespace TYPO3\CMS\Core\Collection; ...@@ -21,7 +21,7 @@ namespace TYPO3\CMS\Core\Collection;
* your own sorting method and explicitly move an item from one position * your own sorting method and explicitly move an item from one position
* to another. * to another.
* *
* This assumes that entries are sortable and therefore a index can be assigned * This assumes that entries are sortable and therefore an index can be assigned
*/ */
interface SortableCollectionInterface { interface SortableCollectionInterface {
......
...@@ -136,7 +136,7 @@ class LoadedExtensionArrayElement implements \IteratorAggregate, \ArrayAccess, \ ...@@ -136,7 +136,7 @@ class LoadedExtensionArrayElement implements \IteratorAggregate, \ArrayAccess, \
} }
/** /**
* Whether a offset exists * Whether an offset exists
* *
* @link http://php.net/manual/en/arrayaccess.offsetexists.php * @link http://php.net/manual/en/arrayaccess.offsetexists.php
* @param mixed $offset An offset to check for. * @param mixed $offset An offset to check for.
......
...@@ -44,7 +44,7 @@ class LoadedExtensionsArray implements \Iterator, \ArrayAccess, \Serializable, \ ...@@ -44,7 +44,7 @@ class LoadedExtensionsArray implements \Iterator, \ArrayAccess, \Serializable, \
} }
/** /**
* Whether a offset exists * Whether an offset exists
* *
* @link http://php.net/manual/en/arrayaccess.offsetexists.php * @link http://php.net/manual/en/arrayaccess.offsetexists.php
* @param mixed $offset An offset to check for. * @param mixed $offset An offset to check for.
......
...@@ -1336,7 +1336,7 @@ class DataHandler { ...@@ -1336,7 +1336,7 @@ class DataHandler {
} }
/** /**
* Fix shadowing of data in case we are editing a offline version of a live "New" placeholder record: * Fix shadowing of data in case we are editing an offline version of a live "New" placeholder record:
* *
* @param string $table Table name * @param string $table Table name
* @param int $id Record uid * @param int $id Record uid
...@@ -5398,7 +5398,7 @@ class DataHandler { ...@@ -5398,7 +5398,7 @@ class DataHandler {
********************************************/ ********************************************/
/** /**
* Returns a instance of TCEmain for handling local datamaps/cmdmaps * Returns an instance of DataHandler for handling local datamaps/cmdmaps
* *
* @param bool $stripslashesValues If TRUE, incoming values in the data-array have their slashes stripped. * @param bool $stripslashesValues If TRUE, incoming values in the data-array have their slashes stripped.
* @param bool $dontProcessTransformations If set, then transformations are NOT performed on the input. * @param bool $dontProcessTransformations If set, then transformations are NOT performed on the input.
...@@ -5568,7 +5568,7 @@ class DataHandler { ...@@ -5568,7 +5568,7 @@ class DataHandler {
} }
/** /**
* Performs remapping of old UID values to NEW uid values for a inline field. * Performs remapping of old UID values to NEW uid values for an inline field.
* *
* @param array $conf TCA field config * @param array $conf TCA field config
* @param string $value Field value * @param string $value Field value
...@@ -6018,7 +6018,7 @@ class DataHandler { ...@@ -6018,7 +6018,7 @@ class DataHandler {
? $GLOBALS['PAGES_TYPES'][$doktype]['allowedTables'] ? $GLOBALS['PAGES_TYPES'][$doktype]['allowedTables']
: $GLOBALS['PAGES_TYPES']['default']['allowedTables']; : $GLOBALS['PAGES_TYPES']['default']['allowedTables'];
$allowedArray = GeneralUtility::trimExplode(',', $allowedTableList, TRUE); $allowedArray = GeneralUtility::trimExplode(',', $allowedTableList, TRUE);
// If all tables or the table is listed as a allowed type, return TRUE // If all tables or the table is listed as an allowed type, return TRUE
if (strpos($allowedTableList, '*') !== FALSE || in_array($checkTable, $allowedArray, TRUE)) { if (strpos($allowedTableList, '*') !== FALSE || in_array($checkTable, $allowedArray, TRUE)) {
$allowed = TRUE; $allowed = TRUE;
} }
...@@ -7184,7 +7184,7 @@ class DataHandler { ...@@ -7184,7 +7184,7 @@ class DataHandler {
/** /**
* Returns the subtype as a string of an inline field. * Returns the subtype as a string of an inline field.
* If it's not a inline field at all, it returns FALSE. * If it's not an inline field at all, it returns FALSE.
* *
* @param array $conf Config array for TCA/columns field * @param array $conf Config array for TCA/columns field
* @return string|bool string Inline subtype (field|mm|list), boolean: FALSE * @return string|bool string Inline subtype (field|mm|list), boolean: FALSE
......
...@@ -521,7 +521,7 @@ class HtmlParser { ...@@ -521,7 +521,7 @@ class HtmlParser {
/** /**
* Returns an array with all attributes as keys. Attributes are only lowercase a-z * Returns an array with all attributes as keys. Attributes are only lowercase a-z
* If a attribute is empty (shorthand), then the value for the key is empty. You can check if it existed with isset() * If an attribute is empty (shorthand), then the value for the key is empty. You can check if it existed with isset()
* *
* @param string $tag Tag: $tag is either a whole tag (eg '<TAG OPTION ATTRIB=VALUE>') or the parameterlist (ex ' OPTION ATTRIB=VALUE>') * @param string $tag Tag: $tag is either a whole tag (eg '<TAG OPTION ATTRIB=VALUE>') or the parameterlist (ex ' OPTION ATTRIB=VALUE>')
* @param bool $deHSC If set, the attribute values are de-htmlspecialchar'ed. Should actually always be set! * @param bool $deHSC If set, the attribute values are de-htmlspecialchar'ed. Should actually always be set!
......
...@@ -727,7 +727,7 @@ class RteHtmlParser extends \TYPO3\CMS\Core\Html\HtmlParser { ...@@ -727,7 +727,7 @@ class RteHtmlParser extends \TYPO3\CMS\Core\Html\HtmlParser {
} }
} else { } else {
// integer or alias (alias is without slashes or periods or commas, that is 'nospace,alphanum_x,lower,unique' according to tables.php!!) // integer or alias (alias is without slashes or periods or commas, that is 'nospace,alphanum_x,lower,unique' according to tables.php!!)
// Splitting the parameter by ',' and if the array counts more than 1 element it's a id/type/parameters triplet // Splitting the parameter by ',' and if the array counts more than 1 element it's an id/type/parameters triplet
$pairParts = GeneralUtility::trimExplode(',', $link_param, TRUE); $pairParts = GeneralUtility::trimExplode(',', $link_param, TRUE);
$idPart = $pairParts[0]; $idPart = $pairParts[0];
$link_params_parts = explode('#', $idPart); $link_params_parts = explode('#', $idPart);
......
...@@ -429,7 +429,7 @@ class Message implements MessageInterface { ...@@ -429,7 +429,7 @@ class Message implements MessageInterface {
} }
/** /**
* Checks if a a HTTP header value is valid. * Checks if an HTTP header value is valid.
* *
* Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal * Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal
* tabs are allowed in values; header continuations MUST consist of * tabs are allowed in values; header continuations MUST consist of
......
...@@ -2520,7 +2520,7 @@ class GraphicalFunctions { ...@@ -2520,7 +2520,7 @@ class GraphicalFunctions {
} }
/** /**
* Executes a ImageMagick "convert" on two filenames, $input and $output using $params before them. * Executes an ImageMagick "convert" on two filenames, $input and $output using $params before them.
* Can be used for many things, mostly scaling and effects. * Can be used for many things, mostly scaling and effects.
* *
* @param string $input The relative (to PATH_site) image filepath, input file (read from) * @param string $input The relative (to PATH_site) image filepath, input file (read from)
...@@ -2548,7 +2548,7 @@ class GraphicalFunctions { ...@@ -2548,7 +2548,7 @@ class GraphicalFunctions {
} }
/** /**
* Executes a ImageMagick "combine" (or composite in newer times) on four filenames - $input, $overlay and $mask as input files and $output as the output filename (written to) * Executes an ImageMagick "combine" (or composite in newer times) on four filenames - $input, $overlay and $mask as input files and $output as the output filename (written to)
* Can be used for many things, mostly scaling and effects. * Can be used for many things, mostly scaling and effects.
* *
* @param string $input The relative (to PATH_site) image filepath, bottom file * @param string $input The relative (to PATH_site) image filepath, bottom file
...@@ -2862,7 +2862,7 @@ class GraphicalFunctions { ...@@ -2862,7 +2862,7 @@ class GraphicalFunctions {
/** /**
* Creates a new GDlib image resource based on the input image filename. * Creates a new GDlib image resource based on the input image filename.
* If it fails creating a image from the input file a blank gray image with the dimensions of the input image will be created instead. * If it fails creating an image from the input file a blank gray image with the dimensions of the input image will be created instead.
* *
* @param string $sourceImg Image filename * @param string $sourceImg Image filename
* @return resource Image Resource pointer * @return resource Image Resource pointer
......
...@@ -1601,7 +1601,7 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface { ...@@ -1601,7 +1601,7 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface {
} }
/** /**
* includes a AMD-compatible JS file by resolving the ModuleName, and then requires the file via a requireJS request, * includes an AMD-compatible JS file by resolving the ModuleName, and then requires the file via a requireJS request,
* additionally allowing to execute JavaScript code afterwards * additionally allowing to execute JavaScript code afterwards
* *
* this function only works for AMD-ready JS modules, used like "define('TYPO3/CMS/Backend/FormEngine..." * this function only works for AMD-ready JS modules, used like "define('TYPO3/CMS/Backend/FormEngine..."
......
...@@ -17,7 +17,7 @@ namespace TYPO3\CMS\Core\Resource\Collection; ...@@ -17,7 +17,7 @@ namespace TYPO3\CMS\Core\Resource\Collection;
use TYPO3\CMS\Core\Resource\Folder; use TYPO3\CMS\Core\Resource\Folder;
/** /**
* A collection containing a a set files to be represented as a (virtual) folder. * A collection containing a set of files to be represented as a (virtual) folder.
* This collection is persisted to the database with the accordant folder reference. * This collection is persisted to the database with the accordant folder reference.
*/ */
class FolderBasedFileCollection extends \TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection { class FolderBasedFileCollection extends \TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection {
......
...@@ -130,7 +130,7 @@ class LocalPreviewHelper { ...@@ -130,7 +130,7 @@ class LocalPreviewHelper {
CommandUtility::exec($cmd); CommandUtility::exec($cmd);
if (!file_exists($targetFilePath)) { if (!file_exists($targetFilePath)) {
// Create a error gif // Create an error gif
$graphicalFunctions = GeneralUtility::makeInstance(GraphicalFunctions::class); $graphicalFunctions = GeneralUtility::makeInstance(GraphicalFunctions::class);
$graphicalFunctions->getTemporaryImageWithText( $graphicalFunctions->getTemporaryImageWithText(
$targetFilePath, $targetFilePath,
......
...@@ -23,7 +23,7 @@ use TYPO3\CMS\Core\Utility\MathUtility; ...@@ -23,7 +23,7 @@ use TYPO3\CMS\Core\Utility\MathUtility;
/** /**
* We do not have AOP in TYPO3 for now, thus the aspect which * We do not have AOP in TYPO3 for now, thus the aspect which
* deals with file metadata data security is a assembly of hooks to * deals with file metadata data security is an assembly of hooks to
* check permissions on files belonging to file meta data records * check permissions on files belonging to file meta data records
*/ */
class FileMetadataPermissionsAspect implements DataHandlerCheckModifyAccessListHookInterface, SingletonInterface { class FileMetadataPermissionsAspect implements DataHandlerCheckModifyAccessListHookInterface, SingletonInterface {
......
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