Skip to content

Commit

Permalink
Add phpcs checks (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjitse-E authored Sep 22, 2023
1 parent afde4d9 commit 5018062
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Coding Standard

on: [ push, pull_request ]

jobs:
coding-standard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/src

- uses: Tjitse-E/github-actions/coding-standard@feature/custom-phpcs-standards
with:
path: ${{ github.workspace }}/src
coding_standard: VendicMagento2
custom_coding_standard_repo: vendic/magento-coding-standard

2 changes: 1 addition & 1 deletion view/frontend/templates/magewire/checkbox.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $inputCssClasses = $block->getData('input_css_classes');
?>
<div>
<input
<?php if ($inputCssClasses) : ?>
<?php if ($inputCssClasses): ?>
class="<?= $escaper->escapeHtmlAttr($inputCssClasses) ?>"
<?php endif; ?>
wire:model="createAccount"
Expand Down

0 comments on commit 5018062

Please sign in to comment.