Skip to content

Commit 99af3da

Browse files
committed
[TASK] Streamline formatting of yaml files
1 parent 19901f9 commit 99af3da

File tree

8 files changed

+27
-40
lines changed

8 files changed

+27
-40
lines changed

.phplint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ path: ./
22
jobs: 10
33
cache: .phplint.cache
44
extensions:
5-
- php
5+
- php
66
exclude:
7-
- .build
7+
- .build

Configuration/Routes/BlogArchive.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,21 @@ routeEnhancers:
44
extension: Blog
55
plugin: Archive
66
routes:
7-
-
8-
routePath: '/archive/{year}'
7+
- routePath: '/archive/{year}'
98
_controller: 'Post::listPostsByDate'
109
_arguments:
1110
year: year
12-
-
13-
routePath: '/archive/{year}/page-{page}'
11+
- routePath: '/archive/{year}/page-{page}'
1412
_controller: 'Post::listPostsByDate'
1513
_arguments:
1614
year: year
1715
page: 'currentPage'
18-
-
19-
routePath: '/archive/{year}/{month}'
16+
- routePath: '/archive/{year}/{month}'
2017
_controller: 'Post::listPostsByDate'
2118
_arguments:
2219
year: year
2320
month: month
24-
-
25-
routePath: '/archive/{year}/{month}/page-{page}'
21+
- routePath: '/archive/{year}/{month}/page-{page}'
2622
_controller: 'Post::listPostsByDate'
2723
_arguments:
2824
year: year
@@ -57,8 +53,7 @@ routeEnhancers:
5753
november: 11
5854
december: 12
5955
localeMap:
60-
-
61-
locale: 'de_.*'
56+
- locale: 'de_.*'
6257
map:
6358
januar: 1
6459
februar: 2
@@ -72,8 +67,7 @@ routeEnhancers:
7267
oktober: 10
7368
november: 11
7469
dezember: 12
75-
-
76-
locale: 'fr_.*'
70+
- locale: 'fr_.*'
7771
map:
7872
janvier: 1
7973
fevrier: 2

Configuration/Routes/BlogAuthorPosts.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ routeEnhancers:
44
extension: Blog
55
plugin: AuthorPosts
66
routes:
7-
-
8-
routePath: '/author/{author_title}'
7+
- routePath: '/author/{author_title}'
98
_controller: 'Post::listPostsByAuthor'
109
_arguments:
1110
author_title: author
12-
-
13-
routePath: '/author/{author_title}/page-{page}'
11+
- routePath: '/author/{author_title}/page-{page}'
1412
_controller: 'Post::listPostsByAuthor'
1513
_arguments:
1614
author_title: author

Configuration/Routes/BlogCategory.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ routeEnhancers:
44
extension: Blog
55
plugin: Category
66
routes:
7-
-
8-
routePath: '/category/{category_title}'
7+
- routePath: '/category/{category_title}'
98
_controller: 'Post::listPostsByCategory'
109
_arguments:
1110
category_title: category
12-
-
13-
routePath: '/category/{category_title}/page-{page}'
11+
- routePath: '/category/{category_title}/page-{page}'
1412
_controller: 'Post::listPostsByCategory'
1513
_arguments:
1614
category_title: category

Configuration/Routes/BlogPosts.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ routeEnhancers:
44
extension: Blog
55
plugin: Posts
66
routes:
7-
-
8-
routePath: '/page-{page}'
7+
- routePath: '/page-{page}'
98
_controller: 'Post::listRecentPosts'
109
_arguments:
1110
page: 'currentPage'

Configuration/Routes/BlogTag.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ routeEnhancers:
44
extension: Blog
55
plugin: Tag
66
routes:
7-
-
8-
routePath: '/tag/{tag_title}'
7+
- routePath: '/tag/{tag_title}'
98
_controller: 'Post::listPostsByTag'
109
_arguments:
1110
tag_title: tag
12-
-
13-
routePath: '/tag/{tag_title}/page-{page}'
11+
- routePath: '/tag/{tag_title}/page-{page}'
1412
_controller: 'Post::listPostsByTag'
1513
_arguments:
1614
tag_title: tag

Configuration/Routes/Default.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# imports:
44
# - { resource: "EXT:blog/Configuration/Routes/Default.yaml" }
55
imports:
6-
- { resource: "EXT:blog/Configuration/Routes/BlogCategory.yaml" }
7-
- { resource: "EXT:blog/Configuration/Routes/BlogTag.yaml" }
8-
- { resource: "EXT:blog/Configuration/Routes/BlogArchive.yaml" }
9-
- { resource: "EXT:blog/Configuration/Routes/BlogAuthorPosts.yaml" }
10-
- { resource: "EXT:blog/Configuration/Routes/BlogFeedWidget.yaml" }
11-
- { resource: "EXT:blog/Configuration/Routes/BlogPosts.yaml" }
6+
- { resource: 'EXT:blog/Configuration/Routes/BlogCategory.yaml' }
7+
- { resource: 'EXT:blog/Configuration/Routes/BlogTag.yaml' }
8+
- { resource: 'EXT:blog/Configuration/Routes/BlogArchive.yaml' }
9+
- { resource: 'EXT:blog/Configuration/Routes/BlogAuthorPosts.yaml' }
10+
- { resource: 'EXT:blog/Configuration/Routes/BlogFeedWidget.yaml' }
11+
- { resource: 'EXT:blog/Configuration/Routes/BlogPosts.yaml' }

Configuration/Services.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
services:
2-
_defaults:
3-
autowire: true
4-
autoconfigure: true
5-
public: false
2+
_defaults:
3+
autowire: true
4+
autoconfigure: true
5+
public: false
66

7-
T3G\AgencyPack\Blog\:
8-
resource: '../Classes/*'
7+
T3G\AgencyPack\Blog\:
8+
resource: '../Classes/*'

0 commit comments

Comments
 (0)