Skip to content

Commit

Permalink
Restrict branches for PHP CS Fixer workflow actions (#431)
Browse files Browse the repository at this point in the history
* Restrict branches for PHP CS Fixer workflow actions

* Special changes to test PHP CS Fixer
  • Loading branch information
yurabakhtin authored Dec 12, 2024
1 parent 67c63ef commit ab37cf7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: PHP CS Fixer

on:
push:
branches:
- master
- main
- develop
paths:
- '**.php'
schedule:
- cron: "0 0 * * 0"

Expand Down
1 change: 0 additions & 1 deletion Events.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
Expand Down
3 changes: 1 addition & 2 deletions controllers/ConfigController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
Expand Down Expand Up @@ -27,7 +26,7 @@ public function actionIndex()
{
$form = new Config();

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

Expand Down
2 changes: 1 addition & 1 deletion models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function rules()
return [
[['created_by', 'updated_by'], 'integer'],
[['title'], 'string', 'max' => 255],
[['created_at', 'updated_at'], 'safe'],
[['created_at', 'updated_at'], 'safe']
];
}

Expand Down

0 comments on commit ab37cf7

Please sign in to comment.