Skip to content

Commit ba89d99

Browse files
refactor: re-organize namespaces of auth related classes
refs conjoon/conjoon#23
1 parent 6ad5cec commit ba89d99

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

src/Illuminate/Auth/Imap/DefaultImapUserProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* conjoon
55
* php-lib-conjoon
6-
* Copyright (C) 2019-2022 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
6+
* Copyright (C) 2019-2023 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
77
*
88
* Permission is hereby granted, free of charge, to any person
99
* obtaining a copy of this software and associated documentation
@@ -30,6 +30,8 @@
3030
namespace Conjoon\Illuminate\Auth\Imap;
3131

3232
use Conjoon\Illuminate\Auth\Imap\Util as ImapUtil;
33+
use Conjoon\Illuminate\Auth\ImapUser;
34+
use Conjoon\Illuminate\Auth\ImapUserProvider;
3335
use Illuminate\Contracts\Auth\Authenticatable;
3436

3537
/**

src/Illuminate/Auth/Imap/ImapUser.php renamed to src/Illuminate/Auth/ImapUser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* conjoon
55
* php-lib-conjoon
6-
* Copyright (C) 2019-2022 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
6+
* Copyright (C) 2019-2023 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
77
*
88
* Permission is hereby granted, free of charge, to any person
99
* obtaining a copy of this software and associated documentation
@@ -27,7 +27,7 @@
2727

2828
declare(strict_types=1);
2929

30-
namespace Conjoon\Illuminate\Auth\Imap;
30+
namespace Conjoon\Illuminate\Auth;
3131

3232
use Conjoon\Mail\Client\Data\MailAccount;
3333
use Illuminate\Contracts\Auth\Authenticatable;

src/Illuminate/Auth/Imap/ImapUserProvider.php renamed to src/Illuminate/Auth/ImapUserProvider.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* conjoon
55
* php-lib-conjoon
6-
* Copyright (C) 2019-2022 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
6+
* Copyright (C) 2019-2023 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
77
*
88
* Permission is hereby granted, free of charge, to any person
99
* obtaining a copy of this software and associated documentation
@@ -27,8 +27,9 @@
2727

2828
declare(strict_types=1);
2929

30-
namespace Conjoon\Illuminate\Auth\Imap;
30+
namespace Conjoon\Illuminate\Auth;
3131

32+
use Conjoon\Illuminate\Auth\Imap\Conjoon;
3233
use Illuminate\Contracts\Auth\UserProvider;
3334

3435
/**
@@ -45,7 +46,7 @@ interface ImapUserProvider extends UserProvider
4546
* @param string $username
4647
* @param string $password
4748
*
48-
* @return Conjoon\Illuminate\Auth\Imap\ImapUser|null
49+
* @return ImapUser|null
4950
*/
5051
public function getUser(string $username, string $password): ?ImapUser;
5152
}

tests/Illuminate/Auth/Imap/DefaultImapUserProviderTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* conjoon
55
* php-lib-conjoon
6-
* Copyright (C) 2019-2022 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
6+
* Copyright (C) 2019-2023 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
77
*
88
* Permission is hereby granted, free of charge, to any person
99
* obtaining a copy of this software and associated documentation
@@ -30,14 +30,13 @@
3030
namespace Tests\Conjoon\Illuminate\Auth\Imap;
3131

3232
use Conjoon\Illuminate\Auth\Imap\DefaultImapUserProvider;
33-
use Conjoon\Illuminate\Auth\Imap\ImapUser;
34-
use Conjoon\Illuminate\Auth\Imap\ImapUserProvider;
3533
use Conjoon\Mail\Client\Data\MailAccount;
34+
use Conjoon\Illuminate\Auth\ImapUser;
35+
use Conjoon\Illuminate\Auth\ImapUserProvider;
3636
use Tests\TestCase;
3737

3838
/**
39-
* Class DefaultImapUserProviderTest
40-
* @package Tests\Conjoon\Illuminate\Auth\Imap
39+
* Tests DefaultImapUserProvider.
4140
*/
4241
class DefaultImapUserProviderTest extends TestCase
4342
{

tests/Illuminate/Auth/Imap/ImapUserProviderTest.php renamed to tests/Illuminate/Auth/ImapUserProviderTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* conjoon
55
* php-lib-conjoon
6-
* Copyright (C) 2019-2022 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
6+
* Copyright (C) 2019-2023 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
77
*
88
* Permission is hereby granted, free of charge, to any person
99
* obtaining a copy of this software and associated documentation
@@ -27,15 +27,14 @@
2727

2828
declare(strict_types=1);
2929

30-
namespace Tests\Conjoon\Illuminate\Auth\Imap;
30+
namespace Tests\Conjoon\Illuminate\Auth;
3131

32-
use Conjoon\Illuminate\Auth\Imap\ImapUserProvider;
32+
use Conjoon\Illuminate\Auth\ImapUserProvider;
3333
use Illuminate\Contracts\Auth\UserProvider;
3434
use Tests\TestCase;
3535

3636
/**
37-
* Class ImapUserProviderTest
38-
* @package Tests\Conjoon\Illuminate\Auth\Imap
37+
* Tests ImapUserProvider.
3938
*/
4039
class ImapUserProviderTest extends TestCase
4140
{

tests/Illuminate/Auth/Imap/ImapUserTest.php renamed to tests/Illuminate/Auth/ImapUserTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* conjoon
55
* php-lib-conjoon
6-
* Copyright (C) 2019-2022 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
6+
* Copyright (C) 2019-2023 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
77
*
88
* Permission is hereby granted, free of charge, to any person
99
* obtaining a copy of this software and associated documentation
@@ -27,16 +27,15 @@
2727

2828
declare(strict_types=1);
2929

30-
namespace Tests\Conjoon\Illuminate\Auth\Imap;
30+
namespace Tests\Conjoon\Illuminate\Auth;
3131

32-
use Conjoon\Illuminate\Auth\Imap\ImapUser;
3332
use Conjoon\Mail\Client\Data\MailAccount;
33+
use Conjoon\Illuminate\Auth\ImapUser;
3434
use Illuminate\Contracts\Auth\Authenticatable;
3535
use Tests\TestCase;
3636

3737
/**
38-
* Class ImapUserTest
39-
* @package Tests\Conjoon\Illuminate\Auth\Imap
38+
* Tests ImapUser.
4039
*/
4140
class ImapUserTest extends TestCase
4241
{

0 commit comments

Comments
 (0)