Formatted all files according to editorconfig

This commit is contained in:
Marcel Kapfer 2021-03-29 16:15:29 +02:00
parent 261eed61cf
commit 4878b2d9f7
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
8 changed files with 51 additions and 51 deletions

View file

@ -61,7 +61,7 @@ class FeGroupsRepository
$this->getIpQueryString($queryBuilder); $this->getIpQueryString($queryBuilder);
$rows = $queryBuilder->execute() $rows = $queryBuilder->execute()
->fetchAll(); ->fetchAll();
if (!empty($rows)) { if (!empty($rows)) {
return $rows; return $rows;

View file

@ -48,7 +48,7 @@ class AuthenticationService extends AuthenticationServiceCore
public function getGroups($user, $knownGroups) public function getGroups($user, $knownGroups)
{ {
$feGroupsRepository = GeneralUtility::makeInstance(ObjectManager::class) $feGroupsRepository = GeneralUtility::makeInstance(ObjectManager::class)
->get(FeGroupsRepository::class); ->get(FeGroupsRepository::class);
$feGroups = $feGroupsRepository->findByCurrentIpAddress(); $feGroups = $feGroupsRepository->findByCurrentIpAddress();
if (!empty($feGroups)) { if (!empty($feGroups)) {
return $feGroups; return $feGroups;

View file

@ -40,7 +40,7 @@ class AddCustomGroupsSlot
public function addCustomGroups($customGroups) public function addCustomGroups($customGroups)
{ {
$feGroupsRepository = GeneralUtility::makeInstance(ObjectManager::class) $feGroupsRepository = GeneralUtility::makeInstance(ObjectManager::class)
->get(FeGroupsRepository::class); ->get(FeGroupsRepository::class);
$feGroups = $feGroupsRepository->findByCurrentIpAddress(); $feGroups = $feGroupsRepository->findByCurrentIpAddress();
foreach ($feGroups as $feGroup) { foreach ($feGroups as $feGroup) {

View file

@ -9,7 +9,7 @@ $columns = [
'ip_mask' => [ 'ip_mask' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:in2frontendauthentication/Resources/Private/Language/locallang_db.xlf:' . 'label' => 'LLL:EXT:in2frontendauthentication/Resources/Private/Language/locallang_db.xlf:' .
FeGroupsRepository::TABLE_NAME . '.ip_mask', FeGroupsRepository::TABLE_NAME . '.ip_mask',
'config' => [ 'config' => [
'type' => 'text', 'type' => 'text',
'cols' => '40', 'cols' => '40',

View file

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0"> <xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2014-05-02T12:00:00Z" product-name="powermail"> <file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2014-05-02T12:00:00Z" product-name="powermail">
<header/> <header/>
<body> <body>
<trans-unit id="fe_groups.ip_mask"> <trans-unit id="fe_groups.ip_mask">
<source>Autologin with IP address (e.g. "192.168.*.*, 133.145.219.8")</source> <source>Autologin with IP address (e.g. "192.168.*.*, 133.145.219.8")</source>
<target state="translated">Autologin über IP-Adresse (z.B. "192.168.*.*, 133.145.219.8")</target> <target state="translated">Autologin über IP-Adresse (z.B. "192.168.*.*, 133.145.219.8")</target>
</trans-unit> </trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0"> <xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2013-04-13T15:49:07Z" product-name="in2frontendauthentication"> <file source-language="en" datatype="plaintext" original="messages" date="2013-04-13T15:49:07Z" product-name="in2frontendauthentication">
<header/> <header/>
<body> <body>
<trans-unit id="fe_groups.ip_mask"> <trans-unit id="fe_groups.ip_mask">
<source>IP access (e.g. "192.168.*.*, 133.145.219.8")</source> <source>IP access (e.g. "192.168.*.*, 133.145.219.8")</source>
</trans-unit> </trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -1,34 +1,34 @@
{ {
"name": "in2code/in2frontendauthentication", "name": "in2code/in2frontendauthentication",
"description": "Simulate fe_groups login by IP address", "description": "Simulate fe_groups login by IP address",
"keywords": ["typo3", "ip", "felogin"], "keywords": ["typo3", "ip", "felogin"],
"homepage": "https://git.mmk2410.org/mmk2410/feipauth", "homepage": "https://git.mmk2410.org/mmk2410/feipauth",
"authors": [ "authors": [
{ {
"name": "Alex Kellner", "name": "Alex Kellner",
"email": "alexander.kellner@in2code.de" "email": "alexander.kellner@in2code.de"
},
{
"name": "Marcel Kapfer",
"email": "stuve.oeffentlichkeitsarbeit@uni-ulm.de"
},
{
"name": "Marcel Kapfer",
"email": "opensource@mmk2410.org"
}
],
"type": "typo3-cms-extension",
"license": "GPL-3.0",
"require": {
"typo3/cms": ">=8.7.0 <9.9.99"
}, },
{ "replace": {
"name": "Marcel Kapfer", "in2frontendauthentication": "self.version",
"email": "stuve.oeffentlichkeitsarbeit@uni-ulm.de" "typo3-ter/in2frontendauthentication": "self.version"
}, },
{ "autoload": {
"name": "Marcel Kapfer", "psr-4": {
"email": "opensource@mmk2410.org" "In2code\\In2frontendauthentication\\": "Classes"
}
} }
],
"type": "typo3-cms-extension",
"license": "GPL-3.0",
"require": {
"typo3/cms": ">=8.7.0 <9.9.99"
},
"replace": {
"in2frontendauthentication": "self.version",
"typo3-ter/in2frontendauthentication": "self.version"
},
"autoload": {
"psr-4": {
"In2code\\In2frontendauthentication\\": "Classes"
}
}
} }

View file

@ -2,5 +2,5 @@
# Table structure for table 'fe_groups' # Table structure for table 'fe_groups'
# #
CREATE TABLE fe_groups ( CREATE TABLE fe_groups (
ip_mask text ip_mask text
); );