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

Resolves: #90588
Releases: master
Change-Id: I771186e77f0c78661d1f310f53b1d9085123d2c5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63494
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Björn Jacob <bjoern.jacob@tritum.de>
Tested-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Susanne Moog <look@susi.dev>
---
 typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php | 6 +++---
 .../Classes/Controller/SchedulerModuleController.php        | 2 +-
 .../ExecuteSchedulableCommandAdditionalFieldProvider.php    | 2 +-
 .../Documentation/Administration/GroupTask/Index.rst        | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php b/typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php
index a741ee2cabcf..90d95b62bfb0 100644
--- a/typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php
+++ b/typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php
@@ -52,7 +52,7 @@ class SchedulerCommand extends Command
     protected $overwrittenTaskList;
 
     /**
-     * This is true when the tasks should be marked as stopped instead of beeing executed.
+     * This is true when the tasks should be marked as stopped instead of being executed.
      *
      * @var bool
      */
@@ -120,7 +120,7 @@ Call it like this: typo3/sysext/core/bin/typo3 scheduler:run --task=13 -f')
     }
 
     /**
-     * Checks if the tasks should be stopped instead of beeing executed.
+     * Checks if the tasks should be stopped instead of being executed.
      *
      * Stopping is only performed when the --stop option is provided together with the --task option.
      *
@@ -214,7 +214,7 @@ Call it like this: typo3/sysext/core/bin/typo3 scheduler:run --task=13 -f')
 
     /**
      * When the --task option is provided, the next task is fetched from the provided task UIDs. Depending
-     * on the --force option the task is fechted even if it is not marked for execution.
+     * on the --force option the task is fetched even if it is not marked for execution.
      *
      * Without the --task option we ask the scheduler for the next task with pending execution.
      *
diff --git a/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php b/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
index 245e75ccd75a..8e37f51db8d0 100644
--- a/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
+++ b/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
@@ -522,7 +522,7 @@ class SchedulerModuleController
                 // If there's a registered execution, the task should not be edited
                 if (!empty($taskRecord['serialized_executions'])) {
                     $this->addMessage($this->getLanguageService()->getLL('msg.maynotEditRunningTask'), FlashMessage::ERROR);
-                    throw new \LogicException('Runnings tasks cannot not be edited', 1251232849);
+                    throw new \LogicException('Running tasks cannot not be edited', 1251232849);
                 }
 
                 // Get the task object
diff --git a/typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php b/typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php
index 166b7295ee1d..aa251447f43d 100644
--- a/typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php
+++ b/typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php
@@ -211,7 +211,7 @@ class ExecuteSchedulableCommandAdditionalFieldProvider implements AdditionalFiel
                 $optionValue = $submittedData['task_executeschedulablecommand']['option_values'][$optionDefinition->getName()] ?? $optionDefinition->getDefault();
                 if ($optionDefinition->isArray() && !is_array($optionValue)) {
                     // Do not remove empty array values.
-                    // One empty array element indicates the existence of one occurence of an array option (InputOption::VALUE_IS_ARRAY) without a value.
+                    // One empty array element indicates the existence of one occurrence of an array option (InputOption::VALUE_IS_ARRAY) without a value.
                     // Empty array elements are also required for command options like "-vvv" (can be entered as ",,").
                     $optionValue = GeneralUtility::trimExplode(',', $optionValue, false);
                 }
diff --git a/typo3/sysext/scheduler/Documentation/Administration/GroupTask/Index.rst b/typo3/sysext/scheduler/Documentation/Administration/GroupTask/Index.rst
index 93e5b3971718..0431d86a2fef 100644
--- a/typo3/sysext/scheduler/Documentation/Administration/GroupTask/Index.rst
+++ b/typo3/sysext/scheduler/Documentation/Administration/GroupTask/Index.rst
@@ -28,7 +28,7 @@ Scheduler task groups are records stored on the root page (pid=0). They may be c
    Management of scheduler task groups
 
 
-It is also possible to create a new task group from within the edit task form whith clicking on the `+` icon next to the
+It is also possible to create a new task group from within the edit task form by clicking on the `+` icon next to the
 task group select box.
 
 Individual tasks may then be edited as usual and associated to a given scheduler task group.
-- 
GitLab