Skip to content

Commit 1bd214e

Browse files
authored
Merge pull request #1752 from hydephp/minor-code-cleanup
Minor code cleanup
2 parents 445eeb9 + d7c5e1c commit 1bd214e

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ You can see the changes to make in your Hyde project by looking at the following
4646
Your new config array should look like this:
4747

4848
```php
49-
// Make sure to import the new Feature enum at the top of the file
49+
// Make sure to import the new Feature enum at the top of the file
5050
use Hyde\Enums\Feature;
51-
51+
5252
// Then replace your enabled features with the new Feature enum cases
5353
'features' => [
5454
// Page Modules

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This release contains changes to how HydePHP behaves when a site URL is not set
4444
These changes are made to reduce the chance of the default `localhost` value showing up in production environments.
4545

4646
Most notably, HydePHP now considers that default site URL `localhost` to mean that a site URL is not set, as the user has not set it.
47-
This means that things like automatic canonical URLs will not be added, as Hyde won't know how to make them without a site URL.
47+
This means that things like automatic canonical URLs will not be added, as Hyde won't know how to make them without a site URL.
4848
The previous behaviour was that Hyde used `localhost` in canonical URLs, which is never useful in production environments.
4949

5050
For this reason, we felt it worth it to make this change in a minor release, as it has a such large benefit for sites.

docs/advanced-features/build-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function handle(): void
185185
{
186186
if ($this->someCondition() !== true) {
187187
$this->skip('Some condition was not met');
188-
188+
189189
// The task will not be executed past this point
190190
}
191191
}

docs/digging-deeper/helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ A benefit of using the global function is that it may have better IDE support.
209209

210210
### `asset`
211211

212-
This is an alias of the `Hyde::asset()` facade method and allows you to get a relative link or URL to an asset in the media directory.
212+
This is an alias of the `Hyde::asset()` facade method and allows you to get a relative link or URL to an asset in the media directory.
213213

214214
```php
215215
asset('image.png'); // Returns a relative web link to the given image

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

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

16+
use function rtrim;
1617
use function sprintf;
1718
use function in_array;
1819
use function str_replace;

packages/framework/src/Support/DataCollections.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use function json_decode;
1717
use function sprintf;
1818
use function unslash;
19+
use function str_starts_with;
1920

2021
/**
2122
* Automatically generates Laravel Collections from static data files,

resources/assets/app.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* This file is loaded into your Hyde/Hyde installation and is used to generate the styles for your project.
2+
* This file is loaded into your Hyde/Hyde installation and is used to generate the styles for your project.
33
* You can use this file to customize your TailwindCSS or to add new classes.
44
*
5-
* The HydeFront package contains some base styles to make your site look even more amazing.
5+
* The HydeFront package contains some base styles to make your site look even more amazing.
66
*
77
* The compiled result of this file is shipped with HydePHP and is found at _media/app.css,
88
* so you don't need to compile this file unless you're making changes.

resources/assets/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/*
2-
* This is the main JavaScript used by webpack to build the the app.js file.
2+
* This is the main JavaScript used by webpack to build the the app.js file.
33
*/

0 commit comments

Comments
 (0)