Skip to content

Commit defba2e

Browse files
authored
Merge branch 'master' into fix/module-resources-path
2 parents 46443a7 + 5af1c43 commit defba2e

File tree

23 files changed

+111
-107
lines changed

23 files changed

+111
-107
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: PHP CS Fixer
2+
3+
on: push
4+
5+
jobs:
6+
fixers:
7+
uses: humhub/actions/.github/workflows/module-php-cs-fixer.yml@main

Events.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818
class Events
1919
{
20-
2120
public static function onFileHandlerCollection($event)
2221
{
2322
/* @var $collection FileHandlerCollection */
@@ -31,7 +30,7 @@ public static function onFileHandlerCollection($event)
3130
/* @var $module \humhub\modules\drawio\Module */
3231
$module = Yii::$app->getModule('drawio');
3332

34-
if ($collection->file === null) {
33+
if ($collection->file === null) {
3534
return;
3635
}
3736

assets/Assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ class Assets extends AssetBundle
3232
* @inheritdoc
3333
*/
3434
public $publishOptions = [
35-
'forceCopy' => false
35+
'forceCopy' => false,
3636
];
3737
}

components/BaseFileController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88

99
namespace humhub\modules\drawio\components;
1010

11+
use humhub\components\Controller;
12+
use humhub\modules\file\models\File;
1113
use Yii;
1214
use yii\web\HttpException;
13-
use yii\helpers\Url;
14-
use humhub\modules\file\models\File;
15-
use humhub\components\Controller;
1615

1716
/**
1817
* Description of BaseFileController
@@ -21,7 +20,6 @@
2120
*/
2221
class BaseFileController extends Controller
2322
{
24-
2523
/**
2624
* @var File
2725
*/

config.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
'namespace' => 'humhub\modules\drawio',
99
'events' => [
1010
[FileHandlerCollection::className(), FileHandlerCollection::EVENT_INIT, ['humhub\modules\drawio\Events', 'onFileHandlerCollection']],
11-
]
11+
],
1212
];
13-
?>

controllers/AdminController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
class AdminController extends Controller
1616
{
17-
1817
public function actionIndex()
1918
{
2019
$model = new ConfigureForm();

controllers/CreateController.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
class CreateController extends \humhub\components\Controller
1717
{
18-
1918
public function actionIndex()
2019
{
2120
$ext = 'drawio';
@@ -25,15 +24,15 @@ public function actionIndex()
2524
$file = $model->save();
2625
if ($file !== false) {
2726
return $this->asJson([
28-
'success' => true,
29-
'file' => FileHelper::getFileInfos($file),
30-
'openUrl' => Url::to(['/drawio/open', 'guid' => $file->guid]),
31-
'openFlag' => (boolean) $model->openFlag
27+
'success' => true,
28+
'file' => FileHelper::getFileInfos($file),
29+
'openUrl' => Url::to(['/drawio/open', 'guid' => $file->guid]),
30+
'openFlag' => (bool) $model->openFlag,
3231
]);
3332
} else {
3433
return $this->asJson([
35-
'success' => false,
36-
'output' => $this->renderAjax('index', ['model' => $model, 'ext' => $ext])
34+
'success' => false,
35+
'output' => $this->renderAjax('index', ['model' => $model, 'ext' => $ext]),
3736
]);
3837
}
3938
}

controllers/OpenController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313

1414
class OpenController extends BaseFileController
1515
{
16-
1716
public function actionIndex()
1817
{
1918
return $this->renderAjax('index', [
20-
'file' => $this->file,
19+
'file' => $this->file,
2120
]);
2221
}
2322

@@ -31,7 +30,7 @@ public function actionUpdate()
3130
$this->file->save();
3231

3332
return [
34-
'ok' => true
33+
'ok' => true,
3534
];
3635
}
3736

docs/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
Changelog
22
=========
33

4-
1.1.0 - Unreleased
5-
----------------------
4+
1.1.0 (August 28, 2025)
5+
-----------------------
6+
- Enh #18: Update Active Form for Bootstrap 5
67
- Fix #17: Update module resources path
8+
- Enh #19: Use PHP CS Fixer
9+
- Enh #20: Migration to Bootstrap 5 for HumHub 1.18
710

811
1.0.5 - April 4, 2024
912
----------------------

README.md renamed to docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Create charts in the easiest way imaginable. With our draw.io integration it has
66

77
- Create, edit and share diagrams with the well renowned tool
88
- Increase your productivity by collaboratively designing projects
9-
- Comment, discuss and show your appreciaten with a like
9+
- Comment, discuss and show your appreciation with a like

0 commit comments

Comments
 (0)