Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Nov 14, 2024
1 parent 356624b commit e761327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions framework/core/src/Foundation/AbstractValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace Flarum\Foundation;

use Flarum\Foundation\ExtensionIdTrait;
use Illuminate\Support\Arr;
use Illuminate\Validation\Factory;
use Illuminate\Validation\ValidationException;
Expand Down Expand Up @@ -92,7 +91,7 @@ protected function getAttributeNames()
$extId = $this->getClassExtensionId();
$attributeNames = [];

foreach(array_keys($this->rules) as $attribute) {
foreach (array_keys($this->rules) as $attribute) {
$key = $extId ? "$extId.validation.attributes.$attribute" : "validation.attributes.$attribute";
$attributeNames[$attribute] = $this->translator->trans($key);
}
Expand Down
4 changes: 2 additions & 2 deletions framework/core/src/Foundation/ExtensionIdTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
* LICENSE file that was distributed with this source code.
*/

namespace Flarum\Foundation;
namespace Flarum\Foundation;

use Flarum\Extension\ExtensionManager;
use Flarum\Extension\Extension;
use Flarum\Extension\ExtensionManager;

trait ExtensionIdTrait
{
Expand Down

0 comments on commit e761327

Please sign in to comment.