Skip to content

Commit

Permalink
Merge pull request #1555 from hydephp/code-cleanup
Browse files Browse the repository at this point in the history
Clean up code
  • Loading branch information
caendesilva committed Feb 12, 2024
2 parents 7676ac9 + 0501e8f commit 31dbd8a
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

### Deprecated
- 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.
Expand Down
1 change: 1 addition & 0 deletions packages/framework/src/Console/Commands/ServeCommand.php
Expand Up @@ -14,6 +14,7 @@
use Illuminate\Support\Facades\Process;

use function sprintf;
use function in_array;
use function str_replace;
use function class_exists;

Expand Down
1 change: 1 addition & 0 deletions packages/framework/src/Facades/Config.php
Expand Up @@ -7,6 +7,7 @@
use TypeError;

use function sprintf;
use function gettype;
use function call_user_func;

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/publications/src/Concerns/PublicationFieldTypes.php
Expand Up @@ -72,7 +72,7 @@ public static function getRules(self $type): array
/**
* The types that can be used for canonical fields (used to generate file names).
*
* @return \Hyde\Publications\PublicationFieldTypes[]
* @return \Hyde\Publications\Concerns\PublicationFieldTypes[]
*/
public static function canonicable(): array
{
Expand All @@ -87,7 +87,7 @@ public static function canonicable(): array
/**
* The types that can be array values.
*
* @return \Hyde\Publications\PublicationFieldTypes[]
* @return \Hyde\Publications\Concerns\PublicationFieldTypes[]
*/
public static function arrayable(): array
{
Expand Down
2 changes: 2 additions & 0 deletions packages/realtime-compiler/src/Actions/AssetFileLocator.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Actions;

/**
Expand Down
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Concerns;

use Illuminate\Contracts\Console\Kernel;
Expand Down
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Concerns;

use Desilva\Microserve\Response;
Expand Down
2 changes: 2 additions & 0 deletions packages/realtime-compiler/src/Http/ExceptionHandler.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Http;

use Desilva\Microserve\Response;
Expand Down
2 changes: 2 additions & 0 deletions packages/realtime-compiler/src/Http/HtmlResponse.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Http;

use Desilva\Microserve\Response;
Expand Down
2 changes: 2 additions & 0 deletions packages/realtime-compiler/src/Http/HttpKernel.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Http;

use Desilva\Microserve\HttpKernel as BaseHttpKernel;
Expand Down
2 changes: 2 additions & 0 deletions packages/realtime-compiler/src/Models/FileObject.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Models;

/**
Expand Down
2 changes: 2 additions & 0 deletions packages/realtime-compiler/src/Routing/PageRouter.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Routing;

use Desilva\Microserve\Request;
Expand Down
2 changes: 2 additions & 0 deletions packages/realtime-compiler/src/Routing/Router.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Hyde\RealtimeCompiler\Routing;

use Desilva\Microserve\JsonResponse;
Expand Down

0 comments on commit 31dbd8a

Please sign in to comment.