Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Aug 18, 2023
1 parent 9d9d48b commit b598ef1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Api/Controller/CreateWarningController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function data(ServerRequestInterface $request, Document $document)
$warning->post_id = $requestRelationships['post']['data']['id'];
}

if (!$warning->strikes) {
if (! $warning->strikes) {
$warning->strikes = 0;
}

Expand Down
8 changes: 5 additions & 3 deletions tests/integration/setup.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

/*
* This file is part of Flarum.
* This file is part of askvortsov/flarum-moderator-warnings
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
* Copyright (c) 2021 Alexander Skvortsov.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/

use Flarum\Testing\integration\Setup\SetupScript;
Expand Down

0 comments on commit b598ef1

Please sign in to comment.