mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 17:59:21 +02:00
refactoring
This commit is contained in:
parent
db86b6656d
commit
2a9e6ef7bf
3 changed files with 6 additions and 5 deletions
|
@ -28,6 +28,8 @@
|
|||
* @author Roland Gruber
|
||||
*/
|
||||
|
||||
use LAM\TYPES\ConfiguredType;
|
||||
|
||||
/**
|
||||
* The account type for user accounts (e.g. Unix, Samba and Kolab).
|
||||
*
|
||||
|
|
|
@ -6,7 +6,7 @@ use user;
|
|||
/*
|
||||
|
||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||
Copyright (C) 2016 - 2023 Roland Gruber
|
||||
Copyright (C) 2016 - 2025 Roland Gruber
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -37,7 +37,7 @@ class TypesTest extends TestCase {
|
|||
private $type;
|
||||
|
||||
protected function setUp(): void {
|
||||
$this->type = $this->getMockBuilder('ConfiguredType')->setMethods(['getBaseType', 'getModules'])->getMock();
|
||||
$this->type = $this->getMockBuilder('LAM\TYPES\ConfiguredType')->setMethods(['getBaseType', 'getModules'])->getMock();
|
||||
$scope = new user($this->type);
|
||||
$this->type->method('getBaseType')->willReturn($scope);
|
||||
$this->type->method('getModules')->willReturn(['posixAccount']);
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
<?php
|
||||
|
||||
use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector;
|
||||
use Rector\CodeQuality\Rector\ClassMethod\ExplicitReturnNullRector;
|
||||
use Rector\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector;
|
||||
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
|
||||
use Rector\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector;
|
||||
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
|
||||
use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector;
|
||||
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
|
||||
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
|
||||
|
@ -46,7 +44,8 @@ return RectorConfig::configure()
|
|||
FlipTypeControlToUseExclusiveTypeRector::class,
|
||||
InlineArrayReturnAssignRector::class,
|
||||
// TODO unreliable, recheck with newer rector version
|
||||
ExplicitReturnNullRector::class
|
||||
ExplicitReturnNullRector::class,
|
||||
RemoveParentCallWithoutParentRector::class
|
||||
])
|
||||
->withFileExtensions([
|
||||
'php',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue