Skip to content

Commit

Permalink
Merge pull request #3 from humhub-contrib/enh/php-cs-fixer
Browse files Browse the repository at this point in the history
Use PHP CS Fixer
  • Loading branch information
luke- authored Oct 9, 2024
2 parents 8fce9b0 + f67ccd8 commit 4179909
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: PHP CS Fixer

on: push

jobs:
fixers:
uses: humhub/actions/.github/workflows/module-php-cs-fixer.yml@main
3 changes: 1 addition & 2 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

class Module extends \humhub\components\Module
{

/**
* @var array a map of controllerId.actionId pairs which are forbiddden
*/
Expand All @@ -28,4 +27,4 @@ class Module extends \humhub\components\Module
*/
public $resourcesPath = 'resources';

}
}
5 changes: 2 additions & 3 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
'namespace' => 'humhub\modules\blockprofilechanges',
'events' => [
[AccountController::class, AccountController::EVENT_BEFORE_ACTION, ['\humhub\modules\blockprofilechanges\Events', 'onControllerAction']],
[AccountMenu::class, AccountMenu::EVENT_BEFORE_RUN, ['\humhub\modules\blockprofilechanges\Events', 'onAccountMenu']]
]
[AccountMenu::class, AccountMenu::EVENT_BEFORE_RUN, ['\humhub\modules\blockprofilechanges\Events', 'onAccountMenu']],
],
];
?>
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.0.1 (Unreleased)
------------------------
- Enh #3: Use PHP CS Fixer

1.0.0 (August 20, 2018)
------------------------
Initial release
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"keywords": [
"api"
],
"version": "1.0.0",
"version": "1.0.1",
"humhub": {
"minVersion": "1.3"
},
"screenshots": []
}
}

0 comments on commit 4179909

Please sign in to comment.