Skip to content

Commit

Permalink
[BUGFIX] Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed Aug 29, 2024
1 parent f0aa24b commit 832e87d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
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

0 comments on commit 832e87d

Please sign in to comment.