Skip to content

Commit f79d336

Browse files
committed
Revert "Apply fixes from StyleCI"
This reverts commit 9d7a02f.
1 parent 4fc905a commit f79d336

25 files changed

+122
-122
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ class PublishHomepageCommand extends Command
3333

3434
/** @var array<string, array{name: string, description: string, group: string}> */
3535
protected array $options = [
36-
'welcome' => [
36+
'welcome'=> [
3737
'name' => 'Welcome',
3838
'description' => 'The default welcome page.',
3939
'group' => 'hyde-welcome-page',
4040
],
41-
'posts' => [
41+
'posts'=> [
4242
'name' => 'Posts Feed',
4343
'description' => 'A feed of your latest posts. Perfect for a blog site!',
4444
'group' => 'hyde-posts-page',
4545
],
46-
'blank' => [
46+
'blank'=> [
4747
'name' => 'Blank Starter',
4848
'description' => 'A blank Blade template with just the base layout.',
4949
'group' => 'hyde-blank-page',

packages/framework/src/Markdown/Contracts/FrontMatter/BlogPostSchema.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
interface BlogPostSchema extends PageSchema
1414
{
1515
public const BLOG_POST_SCHEMA = [
16-
'title' => 'string',
17-
'description' => 'string',
18-
'category' => 'string',
19-
'date' => 'string',
20-
'author' => ['string', AuthorSchema::AUTHOR_SCHEMA],
21-
'image' => ['string', FeaturedImageSchema::FEATURED_IMAGE_SCHEMA],
16+
'title' => 'string',
17+
'description' => 'string',
18+
'category' => 'string',
19+
'date' => 'string',
20+
'author' => ['string', AuthorSchema::AUTHOR_SCHEMA],
21+
'image' => ['string', FeaturedImageSchema::FEATURED_IMAGE_SCHEMA],
2222
];
2323
}

packages/framework/src/Markdown/Contracts/FrontMatter/PageSchema.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
interface PageSchema extends FrontMatterSchema
1313
{
1414
public const PAGE_SCHEMA = [
15-
'title' => 'string',
16-
'canonicalUrl' => 'string', // While not present in the page data, it is supported as a front matter key for the accessor data source.
17-
'navigation' => NavigationSchema::NAVIGATION_SCHEMA,
15+
'title' => 'string',
16+
'canonicalUrl' => 'string', // While not present in the page data, it is supported as a front matter key for the accessor data source.
17+
'navigation' => NavigationSchema::NAVIGATION_SCHEMA,
1818
];
1919
}

packages/framework/src/Markdown/Contracts/FrontMatter/SubSchemas/AuthorSchema.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
interface AuthorSchema extends BlogPostSchema
1313
{
1414
public const AUTHOR_SCHEMA = [
15-
'name' => 'string',
16-
'username' => 'string',
17-
'website' => 'string',
15+
'name' => 'string',
16+
'username' => 'string',
17+
'website' => 'string',
1818
];
1919
}

packages/framework/src/Markdown/Contracts/FrontMatter/SubSchemas/FeaturedImageSchema.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
interface FeaturedImageSchema extends BlogPostSchema
1414
{
1515
public const FEATURED_IMAGE_SCHEMA = [
16-
'source' => 'string', // Name of a file in _media/ or a remote URL (required)
17-
'altText' => 'string', // The alt text (important for accessibility) // todo: Support alt, description
18-
'titleText' => 'string', // The title text (hover tooltip & metadata) // todo: Support title, caption
19-
'licenseName' => 'string', // The name of the license (e.g. "CC BY 4.0")
20-
'licenseUrl' => 'string', // The URL of the license (e.g. "https://creativecommons.org/licenses/by/4.0/")
21-
'authorName' => 'string', // The name of the author/photographer of the image (e.g. "John Doe", Wikimedia Commons)
22-
'authorUrl' => 'string', // The URL of the author/photographer of the image (e.g. "https://commons.wikimedia.org/wiki/User:John_Doe", Wikimedia Commons)
23-
'copyright' => 'string', // The copyright text (e.g. "© 2023 John Doe")
16+
'source' => 'string', // Name of a file in _media/ or a remote URL (required)
17+
'altText' => 'string', // The alt text (important for accessibility) // todo: Support alt, description
18+
'titleText' => 'string', // The title text (hover tooltip & metadata) // todo: Support title, caption
19+
'licenseName' => 'string', // The name of the license (e.g. "CC BY 4.0")
20+
'licenseUrl' => 'string', // The URL of the license (e.g. "https://creativecommons.org/licenses/by/4.0/")
21+
'authorName' => 'string', // The name of the author/photographer of the image (e.g. "John Doe", Wikimedia Commons)
22+
'authorUrl' => 'string', // The URL of the author/photographer of the image (e.g. "https://commons.wikimedia.org/wiki/User:John_Doe", Wikimedia Commons)
23+
'copyright' => 'string', // The copyright text (e.g. "© 2023 John Doe")
2424
];
2525
}

packages/framework/src/Markdown/Contracts/FrontMatter/SubSchemas/NavigationSchema.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
interface NavigationSchema extends PageSchema
1414
{
1515
public const NAVIGATION_SCHEMA = [
16-
'label' => 'string', // The text to display
17-
'priority' => 'int', // Order is also supported
18-
'hidden' => 'bool', // Visible is also supported (but obviously invert the value)
19-
'group' => 'string', // Category is also supported
16+
'label' => 'string', // The text to display
17+
'priority' => 'int', // Order is also supported
18+
'hidden' => 'bool', // Visible is also supported (but obviously invert the value)
19+
'group' => 'string', // Category is also supported
2020
];
2121
}

packages/framework/src/Support/Filesystem/MediaFile.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ public function getMimeType(): string
7070
// See if we can find a mime type for the extension instead of
7171
// having to rely on a PHP extension and filesystem lookups.
7272
$lookup = [
73-
'txt' => 'text/plain',
74-
'md' => 'text/markdown',
73+
'txt' => 'text/plain',
74+
'md' => 'text/markdown',
7575
'html' => 'text/html',
76-
'css' => 'text/css',
77-
'svg' => 'image/svg+xml',
78-
'png' => 'image/png',
79-
'jpg' => 'image/jpeg',
76+
'css' => 'text/css',
77+
'svg' => 'image/svg+xml',
78+
'png' => 'image/png',
79+
'jpg' => 'image/jpeg',
8080
'jpeg' => 'image/jpeg',
81-
'gif' => 'image/gif',
81+
'gif' => 'image/gif',
8282
'json' => 'application/json',
83-
'js' => 'application/javascript',
84-
'xml' => 'application/xml',
83+
'js' => 'application/javascript',
84+
'xml' => 'application/xml',
8585
];
8686

8787
if (isset($lookup[$extension])) {

packages/framework/src/Support/Models/RouteListItem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public function __construct(Route $route)
2828
public function toArray(): array
2929
{
3030
return [
31-
'page_type' => $this->stylePageType($this->route->getPageClass()),
31+
'page_type' => $this->stylePageType($this->route->getPageClass()),
3232
'source_file' => $this->styleSourcePath($this->route->getSourcePath()),
3333
'output_file' => $this->styleOutputPath($this->route->getOutputPath()),
34-
'route_key' => $this->styleRouteKey($this->route->getRouteKey()),
34+
'route_key' => $this->styleRouteKey($this->route->getRouteKey()),
3535
];
3636
}
3737

packages/framework/tests/Feature/MarkdownServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function test_raw_html_tags_are_stripped_by_default()
9393

9494
public function test_raw_html_tags_are_not_stripped_when_explicitly_enabled()
9595
{
96-
config(['markdown.allow_html' => true]);
96+
config(['markdown.allow_html' =>true]);
9797
$markdown = '<p>foo</p><style>bar</style><script>hat</script>';
9898
$service = new MarkdownService($markdown);
9999
$html = $service->parse();

packages/framework/tests/Feature/Support/MediaFileTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function test_to_array_returns_array_of_file_properties()
7575
$this->file('foo.txt', 'foo bar');
7676

7777
$this->assertSame([
78-
'name' => 'foo.txt',
79-
'path' => 'foo.txt',
78+
'name' => 'foo.txt',
79+
'path' => 'foo.txt',
8080
'length' => 7,
8181
'mimeType' => 'text/plain',
8282
], MediaFile::make('foo.txt')->toArray());

0 commit comments

Comments
 (0)