@@ -81,7 +81,6 @@ |
||
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * @param string $uid |
| 84 | - * @param Throttle $throttle |
|
| 85 | 84 | */ |
| 86 | 85 | public function failedLoginCallback($uid) { |
| 87 | 86 | $this->throttle->addFailedLoginAttempt($uid, $this->request->getRemoteAddress()); |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | namespace OCA\Security\Tests\Controller; |
| 22 | 22 | |
| 23 | -use OCA\Security\Controller\SettingsController; |
|
| 24 | -use OCA\Security\SecurityConfig; |
|
| 25 | -use OCP\IRequest; |
|
| 23 | +use OCA\Security\Controller\SettingsController; |
|
| 24 | +use OCA\Security\SecurityConfig; |
|
| 25 | +use OCP\IRequest; |
|
| 26 | 26 | use Test\TestCase; |
| 27 | 27 | |
| 28 | 28 | class SettingsControllerTest extends TestCase {
|
@@ -22,9 +22,9 @@ |
||
| 22 | 22 | |
| 23 | 23 | namespace OCA\Security\Tests\Db; |
| 24 | 24 | |
| 25 | -use OCA\Security\Db\DbService; |
|
| 26 | -use OC\AppFramework\Utility\TimeFactory; |
|
| 27 | -use OCP\IDBConnection; |
|
| 25 | +use OCA\Security\Db\DbService; |
|
| 26 | +use OC\AppFramework\Utility\TimeFactory; |
|
| 27 | +use OCP\IDBConnection; |
|
| 28 | 28 | use Test\TestCase; |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | - * @param array $mockedMethods |
|
| 46 | + * @param string[] $mockedMethods |
|
| 47 | 47 | * @return PasswordValidator | \PHPUnit_Framework_MockObject_MockObject |
| 48 | 48 | */ |
| 49 | 49 | private function getMockInstance($mockedMethods = []) {
|
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | * |
| 20 | 20 | */ |
| 21 | 21 | namespace OCA\Password_Policy\Tests; |
| 22 | -use OC\HintException; |
|
| 23 | -use OCA\Security\SecurityConfig; |
|
| 24 | -use OCA\Security\PasswordValidator; |
|
| 25 | -use OCP\IL10N; |
|
| 22 | +use OC\HintException; |
|
| 23 | +use OCA\Security\SecurityConfig; |
|
| 24 | +use OCA\Security\PasswordValidator; |
|
| 25 | +use OCP\IL10N; |
|
| 26 | 26 | use Test\TestCase; |
| 27 | 27 | class PasswordValidatorTest extends TestCase {
|
| 28 | 28 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | - * @param array $mockedMethods |
|
| 38 | + * @param string[] $mockedMethods |
|
| 39 | 39 | * @return SecurityConfig | \PHPUnit_Framework_MockObject_MockObject |
| 40 | 40 | */ |
| 41 | 41 | private function getMockInstance($mockedMethods = []) {
|
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | namespace OCA\Security\Tests; |
| 22 | 22 | |
| 23 | -use OCA\Security\SecurityConfig; |
|
| 24 | -use OCP\IConfig; |
|
| 23 | +use OCA\Security\SecurityConfig; |
|
| 24 | +use OCP\IConfig; |
|
| 25 | 25 | use Test\TestCase; |
| 26 | 26 | class SecurityConfigTest extends TestCase {
|
| 27 | 27 | /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */ |