Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fix code style #4300

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $_EXTKEY = 'extension3';
namespace Ssch\TYPO3Rector\Tests\Rector\CodeQuality\Rector\General\MoveExtensionManagementUtilityAddStaticFileIntoTCAOverridesRector\Fixture;

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

$variable = 'extension3';
$_EXTKEY = 'extension3';
ExtensionManagementUtility::addStaticFile('doing' . $variable . 'weirdStuff', 'Configuration/TypoScript', 'Title');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ $variable = 'tt_content';
namespace Ssch\TYPO3Rector\Tests\Rector\CodeQuality\Rector\General\MoveExtensionManagementUtilityAddToAllTCAtypesIntoTCAOverridesRector\Fixture;

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

$variable = 'tt_content';
ExtensionManagementUtility::addToAllTCAtypes('doing' . $variable . 'weirdStuff', 'new_field', '', 'after:c');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $_EXTKEY = 'extension3';
namespace Ssch\TYPO3Rector\Tests\Rector\CodeQuality\Rector\General\MoveExtensionUtilityRegisterPluginIntoTCAOverridesRector\Fixture;

use TYPO3\CMS\Extbase\Utility\ExtensionUtility;

$_EXTKEY = 'extension3';
// Once the rule RegisterPluginWithVendorNameRector does its job, we can move it afterwards
ExtensionUtility::registerPlugin('Vendor.' . $_EXTKEY, 'PluginName', 'My Title');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Mail\MailMessage;
use Symfony\Component\Mime\Address;
use TYPO3\CMS\Core\Utility\MailUtility;

class MyService
{
public function init()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
<?php

use TYPO3\CMS\Core\Core\Environment;

Environment::getContext();
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $urlOpcache = TYPO3_URL_WIKI_OPCODECACHE;
<?php

use TYPO3\CMS\Core\Information\Typo3Information;

$urlGeneral = Typo3Information::URL_COMMUNITY;
$urlLicense = Typo3Information::URL_LICENSE;
$urlException = Typo3Information::URL_EXCEPTION;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $typo3Branch = TYPO3_branch;

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Information\Typo3Version;

$typo3Version = GeneralUtility::makeInstance(Typo3Version::class)->getVersion();
$typo3Branch = GeneralUtility::makeInstance(Typo3Version::class)->getBranch();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ namespace Ssch\TYPO3Rector\Tests\Rector\v11\v0\DateTimeAspectInsteadOfGlobalsExe

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Context\Context;

class MyClass
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class MyController
namespace Ssch\TYPO3Rector\Tests\Rector\v11\v0\SubstituteConstantsModeAndRequestTypeRector\Fixture;

use TYPO3\CMS\Core\Http\ApplicationType;

defined('TYPO3') or die();

class MyController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Foo
namespace Ssch\TYPO3Rector\Tests\Rector\v11\v4\ProvideCObjViaMethodRector\Fixture;

use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;

class Foo
{
protected $cObj;
Expand Down