From 5661dd34a81a3272e4ddbf60dc7d696835e312a1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20E=C3=9Fl?= <indy.essl@gmail.com>
Date: Fri, 28 Feb 2020 20:36:02 +0100
Subject: [PATCH] [BUGFIX] Fix spelling errors in ext:backend
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Resolves: #90582
Releases: master
Change-Id: I456dd0b04947c838f125d49ca686a40d289c2fe1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63487
Tested-by: Björn Jacob <bjoern.jacob@tritum.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Susanne Moog <look@susi.dev>
---
 typo3/sysext/backend/Classes/Clipboard/Clipboard.php      | 2 +-
 .../ContentElement/ElementInformationController.php       | 6 +++---
 .../Classes/Form/FormDataProvider/TcaRadioItems.php       | 2 +-
 .../Classes/Middleware/BackendRouteInitialization.php     | 2 +-
 .../backend/Classes/Preview/PreviewRendererInterface.php  | 4 ++--
 .../backend/Classes/View/BackendLayout/ContentFetcher.php | 2 +-
 .../backend/Classes/ViewHelpers/ThumbnailViewHelper.php   | 2 +-
 .../backend/Resources/Private/Language/locallang.xlf      | 2 +-
 .../Public/JavaScript/PageTree/PageTreeDragDrop.js        | 2 +-
 .../Tests/Unit/Controller/EditDocumentControllerTest.php  | 6 +++---
 .../Tests/Unit/Controller/File/FileControllerTest.php     | 4 ++--
 .../Unit/Controller/File/ThumbnailControllerTest.php      | 2 +-
 .../Form/FormDataProvider/DatabaseParentPageRowTest.php   | 8 ++++----
 .../FormDataProvider/DatabaseRowInitializeNewTest.php     | 2 +-
 .../Form/FormDataProvider/DatabaseUniqueUidNewRowTest.php | 2 +-
 .../TcaColumnsProcessPlaceholdersTest.php                 | 2 +-
 .../FormDataProvider/TcaColumnsProcessRecordTitleTest.php | 2 +-
 .../Unit/Form/FormDataProvider/TcaSelectItemsTest.php     | 2 +-
 .../Tests/Unit/Form/FormDataProvider/TcaTextTest.php      | 6 +++---
 .../backend/Tests/Unit/Template/Components/MenuTest.php   | 2 +-
 20 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php
index c2d107845024..77d588fe57e1 100644
--- a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php
+++ b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php
@@ -881,7 +881,7 @@ class Clipboard
 
     /**
      * Verifies if the item $table/$uid is on the current pad.
-     * If the pad is "normal", the mode value is returned if the element existed. Thus you'll know if the item was copy or cut moded...
+     * If the pad is "normal" and the element exists, the mode value is returned. Thus you'll know if the item was copied or cut.
      *
      * @param string $table Table name, (_FILE for files...)
      * @param int $uid Element uid (path for files)
diff --git a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
index 57b7b29efe39..b1d880c61f1b 100644
--- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
+++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
@@ -314,14 +314,14 @@ class ElementInformationController
             $preview['url'] = $this->fileObject->getPublicUrl(true);
 
             $width = '590m';
-            $heigth = '400m';
+            $height = '400m';
 
             // Check if there is a FileRenderer
             if ($fileRenderer !== null) {
                 $preview['fileRenderer'] = $fileRenderer->render(
                     $this->fileObject,
                     $width,
-                    $heigth,
+                    $height,
                     [],
                     true
                 );
@@ -330,7 +330,7 @@ class ElementInformationController
             } elseif (GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $fileExtension)) {
                 $preview['fileObject'] = $this->fileObject;
                 $preview['width'] = $width;
-                $preview['heigth'] = $heigth;
+                $preview['height'] = $height;
             }
         }
         return $preview;
diff --git a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRadioItems.php b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRadioItems.php
index 1f66076ac204..1ca33166e491 100644
--- a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRadioItems.php
+++ b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRadioItems.php
@@ -54,7 +54,7 @@ class TcaRadioItems extends AbstractItemProvider implements FormDataProviderInte
             foreach ($items as $itemKey => $itemValue) {
                 if (!is_array($itemValue)) {
                     throw new \UnexpectedValueException(
-                        'Item ' . $itemKey . ' of field ' . $fieldName . ' of TCA table ' . $result['tableName'] . ' is no array as exepcted',
+                        'Item ' . $itemKey . ' of field ' . $fieldName . ' of TCA table ' . $result['tableName'] . ' is no array as expected',
                         1438607163
                     );
                 }
diff --git a/typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php b/typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php
index 5ffb1c0ddf28..6d9ae1618d9b 100644
--- a/typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php
+++ b/typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php
@@ -25,7 +25,7 @@ use TYPO3\CMS\Core\Core\Bootstrap;
  * Loads ext_tables.php from all extensions, as this is the place
  * where all modules register their routes to the router
  * (additionally to those routes which are loaded in dependency
- * inejction factories from Configuration/Backend/{,Ajax}Routes.php).
+ * injection factories from Configuration/Backend/{,Ajax}Routes.php).
  *
  * The route path is added to the request as attribute "routePath".
  *
diff --git a/typo3/sysext/backend/Classes/Preview/PreviewRendererInterface.php b/typo3/sysext/backend/Classes/Preview/PreviewRendererInterface.php
index 0f902e852261..201f5ee48daf 100644
--- a/typo3/sysext/backend/Classes/Preview/PreviewRendererInterface.php
+++ b/typo3/sysext/backend/Classes/Preview/PreviewRendererInterface.php
@@ -20,8 +20,8 @@ use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem;
 /**
  * Interface PreviewRendererInterface
  *
- * Conctract for classes capable of rendering previews of a given record
- * from a table. Responsible for rendering preview heeader, preview content
+ * Contract for classes capable of rendering previews of a given record
+ * from a table. Responsible for rendering preview header, preview content
  * and wrapping of those two values.
  *
  * Responsibilities are segmented into three methods, one for each responsibility,
diff --git a/typo3/sysext/backend/Classes/View/BackendLayout/ContentFetcher.php b/typo3/sysext/backend/Classes/View/BackendLayout/ContentFetcher.php
index f6c4d236e189..757ce29ab57f 100644
--- a/typo3/sysext/backend/Classes/View/BackendLayout/ContentFetcher.php
+++ b/typo3/sysext/backend/Classes/View/BackendLayout/ContentFetcher.php
@@ -35,7 +35,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  * - Performs workspace overlay on records
  * - Capable of returning all records in active language as flat array
  * - Capable of returning records for a given column in a given (optional) language
- * - Capable of returning translation data (brief info about translation consistenty)
+ * - Capable of returning translation data (brief info about translation consistency)
  */
 class ContentFetcher
 {
diff --git a/typo3/sysext/backend/Classes/ViewHelpers/ThumbnailViewHelper.php b/typo3/sysext/backend/Classes/ViewHelpers/ThumbnailViewHelper.php
index f002ea9d696b..074e5a2e5985 100644
--- a/typo3/sysext/backend/Classes/ViewHelpers/ThumbnailViewHelper.php
+++ b/typo3/sysext/backend/Classes/ViewHelpers/ThumbnailViewHelper.php
@@ -22,7 +22,7 @@ use TYPO3\CMS\Fluid\ViewHelpers\ImageViewHelper;
 use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
 
 /**
- * ViewHelper for the backend which generates a :html:`<img>` tag with the special URI to render thumbnails deffered.
+ * ViewHelper for the backend which generates an :html:`<img>` tag with the special URI to render thumbnails deferred.
  *
  * Examples
  * ========
diff --git a/typo3/sysext/backend/Resources/Private/Language/locallang.xlf b/typo3/sysext/backend/Resources/Private/Language/locallang.xlf
index 3bdd042a7088..a4e402ac4fff 100644
--- a/typo3/sysext/backend/Resources/Private/Language/locallang.xlf
+++ b/typo3/sysext/backend/Resources/Private/Language/locallang.xlf
@@ -104,7 +104,7 @@ Have a nice day.</source>
 				<source>Hide PageTS-Config</source>
 			</trans-unit>
 			<trans-unit id="formEngine.databaseRecordErrorInlineChildChild" resname="formEngine.databaseRecordErrorInlineChildChild">
-				<source>The record with uid %2$s from table %1$s could not be retrieved from the database. This data incosistency can occur if
+				<source>The record with uid %2$s from table %1$s could not be retrieved from the database. This data inconsistency can occur if
 				a base record has been deleted but the intermediate record from table %3$s with uid %4$s still points to it. To fix
 				this situation, either delete the intermediate record, or recover the deleted record using the recycler module.
 				</source>
diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeDragDrop.js b/typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeDragDrop.js
index ebef668ce8dd..cd4350005af2 100644
--- a/typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeDragDrop.js
+++ b/typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeDragDrop.js
@@ -29,7 +29,7 @@ define([
 
   /**
    * Creates a new drag instance and initializes the clickDistance setting to
-   * prevent clicks from beeing wrongly detected as drag attempts.
+   * prevent clicks from being wrongly detected as drag attempts.
    */
   var createD3 = function() {
     return d3.drag()
diff --git a/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php
index 6c3bf1d7c7bc..dd48ee25eec1 100644
--- a/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php
@@ -64,9 +64,9 @@ class EditDocumentControllerTest extends UnitTestCase
 
     /**
      * @test
-     * @dataProvider slugDependendFieldsAreAddedToColumnsOnlyDataProvider
+     * @dataProvider slugDependentFieldsAreAddedToColumnsOnlyDataProvider
      */
-    public function slugDependendFieldsAreAddedToColumnsOnly(string $result, string $selectedFields, string $tableName, array $configuration): void
+    public function slugDependentFieldsAreAddedToColumnsOnly(string $result, string $selectedFields, string $tableName, array $configuration): void
     {
         $GLOBALS['TCA'][$tableName]['columns'] = $configuration;
 
@@ -84,7 +84,7 @@ class EditDocumentControllerTest extends UnitTestCase
         self::assertEquals($result, $editDocumentControllerMock->_get('columnsOnly'));
     }
 
-    public function slugDependendFieldsAreAddedToColumnsOnlyDataProvider(): array
+    public function slugDependentFieldsAreAddedToColumnsOnlyDataProvider(): array
     {
         return [
             'fields in string' => [
diff --git a/typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php
index a67fb7f0c569..16d479a7c2ec 100644
--- a/typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php
@@ -155,7 +155,7 @@ class FileControllerTest extends UnitTestCase
     /**
      * @test
      */
-    public function processAjaxRequestReturnsStatus200IfNoErrorOccures()
+    public function processAjaxRequestReturnsStatus200IfNoErrorOccurs()
     {
         $subject = $this->getAccessibleMock(\TYPO3\CMS\Backend\Controller\File\FileController::class, ['init', 'main']);
 
@@ -174,7 +174,7 @@ class FileControllerTest extends UnitTestCase
     public function processAjaxRequestReturnsStatus500IfErrorOccurs()
     {
         $subject = $this->getAccessibleMock(FileController::class, ['init', 'main']);
-        $this->mockFileProcessor->expects(self::any())->method('getErrorMessages')->willReturn(['error occured']);
+        $this->mockFileProcessor->expects(self::any())->method('getErrorMessages')->willReturn(['error occurred']);
         $subject->_set('fileProcessor', $this->mockFileProcessor);
         $result = $subject->processAjaxRequest($this->request, $this->response);
         self::assertEquals(500, $result->getStatusCode());
diff --git a/typo3/sysext/backend/Tests/Unit/Controller/File/ThumbnailControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/File/ThumbnailControllerTest.php
index 80f13287b2a4..a4e36aa6f522 100644
--- a/typo3/sysext/backend/Tests/Unit/Controller/File/ThumbnailControllerTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Controller/File/ThumbnailControllerTest.php
@@ -37,7 +37,7 @@ class ThumbnailControllerTest extends UnitTestCase
         'fileId' => 123,
         'configuration' => [
             'width' => 64,
-            'heigth' => 64,
+            'height' => 64,
         ],
     ];
 
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseParentPageRowTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseParentPageRowTest.php
index 69ba5dbab6a7..4a804e32657e 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseParentPageRowTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseParentPageRowTest.php
@@ -67,14 +67,14 @@ class DatabaseParentPageRowTest extends UnitTestCase
     /**
      * @test
      */
-    public function addDataSetsNeigborRowIfNegativeUidGiven()
+    public function addDataSetsNeighborRowIfNegativeUidGiven()
     {
         $input = [
             'tableName' => 'tt_content',
             'command' => 'new',
             'vanillaUid' => -10,
         ];
-        $neigborRow = [
+        $neighborRow = [
             'uid' => 10,
             'pid' => 321
         ];
@@ -85,7 +85,7 @@ class DatabaseParentPageRowTest extends UnitTestCase
         $this->subject->expects(self::at(0))
             ->method('getDatabaseRow')
             ->with($input['tableName'], 10)
-            ->willReturn($neigborRow);
+            ->willReturn($neighborRow);
 
         $this->subject->expects(self::at(1))
             ->method('getDatabaseRow')
@@ -94,7 +94,7 @@ class DatabaseParentPageRowTest extends UnitTestCase
 
         $result = $this->subject->addData($input);
 
-        self::assertSame($neigborRow, $result['neighborRow']);
+        self::assertSame($neighborRow, $result['neighborRow']);
     }
 
     /**
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php
index 3c47a36d37d2..b66ca83798cc 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php
@@ -401,7 +401,7 @@ class DatabaseRowInitializeNewTest extends UnitTestCase
     /**
      * @test
      */
-    public function addDataSetsDefaultDataOverrulesOtherDefauls()
+    public function addDataSetsDefaultDataOverrulesOtherDefaults()
     {
         $input = [
             'command' => 'new',
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUniqueUidNewRowTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUniqueUidNewRowTest.php
index e14a0ec57204..16b0fa4ef555 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUniqueUidNewRowTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUniqueUidNewRowTest.php
@@ -81,7 +81,7 @@ class DatabaseUniqueUidNewRowTest extends UnitTestCase
     /**
      * @test
      */
-    public function addDataSetsUniqeId()
+    public function addDataSetsUniqueId()
     {
         $input = [
             'command' => 'new',
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessPlaceholdersTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessPlaceholdersTest.php
index 07a5e5aac0eb..a34e353f518e 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessPlaceholdersTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessPlaceholdersTest.php
@@ -84,7 +84,7 @@ class TcaColumnsProcessPlaceholdersTest extends UnitTestCase
     /**
      * @test
      */
-    public function addDataRegistersAlternativeLabelColumnn()
+    public function addDataRegistersAlternativeLabelColumn()
     {
         $input = [
             'columnsToProcess' => [],
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessRecordTitleTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessRecordTitleTest.php
index 5466beb4e45c..75b42c718179 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessRecordTitleTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessRecordTitleTest.php
@@ -46,7 +46,7 @@ class TcaColumnsProcessRecordTitleTest extends UnitTestCase
     /**
      * @test
      */
-    public function addDataRegistersAlternativeLabelColumnn()
+    public function addDataRegistersAlternativeLabelColumn()
     {
         $input = [
             'columnsToProcess' => [],
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php
index 83ce6464334a..5a14d7ac6e8b 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php
@@ -1980,7 +1980,7 @@ class TcaSelectItemsTest extends UnitTestCase
     /**
      * @test
      */
-    public function addDataRemovesItemsThatAreRestictedByUserStorageAddedByForeignTable(): void
+    public function addDataRemovesItemsThatAreRestrictedByUserStorageAddedByForeignTable(): void
     {
         $input = [
             'databaseRow' => [
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php
index 31e18371c635..41b68adcac62 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php
@@ -74,8 +74,8 @@ class TcaTextTest extends UnitTestCase
 
         $richtextConfigurationProphecy = $this->prophesize(Richtext::class);
         GeneralUtility::addInstance(Richtext::class, $richtextConfigurationProphecy->reveal());
-        $rteHtmlParserPropehy = $this->prophesize(RteHtmlParser::class);
-        GeneralUtility::addInstance(RteHtmlParser::class, $rteHtmlParserPropehy->reveal());
+        $rteHtmlParserProphecy = $this->prophesize(RteHtmlParser::class);
+        GeneralUtility::addInstance(RteHtmlParser::class, $rteHtmlParserProphecy->reveal());
 
         $richtextConfigurationProphecy
             ->getConfiguration(
@@ -89,7 +89,7 @@ class TcaTextTest extends UnitTestCase
                 ]
             )
             ->willReturn([ 'aConfig' => 'option']);
-        $rteHtmlParserPropehy
+        $rteHtmlParserProphecy
             ->transformTextForRichTextEditor(
                 'notProcessedContent',
                 []
diff --git a/typo3/sysext/backend/Tests/Unit/Template/Components/MenuTest.php b/typo3/sysext/backend/Tests/Unit/Template/Components/MenuTest.php
index 8ea776486db9..6695e9922dea 100644
--- a/typo3/sysext/backend/Tests/Unit/Template/Components/MenuTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Template/Components/MenuTest.php
@@ -68,7 +68,7 @@ class MenuTest extends UnitTestCase
      *
      * @test
      */
-    public function getMenusremovedEmptyMenusExpectsEquals()
+    public function getMenusRemovedEmptyMenusExpectsEquals()
     {
         $menuRegistry = new MenuRegistry();
 
-- 
GitLab