Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Jun 2, 2023
1 parent c2a3ee9 commit 20d5617
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
// class_notation
'final_class' => false,
'final_internal_class' => false,
'final_public_method_for_abstract_class' => true,
'final_public_method_for_abstract_class' => false,
'ordered_class_elements' => [
'order' => [
'use_trait',
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Illuminate\Support\Facades\Route;

Route::group(
['namespace' => 'Guanguans\LaravelSoar\Http\Controllers'] + config('soar.route', []),
['namespace' => 'Guanguans\LaravelSoar\Http\Controllers'] + config('soar.route'),
static function (Router $router): void {
$router->get('assets/stylesheets', 'AssetController@css')->name('assets.css');
$router->get('assets/javascript', 'AssetController@js')->name('assets.js');
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

interface Sanitizer
{
public function sanitize(Collection $collection): Collection;
public function sanitize(Collection $scores): Collection;
}
19 changes: 0 additions & 19 deletions src/Exceptions/BootException.php

This file was deleted.

19 changes: 0 additions & 19 deletions src/Exceptions/OutputException.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Outputs/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ abstract class Output implements \Guanguans\LaravelSoar\Contracts\Output, Saniti

protected array $except = [];

final public function sanitize(Collection $collection): Collection
public function sanitize(Collection $scores): Collection
{
return $collection->map(fn (array $score): array => Arr::except($score, $this->except));
return $scores->map(fn (array $score): array => Arr::except($score, $this->except));
}
}

0 comments on commit 20d5617

Please sign in to comment.