Skip to content

Commit fa48e0b

Browse files
committed
Applied coding standards
1 parent 14d9665 commit fa48e0b

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

.github/workflows/javascript.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
docker network create frontend
3434
3535
- run: |
36-
docker compose run --rm prettier 'web/themes/custom/**/js/**/*.js' --check
36+
docker compose run --rm prettier 'web/profiles/custom/os2loop/**/*.js' --check

.github/workflows/styles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
docker network create frontend
3434
3535
- run: |
36-
docker compose run --rm prettier 'web/themes/custom/**/css/**/*.{css,scss}' --check
36+
docker compose run --rm prettier 'web/profiles/custom/os2loop/**/*.{css,scss}' --check

.phpcs.xml.dist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
<ruleset name="PHP_CodeSniffer">
66
<description>The coding standard.</description>
77

8-
<file>web/modules/custom/</file>
9-
<file>web/themes/custom/</file>
8+
<file>web/profiles/custom/</file>
109

1110
<!-- Exclude generated files -->
1211
<exclude-pattern>node_modules</exclude-pattern>

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic
77
Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [Unreleased]
10+
1011
- [374](https://github.com/itk-dev/os2loop/pull/374)
1112
Added itkdev template with github actions and tasks
1213
- [PR-373](https://github.com/itk-dev/os2loop/pull/373)

task/Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ tasks:
7171
code:check:
7272
desc: Check php, twig and markdown files and analyze php code
7373
cmds:
74-
- task dev:compose -- exec phpfpm vendor/bin/phpcs --standard=phpcs.xml.dist
74+
- task dev:compose -- exec phpfpm vendor/bin/phpcs
7575
- task dev:compose -- exec phpfpm vendor/bin/phpstan analyse --configuration=phpstan.neon
7676
- task dev:compose -- exec phpfpm vendor/bin/twig-cs-fixer lint
7777
- task dev:compose -- run --rm prettier '**/*.{yml,yaml}' --check
@@ -82,7 +82,7 @@ tasks:
8282
code:apply-standards:
8383
desc: Apply coding standards to php, twig and markdown files
8484
cmds:
85-
- task dev:compose -- exec phpfpm vendor/bin/phpcbf --standard=phpcs.xml.dist
85+
- task dev:compose -- exec phpfpm vendor/bin/phpcbf
8686
- task dev:compose -- exec phpfpm vendor/bin/twig-cs-fixer lint --fix
8787
- task dev:compose -- run --rm prettier '**/*.{yml,yaml}' --write
8888
- task dev:compose -- run --rm prettier 'web/profiles/custom/os2loop/themes/**/*.{css,scss}' --write

web/profiles/custom/os2loop/modules/os2loop_documents/modules/os2loop_documents_fixtures/src/Fixture/DocumentLegacyFixture.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function load() {
4848
],
4949
]);
5050
$document->save();
51-
$this->setReference($document->getType() . ':' . 'legacy-body', $document);
51+
$this->setReference($document->getType() . ':legacy-body', $document);
5252

5353
$document = Node::create([
5454
'type' => 'os2loop_documents_document',
@@ -78,7 +78,7 @@ public function load() {
7878
],
7979
]);
8080
$document->save();
81-
$this->setReference($document->getType() . ':' . 'legacy-info', $document);
81+
$this->setReference($document->getType() . ':legacy-info', $document);
8282

8383
$document = Node::create([
8484
'type' => 'os2loop_documents_document',

web/profiles/custom/os2loop/themes/os2loop_theme/os2loop_theme.theme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function os2loop_theme_theme_suggestions_form_element_alter(array &$suggestions,
146146
*/
147147
function os2loop_theme_theme_suggestions_container_alter(array &$suggestions, array $variables) {
148148
if (isset($variables['element']['#id'])) {
149-
$suggestions[] = 'container' . '__' . str_replace('-', '_', $variables['element']['#id']);
149+
$suggestions[] = 'container__' . str_replace('-', '_', $variables['element']['#id']);
150150
}
151151
}
152152

@@ -155,7 +155,7 @@ function os2loop_theme_theme_suggestions_container_alter(array &$suggestions, ar
155155
*/
156156
function os2loop_theme_theme_suggestions_form_element_label_alter(array &$suggestions, array $variables) {
157157
if (isset($variables['element']['#id'])) {
158-
$suggestions[] = 'form_element_label' . '__' . str_replace('-', '_', $variables['element']['#id']);
158+
$suggestions[] = 'form_element_label__' . str_replace('-', '_', $variables['element']['#id']);
159159
}
160160
}
161161

0 commit comments

Comments
 (0)