Skip to content

Commit ab37cf7

Browse files
authored
Restrict branches for PHP CS Fixer workflow actions (#431)
* Restrict branches for PHP CS Fixer workflow actions * Special changes to test PHP CS Fixer
1 parent 67c63ef commit ab37cf7

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/php-cs-fixer.yml

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: PHP CS Fixer
22

33
on:
44
push:
5+
branches:
6+
- master
7+
- main
8+
- develop
9+
paths:
10+
- '**.php'
511
schedule:
612
- cron: "0 0 * * 0"
713

Events.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/**
43
* @link https://www.humhub.org/
54
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG

controllers/ConfigController.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/**
43
* @link https://www.humhub.org/
54
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
@@ -27,7 +26,7 @@ public function actionIndex()
2726
{
2827
$form = new Config();
2928

30-
if ($form->load(Yii::$app->request->post()) && $form->save()) {
29+
if ($form->load(Yii::$app->request->post()) && $form->save()){
3130
$this->view->saved();
3231
}
3332

models/Message.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function rules()
5252
return [
5353
[['created_by', 'updated_by'], 'integer'],
5454
[['title'], 'string', 'max' => 255],
55-
[['created_at', 'updated_at'], 'safe'],
55+
[['created_at', 'updated_at'], 'safe']
5656
];
5757
}
5858

0 commit comments

Comments
 (0)