Skip to content

Commit fce872e

Browse files
committed
Update formatting
1 parent 2b0d3c0 commit fce872e

File tree

154 files changed

+13
-342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+13
-342
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: scripts/generate.php --check
3434

3535
- name: Install PrettyPHP
36-
run: composer create-project --no-interaction --no-progress --no-dev lkrms/pretty-php=0.4.28 build/pretty-php
36+
run: composer create-project --no-interaction --no-progress --no-dev lkrms/pretty-php=0.4.29 build/pretty-php
3737

3838
- name: Run PrettyPHP
3939
run: build/pretty-php/bin/pretty-php --diff

lib/lk-util/Command/Concept/Command.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/**
1414
* Base class for lk-util commands
15-
*
1615
*/
1716
abstract class Command extends CliCommand
1817
{

lib/lk-util/Command/Generate/Concept/GenerateCommand.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
/**
3232
* Base class for code generation commands
33-
*
3433
*/
3534
abstract class GenerateCommand extends Command
3635
{
@@ -48,19 +47,16 @@ abstract class GenerateCommand extends Command
4847

4948
/**
5049
* The unqualified name of the entity to generate
51-
*
5250
*/
5351
protected string $OutputClass;
5452

5553
/**
5654
* The namespace of the entity being generated (may be empty)
57-
*
5855
*/
5956
protected string $OutputNamespace;
6057

6158
/**
6259
* A PHPDoc for the generated entity (may be empty)
63-
*
6460
*/
6561
protected string $ClassPhpDoc;
6662

@@ -97,7 +93,6 @@ abstract class GenerateCommand extends Command
9793

9894
/**
9995
* "<TTemplate[,...]>"
100-
*
10196
*/
10297
protected string $InputClassType;
10398

@@ -548,7 +543,6 @@ protected function generateMethod(
548543
}
549544

550545
/**
551-
*
552546
* @param string[]|string $lines
553547
*/
554548
protected function handleOutput($lines): void

lib/lk-util/Command/Generate/GenerateBuilder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
/**
2222
* Generates fluent interfaces that create instances of a class
23-
*
2423
*/
2524
class GenerateBuilder extends GenerateCommand
2625
{
@@ -216,7 +215,7 @@ protected function run(string ...$args)
216215
$_phpDoc = PhpDoc::fromDocBlocks($_docBlocks, $classDocBlocks, $_constructor->getName() . '()');
217216

218217
$names = array_keys($_params + $_properties);
219-
//sort($names);
218+
// sort($names);
220219
$methods = [
221220
" * @method static \$this {$this->StaticBuilder}(?$container \$container = null) Create a new $builderClass (syntactic sugar for 'new $builderClass()')",
222221
];

lib/lk-util/Command/Generate/GenerateFacade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
/**
1616
* Generates static interfaces to underlying classes
17-
*
1817
*/
1918
final class GenerateFacade extends GenerateCommand
2019
{

lib/lk-util/Command/Generate/GenerateSyncEntity.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
/**
1818
* Generates SyncEntity subclasses from reference entities
19-
*
2019
*/
2120
class GenerateSyncEntity extends GenerateCommand
2221
{

lib/lk-util/Command/Generate/GenerateSyncProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
/**
2121
* Generates provider interfaces for SyncEntity subclasses
22-
*
2322
*/
2423
class GenerateSyncProvider extends GenerateCommand
2524
{

src/Auth/OAuth2Client.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ trait OAuth2Client
6969
* return $listener;
7070
* }
7171
* ```
72-
*
7372
*/
7473
abstract protected function getOAuth2Listener(): ?HttpServer;
7574

@@ -101,7 +100,6 @@ abstract protected function getOAuth2Listener(): ?HttpServer;
101100
* ]);
102101
* }
103102
* ```
104-
*
105103
*/
106104
abstract protected function getOAuth2Provider(): OAuth2Provider;
107105

@@ -118,13 +116,11 @@ abstract protected function getOAuth2Flow(): int;
118116
*
119117
* Required for token signature validation. Check the provider's
120118
* `https://server.com/.well-known/openid-configuration` if unsure.
121-
*
122119
*/
123120
abstract protected function getOAuth2JsonWebKeySetUrl(): ?string;
124121

125122
/**
126123
* Called when an access token is received from the OAuth 2.0 provider
127-
*
128124
*/
129125
abstract protected function receiveOAuth2Token(AccessTokenInterface $token): void;
130126

@@ -220,7 +216,6 @@ final protected function hasAccessToken(?AccessToken &$token = null, ?array $sco
220216
* possible, flush all tokens and authorize with the provider from scratch
221217
*
222218
* This may be the only {@see OAuth2Client} method inheritors need to call.
223-
*
224219
*/
225220
final protected function getAccessToken(?array $scopes = null): AccessToken
226221
{
@@ -252,7 +247,6 @@ final protected function getAccessToken(?array $scopes = null): AccessToken
252247

253248
/**
254249
* False if one or more scopes are not granted
255-
*
256250
*/
257251
private function checkAccessTokenScopes(AccessToken $token, ?array $scopes): bool
258252
{
@@ -263,7 +257,6 @@ private function checkAccessTokenScopes(AccessToken $token, ?array $scopes): boo
263257
/**
264258
* If an unexpired OAuth 2.0 refresh token is available, use it to get a new
265259
* access token from the provider if possible
266-
*
267260
*/
268261
final protected function refreshAccessToken(?AccessToken &$token = null): bool
269262
{
@@ -278,7 +271,6 @@ final protected function refreshAccessToken(?AccessToken &$token = null): bool
278271

279272
/**
280273
* Get an access token from the OAuth 2.0 provider
281-
*
282274
*/
283275
final protected function authorize(): AccessToken
284276
{

src/Auth/OAuth2Provider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
*
1919
* This class is a placeholder that will be replaced with a more flexible
2020
* implementation.
21-
*
2221
*/
2322
class OAuth2Provider extends GenericProvider
2423
{

src/Cli/Catalog/CliOptionType.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ final class CliOptionType extends Enumeration
4343

4444
/**
4545
* Set the value of a positional parameter
46-
*
4746
*/
4847
public const VALUE_POSITIONAL = 3;
4948

@@ -69,7 +68,6 @@ final class CliOptionType extends Enumeration
6968

7069
/**
7170
* Choose the value of a positional parameter from a list
72-
*
7371
*/
7472
public const ONE_OF_POSITIONAL = 6;
7573
}

0 commit comments

Comments
 (0)