Commit 6263515e authored by Fabio Stegmeyer's avatar Fabio Stegmeyer

[TASK] Remove unnecessary unsets

parent 9e506e7d
......@@ -160,8 +160,6 @@ class TceMainHook {
}
if ($recordUid > 0) {
$queryBuilder = [];
unset($queryBuilder);
// since the data mapper automatically copies the flag records,
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable(
......@@ -435,8 +433,7 @@ class TceMainHook {
* @param DataHandler $reference
* @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
*/
public
function processDatamap_afterDatabaseOperations(
public function processDatamap_afterDatabaseOperations(
$status, $table, $id, $fieldArray, &$reference
) {
......
......@@ -68,7 +68,6 @@ class VisibilitySettingsMigrationWizard implements UpgradeWizardInterface {
try {
//make sure the query-builder is fresh
unset($queryBuilder);
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable(
$table
);
......@@ -85,7 +84,6 @@ class VisibilitySettingsMigrationWizard implements UpgradeWizardInterface {
$row = $this->getRecord($table, $uid);
unset($queryBuilderVisibilityFlags);
$queryBuilderVisibilityFlags = GeneralUtility::makeInstance(
ConnectionPool::class
)->getQueryBuilderForTable(
......@@ -211,7 +209,7 @@ class VisibilitySettingsMigrationWizard implements UpgradeWizardInterface {
* @return mixed
*/
protected function getRecord($table, $uid) {
unset($queryBuilder);
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable(
$table
);
......
Markdown is supported
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