Skip to content

Commit

Permalink
Add GitHub HumHub PHP workflows (tests & CS fixer)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-farre committed Oct 3, 2024
1 parent 7385301 commit aeff3a1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 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:
tests:
uses: humhub/actions/.github/workflows/module-php-cs-fixer.yml@main
2 changes: 0 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
* @author [Marc FARRE](https://marc.fun) for [CUZY.APP](https://www.cuzy.app)
*/

/** @noinspection MissedFieldInspection */

use humhub\modules\menuManager\Events;
use humhub\widgets\TopMenu;

Expand Down
2 changes: 1 addition & 1 deletion controllers/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function actionIndex()
$module = $this->module;
$model = $module->getConfiguration();

if ($model->load(Yii::$app->request->post()) && $model->save()) {
if ($model->load(Yii::$app->request->post()) && $model->validate() && $model->save()) {
$this->view->saved();
}

Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

Unreleased
--------------------
- Enh: Add GitHub HumHub PHP workflows (tests & CS fixer)

1.0 (April 12, 2024)
--------------------
- Enh: Initial release

0 comments on commit aeff3a1

Please sign in to comment.