@@ -36,7 +36,7 @@ |
||
36 | 36 | $timezones = \DateTimeZone::listIdentifiers(); |
37 | 37 | |
38 | 38 | if ($search !== '') { |
39 | - $timezones = array_filter($timezones, function ($timezone) use ($search) { |
|
39 | + $timezones = array_filter($timezones, function($timezone) use ($search) { |
|
40 | 40 | return stripos($timezone, $search) !== false; |
41 | 41 | }); |
42 | 42 | } |
@@ -6,59 +6,59 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInitWorkflowEngine |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'O' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'OCA\\WorkflowEngine\\' => 19, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'OCA\\WorkflowEngine\\' => |
18 | - array ( |
|
19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
18 | + array( |
|
19 | + 0 => __DIR__.'/..'.'/../lib', |
|
20 | 20 | ), |
21 | 21 | ); |
22 | 22 | |
23 | - public static $classMap = array ( |
|
24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
25 | - 'OCA\\WorkflowEngine\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
26 | - 'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => __DIR__ . '/..' . '/../lib/BackgroundJobs/Rotate.php', |
|
27 | - 'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => __DIR__ . '/..' . '/../lib/Check/AbstractStringCheck.php', |
|
28 | - 'OCA\\WorkflowEngine\\Check\\FileMimeType' => __DIR__ . '/..' . '/../lib/Check/FileMimeType.php', |
|
29 | - 'OCA\\WorkflowEngine\\Check\\FileName' => __DIR__ . '/..' . '/../lib/Check/FileName.php', |
|
30 | - 'OCA\\WorkflowEngine\\Check\\FileSize' => __DIR__ . '/..' . '/../lib/Check/FileSize.php', |
|
31 | - 'OCA\\WorkflowEngine\\Check\\FileSystemTags' => __DIR__ . '/..' . '/../lib/Check/FileSystemTags.php', |
|
32 | - 'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => __DIR__ . '/..' . '/../lib/Check/RequestRemoteAddress.php', |
|
33 | - 'OCA\\WorkflowEngine\\Check\\RequestTime' => __DIR__ . '/..' . '/../lib/Check/RequestTime.php', |
|
34 | - 'OCA\\WorkflowEngine\\Check\\RequestURL' => __DIR__ . '/..' . '/../lib/Check/RequestURL.php', |
|
35 | - 'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => __DIR__ . '/..' . '/../lib/Check/RequestUserAgent.php', |
|
36 | - 'OCA\\WorkflowEngine\\Check\\TFileCheck' => __DIR__ . '/..' . '/../lib/Check/TFileCheck.php', |
|
37 | - 'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => __DIR__ . '/..' . '/../lib/Check/UserGroupMembership.php', |
|
38 | - 'OCA\\WorkflowEngine\\Command\\Index' => __DIR__ . '/..' . '/../lib/Command/Index.php', |
|
39 | - 'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => __DIR__ . '/..' . '/../lib/Controller/AWorkflowController.php', |
|
40 | - 'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => __DIR__ . '/..' . '/../lib/Controller/GlobalWorkflowsController.php', |
|
41 | - 'OCA\\WorkflowEngine\\Controller\\RequestTimeController' => __DIR__ . '/..' . '/../lib/Controller/RequestTimeController.php', |
|
42 | - 'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => __DIR__ . '/..' . '/../lib/Controller/UserWorkflowsController.php', |
|
43 | - 'OCA\\WorkflowEngine\\Entity\\File' => __DIR__ . '/..' . '/../lib/Entity/File.php', |
|
44 | - 'OCA\\WorkflowEngine\\Helper\\LogContext' => __DIR__ . '/..' . '/../lib/Helper/LogContext.php', |
|
45 | - 'OCA\\WorkflowEngine\\Helper\\ScopeContext' => __DIR__ . '/..' . '/../lib/Helper/ScopeContext.php', |
|
46 | - 'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => __DIR__ . '/..' . '/../lib/Listener/LoadAdditionalSettingsScriptsListener.php', |
|
47 | - 'OCA\\WorkflowEngine\\Manager' => __DIR__ . '/..' . '/../lib/Manager.php', |
|
48 | - 'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => __DIR__ . '/..' . '/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php', |
|
49 | - 'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => __DIR__ . '/..' . '/../lib/Migration/Version2000Date20190808074233.php', |
|
50 | - 'OCA\\WorkflowEngine\\Migration\\Version2200Date20210805101925' => __DIR__ . '/..' . '/../lib/Migration/Version2200Date20210805101925.php', |
|
51 | - 'OCA\\WorkflowEngine\\Service\\Logger' => __DIR__ . '/..' . '/../lib/Service/Logger.php', |
|
52 | - 'OCA\\WorkflowEngine\\Service\\RuleMatcher' => __DIR__ . '/..' . '/../lib/Service/RuleMatcher.php', |
|
53 | - 'OCA\\WorkflowEngine\\Settings\\ASettings' => __DIR__ . '/..' . '/../lib/Settings/ASettings.php', |
|
54 | - 'OCA\\WorkflowEngine\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php', |
|
55 | - 'OCA\\WorkflowEngine\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php', |
|
56 | - 'OCA\\WorkflowEngine\\Settings\\Section' => __DIR__ . '/..' . '/../lib/Settings/Section.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
25 | + 'OCA\\WorkflowEngine\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
26 | + 'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => __DIR__.'/..'.'/../lib/BackgroundJobs/Rotate.php', |
|
27 | + 'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => __DIR__.'/..'.'/../lib/Check/AbstractStringCheck.php', |
|
28 | + 'OCA\\WorkflowEngine\\Check\\FileMimeType' => __DIR__.'/..'.'/../lib/Check/FileMimeType.php', |
|
29 | + 'OCA\\WorkflowEngine\\Check\\FileName' => __DIR__.'/..'.'/../lib/Check/FileName.php', |
|
30 | + 'OCA\\WorkflowEngine\\Check\\FileSize' => __DIR__.'/..'.'/../lib/Check/FileSize.php', |
|
31 | + 'OCA\\WorkflowEngine\\Check\\FileSystemTags' => __DIR__.'/..'.'/../lib/Check/FileSystemTags.php', |
|
32 | + 'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => __DIR__.'/..'.'/../lib/Check/RequestRemoteAddress.php', |
|
33 | + 'OCA\\WorkflowEngine\\Check\\RequestTime' => __DIR__.'/..'.'/../lib/Check/RequestTime.php', |
|
34 | + 'OCA\\WorkflowEngine\\Check\\RequestURL' => __DIR__.'/..'.'/../lib/Check/RequestURL.php', |
|
35 | + 'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => __DIR__.'/..'.'/../lib/Check/RequestUserAgent.php', |
|
36 | + 'OCA\\WorkflowEngine\\Check\\TFileCheck' => __DIR__.'/..'.'/../lib/Check/TFileCheck.php', |
|
37 | + 'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => __DIR__.'/..'.'/../lib/Check/UserGroupMembership.php', |
|
38 | + 'OCA\\WorkflowEngine\\Command\\Index' => __DIR__.'/..'.'/../lib/Command/Index.php', |
|
39 | + 'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => __DIR__.'/..'.'/../lib/Controller/AWorkflowController.php', |
|
40 | + 'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => __DIR__.'/..'.'/../lib/Controller/GlobalWorkflowsController.php', |
|
41 | + 'OCA\\WorkflowEngine\\Controller\\RequestTimeController' => __DIR__.'/..'.'/../lib/Controller/RequestTimeController.php', |
|
42 | + 'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => __DIR__.'/..'.'/../lib/Controller/UserWorkflowsController.php', |
|
43 | + 'OCA\\WorkflowEngine\\Entity\\File' => __DIR__.'/..'.'/../lib/Entity/File.php', |
|
44 | + 'OCA\\WorkflowEngine\\Helper\\LogContext' => __DIR__.'/..'.'/../lib/Helper/LogContext.php', |
|
45 | + 'OCA\\WorkflowEngine\\Helper\\ScopeContext' => __DIR__.'/..'.'/../lib/Helper/ScopeContext.php', |
|
46 | + 'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => __DIR__.'/..'.'/../lib/Listener/LoadAdditionalSettingsScriptsListener.php', |
|
47 | + 'OCA\\WorkflowEngine\\Manager' => __DIR__.'/..'.'/../lib/Manager.php', |
|
48 | + 'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => __DIR__.'/..'.'/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php', |
|
49 | + 'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => __DIR__.'/..'.'/../lib/Migration/Version2000Date20190808074233.php', |
|
50 | + 'OCA\\WorkflowEngine\\Migration\\Version2200Date20210805101925' => __DIR__.'/..'.'/../lib/Migration/Version2200Date20210805101925.php', |
|
51 | + 'OCA\\WorkflowEngine\\Service\\Logger' => __DIR__.'/..'.'/../lib/Service/Logger.php', |
|
52 | + 'OCA\\WorkflowEngine\\Service\\RuleMatcher' => __DIR__.'/..'.'/../lib/Service/RuleMatcher.php', |
|
53 | + 'OCA\\WorkflowEngine\\Settings\\ASettings' => __DIR__.'/..'.'/../lib/Settings/ASettings.php', |
|
54 | + 'OCA\\WorkflowEngine\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php', |
|
55 | + 'OCA\\WorkflowEngine\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php', |
|
56 | + 'OCA\\WorkflowEngine\\Settings\\Section' => __DIR__.'/..'.'/../lib/Settings/Section.php', |
|
57 | 57 | ); |
58 | 58 | |
59 | 59 | public static function getInitializer(ClassLoader $loader) |
60 | 60 | { |
61 | - return \Closure::bind(function () use ($loader) { |
|
61 | + return \Closure::bind(function() use ($loader) { |
|
62 | 62 | $loader->prefixLengthsPsr4 = ComposerStaticInitWorkflowEngine::$prefixLengthsPsr4; |
63 | 63 | $loader->prefixDirsPsr4 = ComposerStaticInitWorkflowEngine::$prefixDirsPsr4; |
64 | 64 | $loader->classMap = ComposerStaticInitWorkflowEngine::$classMap; |
@@ -6,37 +6,37 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
10 | - 'OCA\\WorkflowEngine\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
11 | - 'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => $baseDir . '/../lib/BackgroundJobs/Rotate.php', |
|
12 | - 'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => $baseDir . '/../lib/Check/AbstractStringCheck.php', |
|
13 | - 'OCA\\WorkflowEngine\\Check\\FileMimeType' => $baseDir . '/../lib/Check/FileMimeType.php', |
|
14 | - 'OCA\\WorkflowEngine\\Check\\FileName' => $baseDir . '/../lib/Check/FileName.php', |
|
15 | - 'OCA\\WorkflowEngine\\Check\\FileSize' => $baseDir . '/../lib/Check/FileSize.php', |
|
16 | - 'OCA\\WorkflowEngine\\Check\\FileSystemTags' => $baseDir . '/../lib/Check/FileSystemTags.php', |
|
17 | - 'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => $baseDir . '/../lib/Check/RequestRemoteAddress.php', |
|
18 | - 'OCA\\WorkflowEngine\\Check\\RequestTime' => $baseDir . '/../lib/Check/RequestTime.php', |
|
19 | - 'OCA\\WorkflowEngine\\Check\\RequestURL' => $baseDir . '/../lib/Check/RequestURL.php', |
|
20 | - 'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => $baseDir . '/../lib/Check/RequestUserAgent.php', |
|
21 | - 'OCA\\WorkflowEngine\\Check\\TFileCheck' => $baseDir . '/../lib/Check/TFileCheck.php', |
|
22 | - 'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => $baseDir . '/../lib/Check/UserGroupMembership.php', |
|
23 | - 'OCA\\WorkflowEngine\\Command\\Index' => $baseDir . '/../lib/Command/Index.php', |
|
24 | - 'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => $baseDir . '/../lib/Controller/AWorkflowController.php', |
|
25 | - 'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => $baseDir . '/../lib/Controller/GlobalWorkflowsController.php', |
|
26 | - 'OCA\\WorkflowEngine\\Controller\\RequestTimeController' => $baseDir . '/../lib/Controller/RequestTimeController.php', |
|
27 | - 'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => $baseDir . '/../lib/Controller/UserWorkflowsController.php', |
|
28 | - 'OCA\\WorkflowEngine\\Entity\\File' => $baseDir . '/../lib/Entity/File.php', |
|
29 | - 'OCA\\WorkflowEngine\\Helper\\LogContext' => $baseDir . '/../lib/Helper/LogContext.php', |
|
30 | - 'OCA\\WorkflowEngine\\Helper\\ScopeContext' => $baseDir . '/../lib/Helper/ScopeContext.php', |
|
31 | - 'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => $baseDir . '/../lib/Listener/LoadAdditionalSettingsScriptsListener.php', |
|
32 | - 'OCA\\WorkflowEngine\\Manager' => $baseDir . '/../lib/Manager.php', |
|
33 | - 'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => $baseDir . '/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php', |
|
34 | - 'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => $baseDir . '/../lib/Migration/Version2000Date20190808074233.php', |
|
35 | - 'OCA\\WorkflowEngine\\Migration\\Version2200Date20210805101925' => $baseDir . '/../lib/Migration/Version2200Date20210805101925.php', |
|
36 | - 'OCA\\WorkflowEngine\\Service\\Logger' => $baseDir . '/../lib/Service/Logger.php', |
|
37 | - 'OCA\\WorkflowEngine\\Service\\RuleMatcher' => $baseDir . '/../lib/Service/RuleMatcher.php', |
|
38 | - 'OCA\\WorkflowEngine\\Settings\\ASettings' => $baseDir . '/../lib/Settings/ASettings.php', |
|
39 | - 'OCA\\WorkflowEngine\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php', |
|
40 | - 'OCA\\WorkflowEngine\\Settings\\Personal' => $baseDir . '/../lib/Settings/Personal.php', |
|
41 | - 'OCA\\WorkflowEngine\\Settings\\Section' => $baseDir . '/../lib/Settings/Section.php', |
|
9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
10 | + 'OCA\\WorkflowEngine\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
11 | + 'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => $baseDir.'/../lib/BackgroundJobs/Rotate.php', |
|
12 | + 'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => $baseDir.'/../lib/Check/AbstractStringCheck.php', |
|
13 | + 'OCA\\WorkflowEngine\\Check\\FileMimeType' => $baseDir.'/../lib/Check/FileMimeType.php', |
|
14 | + 'OCA\\WorkflowEngine\\Check\\FileName' => $baseDir.'/../lib/Check/FileName.php', |
|
15 | + 'OCA\\WorkflowEngine\\Check\\FileSize' => $baseDir.'/../lib/Check/FileSize.php', |
|
16 | + 'OCA\\WorkflowEngine\\Check\\FileSystemTags' => $baseDir.'/../lib/Check/FileSystemTags.php', |
|
17 | + 'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => $baseDir.'/../lib/Check/RequestRemoteAddress.php', |
|
18 | + 'OCA\\WorkflowEngine\\Check\\RequestTime' => $baseDir.'/../lib/Check/RequestTime.php', |
|
19 | + 'OCA\\WorkflowEngine\\Check\\RequestURL' => $baseDir.'/../lib/Check/RequestURL.php', |
|
20 | + 'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => $baseDir.'/../lib/Check/RequestUserAgent.php', |
|
21 | + 'OCA\\WorkflowEngine\\Check\\TFileCheck' => $baseDir.'/../lib/Check/TFileCheck.php', |
|
22 | + 'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => $baseDir.'/../lib/Check/UserGroupMembership.php', |
|
23 | + 'OCA\\WorkflowEngine\\Command\\Index' => $baseDir.'/../lib/Command/Index.php', |
|
24 | + 'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => $baseDir.'/../lib/Controller/AWorkflowController.php', |
|
25 | + 'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => $baseDir.'/../lib/Controller/GlobalWorkflowsController.php', |
|
26 | + 'OCA\\WorkflowEngine\\Controller\\RequestTimeController' => $baseDir.'/../lib/Controller/RequestTimeController.php', |
|
27 | + 'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => $baseDir.'/../lib/Controller/UserWorkflowsController.php', |
|
28 | + 'OCA\\WorkflowEngine\\Entity\\File' => $baseDir.'/../lib/Entity/File.php', |
|
29 | + 'OCA\\WorkflowEngine\\Helper\\LogContext' => $baseDir.'/../lib/Helper/LogContext.php', |
|
30 | + 'OCA\\WorkflowEngine\\Helper\\ScopeContext' => $baseDir.'/../lib/Helper/ScopeContext.php', |
|
31 | + 'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => $baseDir.'/../lib/Listener/LoadAdditionalSettingsScriptsListener.php', |
|
32 | + 'OCA\\WorkflowEngine\\Manager' => $baseDir.'/../lib/Manager.php', |
|
33 | + 'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => $baseDir.'/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php', |
|
34 | + 'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => $baseDir.'/../lib/Migration/Version2000Date20190808074233.php', |
|
35 | + 'OCA\\WorkflowEngine\\Migration\\Version2200Date20210805101925' => $baseDir.'/../lib/Migration/Version2200Date20210805101925.php', |
|
36 | + 'OCA\\WorkflowEngine\\Service\\Logger' => $baseDir.'/../lib/Service/Logger.php', |
|
37 | + 'OCA\\WorkflowEngine\\Service\\RuleMatcher' => $baseDir.'/../lib/Service/RuleMatcher.php', |
|
38 | + 'OCA\\WorkflowEngine\\Settings\\ASettings' => $baseDir.'/../lib/Settings/ASettings.php', |
|
39 | + 'OCA\\WorkflowEngine\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php', |
|
40 | + 'OCA\\WorkflowEngine\\Settings\\Personal' => $baseDir.'/../lib/Settings/Personal.php', |
|
41 | + 'OCA\\WorkflowEngine\\Settings\\Section' => $baseDir.'/../lib/Settings/Section.php', |
|
42 | 42 | ); |
@@ -45,8 +45,8 @@ |
||
45 | 45 | return; |
46 | 46 | } |
47 | 47 | |
48 | - $event->addEntityCollection('files', function ($name): bool { |
|
49 | - $nodes = $this->rootFolder->getUserFolder($this->userId)->getById((int)$name); |
|
48 | + $event->addEntityCollection('files', function($name): bool { |
|
49 | + $nodes = $this->rootFolder->getUserFolder($this->userId)->getById((int) $name); |
|
50 | 50 | return !empty($nodes); |
51 | 51 | }); |
52 | 52 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * SPDX-License-Identifier: AGPL-3.0-only |
6 | 6 | */ |
7 | 7 | |
8 | -require_once __DIR__ . '/../lib/base.php'; |
|
8 | +require_once __DIR__.'/../lib/base.php'; |
|
9 | 9 | |
10 | 10 | header('Content-Type: application/json'); |
11 | 11 |
@@ -145,7 +145,7 @@ |
||
145 | 145 | |
146 | 146 | $folder->method('getFile') |
147 | 147 | ->willReturnCallback( |
148 | - function ($fileName) use ($file) { |
|
148 | + function($fileName) use ($file) { |
|
149 | 149 | if ($fileName === 'file.css') { |
150 | 150 | return $file; |
151 | 151 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | $this->userManager |
40 | 40 | ->method('get') |
41 | - ->willReturnCallback(function ($uid) use ($user) { |
|
41 | + ->willReturnCallback(function($uid) use ($user) { |
|
42 | 42 | if ($uid === 'foo') { |
43 | 43 | return $user; |
44 | 44 | } |
@@ -145,7 +145,7 @@ |
||
145 | 145 | |
146 | 146 | $folder->method('getFile') |
147 | 147 | ->willReturnCallback( |
148 | - function ($fileName) use ($file) { |
|
148 | + function($fileName) use ($file) { |
|
149 | 149 | if ($fileName === 'file.js') { |
150 | 150 | return $file; |
151 | 151 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $this->random->method('generate') |
129 | 129 | ->with( |
130 | 130 | 72, |
131 | - ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS |
|
131 | + ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS |
|
132 | 132 | )->willReturn('myToken'); |
133 | 133 | |
134 | 134 | $this->tokenProvider->expects($this->once()) |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $this->random->method('generate') |
170 | 170 | ->with( |
171 | 171 | 72, |
172 | - ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS |
|
172 | + ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS |
|
173 | 173 | )->willReturn('myToken'); |
174 | 174 | |
175 | 175 | $this->tokenProvider->expects($this->once()) |