Code Duplication    Length = 7-7 lines in 3 locations

typo3/sysext/scheduler/Classes/Task/OptimizeDatabaseTableAdditionalFieldProvider.php 2 locations

@@ 89-95 (lines=7) @@
86
                $submittedData['scheduler_optimizeDatabaseTables_selectedTables'],
87
                $availableTables
88
            );
89
            if (!empty($invalidTables)) {
90
                $parentObject->addMessage(
91
                    $GLOBALS['LANG']->sL($this->languageFile . ':msg.selectionOfNonExistingDatabaseTables'),
92
                    FlashMessage::ERROR
93
                );
94
                $validData = false;
95
            }
96
        } else {
97
            $parentObject->addMessage(
98
                $GLOBALS['LANG']->sL($this->languageFile . ':msg.noDatabaseTablesSelected'),
@@ 96-102 (lines=7) @@
93
                );
94
                $validData = false;
95
            }
96
        } else {
97
            $parentObject->addMessage(
98
                $GLOBALS['LANG']->sL($this->languageFile . ':msg.noDatabaseTablesSelected'),
99
                FlashMessage::ERROR
100
            );
101
            $validData = false;
102
        }
103
104
        return $validData;
105
    }

typo3/sysext/linkvalidator/Classes/Task/ValidatorTaskAdditionalFieldProvider.php 1 location

@@ 245-251 (lines=7) @@
242
        }
243
244
        $row = BackendUtility::getRecord('pages', (int)$submittedData['linkvalidator']['page'], '*', '', false);
245
        if (empty($row)) {
246
            $isValid = false;
247
            $schedulerModule->addMessage(
248
                $lang->sL($this->languageFile . ':tasks.validate.invalidPage'),
249
                FlashMessage::ERROR
250
            );
251
        }
252
        if ($submittedData['linkvalidator']['depth'] < 0) {
253
            $isValid = false;
254
            $schedulerModule->addMessage(