Skip to content

Commit 31dbd8a

Browse files
authored
Merge pull request #1555 from hydephp/code-cleanup
Clean up code
2 parents 7676ac9 + 0501e8f commit 31dbd8a

File tree

14 files changed

+27
-3
lines changed

14 files changed

+27
-3
lines changed

.idea/php.xml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ This serves two purposes:
2929
- Renamed local template variable `$document` to `$article` to better match the usage in https://github.com/hydephp/develop/pull/1506
3030
- Updated semantic documentation article component to support existing variables in https://github.com/hydephp/develop/pull/1506
3131
- HydeFront: Changed `<code>` styling to display as inline instead of inline-block in https://github.com/hydephp/develop/pull/1525
32+
- Realtime Compiler: Add strict type declarations in https://github.com/hydephp/develop/pull/1555/files
3233

3334
### Deprecated
3435
- Deprecated the `BuildService::transferMediaAssets()` method in https://github.com/hydephp/develop/pull/1533, as it will be moved into a build task in v2.0.

packages/framework/src/Console/Commands/ServeCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Illuminate\Support\Facades\Process;
1515

1616
use function sprintf;
17+
use function in_array;
1718
use function str_replace;
1819
use function class_exists;
1920

packages/framework/src/Facades/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use TypeError;
88

99
use function sprintf;
10+
use function gettype;
1011
use function call_user_func;
1112

1213
/**

packages/publications/src/Concerns/PublicationFieldTypes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static function getRules(self $type): array
7272
/**
7373
* The types that can be used for canonical fields (used to generate file names).
7474
*
75-
* @return \Hyde\Publications\PublicationFieldTypes[]
75+
* @return \Hyde\Publications\Concerns\PublicationFieldTypes[]
7676
*/
7777
public static function canonicable(): array
7878
{
@@ -87,7 +87,7 @@ public static function canonicable(): array
8787
/**
8888
* The types that can be array values.
8989
*
90-
* @return \Hyde\Publications\PublicationFieldTypes[]
90+
* @return \Hyde\Publications\Concerns\PublicationFieldTypes[]
9191
*/
9292
public static function arrayable(): array
9393
{

packages/realtime-compiler/src/Actions/AssetFileLocator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Hyde\RealtimeCompiler\Actions;
46

57
/**

packages/realtime-compiler/src/Concerns/InteractsWithLaravel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Hyde\RealtimeCompiler\Concerns;
46

57
use Illuminate\Contracts\Console\Kernel;

packages/realtime-compiler/src/Concerns/SendsErrorResponses.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Hyde\RealtimeCompiler\Concerns;
46

57
use Desilva\Microserve\Response;

packages/realtime-compiler/src/Http/ExceptionHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Hyde\RealtimeCompiler\Http;
46

57
use Desilva\Microserve\Response;

packages/realtime-compiler/src/Http/HtmlResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Hyde\RealtimeCompiler\Http;
46

57
use Desilva\Microserve\Response;

0 commit comments

Comments
 (0)