Browse Source
fix(3rdparty): Don't use indirect dependency "Safe/" for functions
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/41061/head
Joas Schilling
2 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
6 changed files with
9 additions and
9 deletions
-
apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php
-
apps/dav/tests/integration/UserMigration/ContactsMigratorTest.php
-
apps/dav/tests/unit/CalDAV/AppCalendar/AppCalendarTest.php
-
core/Db/ProfileConfig.php
-
lib/private/Profile/Actions/FediverseAction.php
-
lib/private/Profile/Actions/TwitterAction.php
|
|
|
@ -26,7 +26,7 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCA\DAV\Tests\integration\UserMigration; |
|
|
|
|
|
|
|
use function Safe\scandir; |
|
|
|
use function scandir; |
|
|
|
use OCA\DAV\AppInfo\Application; |
|
|
|
use OCA\DAV\UserMigration\CalendarMigrator; |
|
|
|
use OCP\AppFramework\App; |
|
|
|
|
|
|
|
@ -26,7 +26,7 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCA\DAV\Tests\integration\UserMigration; |
|
|
|
|
|
|
|
use function Safe\scandir; |
|
|
|
use function scandir; |
|
|
|
use OCA\DAV\AppInfo\Application; |
|
|
|
use OCA\DAV\UserMigration\ContactsMigrator; |
|
|
|
use OCP\AppFramework\App; |
|
|
|
|
|
|
|
@ -25,7 +25,7 @@ use OCP\Constants; |
|
|
|
use PHPUnit\Framework\MockObject\MockObject; |
|
|
|
use Test\TestCase; |
|
|
|
|
|
|
|
use function Safe\rewind; |
|
|
|
use function rewind; |
|
|
|
|
|
|
|
class AppCalendarTest extends TestCase { |
|
|
|
private $principal = 'principals/users/foo'; |
|
|
|
@ -35,7 +35,7 @@ class AppCalendarTest extends TestCase { |
|
|
|
|
|
|
|
private ICalendar|MockObject $calendar; |
|
|
|
private ICalendar|MockObject $writeableCalendar; |
|
|
|
|
|
|
|
|
|
|
|
protected function setUp(): void { |
|
|
|
parent::setUp(); |
|
|
|
|
|
|
|
@ -115,7 +115,7 @@ class AppCalendarTest extends TestCase { |
|
|
|
'principal' => $this->principal, |
|
|
|
'protected' => true, |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
// Check that the correct ACL is returned (default be only readable)
|
|
|
|
$this->assertEquals($expectedRO, $this->appCalendar->getACL()); |
|
|
|
$this->assertEquals($expectedRW, $this->writeableAppCalendar->getACL()); |
|
|
|
|
|
|
|
@ -26,8 +26,8 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OC\Core\Db; |
|
|
|
|
|
|
|
use function Safe\json_decode; |
|
|
|
use function Safe\json_encode; |
|
|
|
use function json_decode; |
|
|
|
use function json_encode; |
|
|
|
use \JsonSerializable; |
|
|
|
use OCP\AppFramework\Db\Entity; |
|
|
|
use OCP\Profile\ParameterDoesNotExistException; |
|
|
|
|
|
|
|
@ -26,7 +26,7 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OC\Profile\Actions; |
|
|
|
|
|
|
|
use function Safe\substr; |
|
|
|
use function substr; |
|
|
|
use OCP\Accounts\IAccountManager; |
|
|
|
use OCP\IURLGenerator; |
|
|
|
use OCP\IUser; |
|
|
|
|
|
|
|
@ -26,7 +26,7 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OC\Profile\Actions; |
|
|
|
|
|
|
|
use function Safe\substr; |
|
|
|
use function substr; |
|
|
|
use OCP\Accounts\IAccountManager; |
|
|
|
use OCP\IURLGenerator; |
|
|
|
use OCP\IUser; |
|
|
|
|