[TASK] TcaMigration: remove unused variable and fix typo 39/51639/2
authorJosef Glatz <josefglatz@gmail.com>
Sun, 12 Feb 2017 10:32:17 +0000 (11:32 +0100)
committerHelmut Hummel <typo3@helhum.io>
Sun, 12 Feb 2017 18:36:33 +0000 (19:36 +0100)
Remove unused array `$migrateFields` in `migrateRequestUpdate()`.
Fix a small typo in PHPDoc block.

Resolves: #79762
Releases: master
Change-Id: I0bb22b01c1d963ef3788bff9437343fc826861ff
Reviewed-on: https://review.typo3.org/51639
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
typo3/sysext/core/Classes/Migrations/TcaMigration.php

index 734301a..a5d9769 100644 (file)
@@ -953,11 +953,9 @@ class TcaMigration
         foreach ($tca as $table => &$tableDefinition) {
             if (!empty($tableDefinition['ctrl']['requestUpdate'])) {
                 $fields = GeneralUtility::trimExplode(',', $tableDefinition['ctrl']['requestUpdate']);
-                $migratedFields = [];
                 foreach ($fields as $field) {
                     if (isset($tableDefinition['columns'][$field])) {
                         $tableDefinition['columns'][$field]['onChange'] = 'reload';
-                        $migratedFields[] = $field;
                     }
                 }
                 $this->messages[] = 'The TCA setting [\'ctrl\'][\'requestUpdate\'] was removed from '
@@ -2172,7 +2170,7 @@ class TcaMigration
     }
 
     /**
-     * Migrate imageManipulation "ratio" config to new "cropVraiant" config
+     * Migrate imageManipulation "ratio" config to new "cropVariant" config
      *
      * @param array $tca
      * @return array