Skip to content

Commit

Permalink
Added code formatting diff from style ci
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Sep 18, 2019
1 parent d837fe4 commit c225eef
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion resources/lang/de/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

return [
'exists_model' => 'Die Ressource existiert nicht.',
'unique_model' => 'Die Ressource existiert bereits.',
'unique_model' => 'Die Ressource existiert bereits.',
];
2 changes: 1 addition & 1 deletion resources/lang/en/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

return [
'exists_model' => 'The resource does not exist.',
'unique_model' => 'The resource already exists.',
'unique_model' => 'The resource already exists.',
];
4 changes: 2 additions & 2 deletions src/Rules/ExistsEloquent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Korridor\LaravelModelValidationRules\Rules;

use Closure;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Validation\Rule;

class ExistsEloquent implements Rule
{
Expand Down Expand Up @@ -99,7 +99,7 @@ public function setBuilderClosure(?Closure $builderClosure)
* @param Closure $builderClosure
* @return $this
*/
public function query(Closure $builderClosure): ExistsEloquent
public function query(Closure $builderClosure): self
{
$this->setBuilderClosure($builderClosure);

Expand Down
6 changes: 3 additions & 3 deletions src/Rules/UniqueEloquent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Korridor\LaravelModelValidationRules\Rules;

use Closure;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Validation\Rule;

class UniqueEloquent implements Rule
{
Expand Down Expand Up @@ -110,7 +110,7 @@ public function setBuilderClosure(?Closure $builderClosure): void
* @param Closure $builderClosure
* @return $this
*/
public function query(Closure $builderClosure): UniqueEloquent
public function query(Closure $builderClosure): self
{
$this->setBuilderClosure($builderClosure);

Expand All @@ -132,7 +132,7 @@ public function setIgnore($id, ?string $column = null): void
* @param string|null $column
* @return UniqueEloquent
*/
public function ignore($id, ?string $column = null): UniqueEloquent
public function ignore($id, ?string $column = null): self
{
$this->setIgnore($id, $column);

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/ExistsEloquentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Korridor\LaravelModelValidationRules\Tests\Feature;

use Illuminate\Support\Str;
use Illuminate\Support\Facades\Lang;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Str;
use Korridor\LaravelModelValidationRules\Rules\ExistsEloquent;
use Korridor\LaravelModelValidationRules\Tests\TestCase;
use Korridor\LaravelModelValidationRules\Rules\ExistsEloquent;
use Korridor\LaravelModelValidationRules\Tests\TestEnvironment\Models\Fact;
use Korridor\LaravelModelValidationRules\Tests\TestEnvironment\Models\User;

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/UniqueEloquentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Korridor\LaravelModelValidationRules\Tests\Feature;

use Illuminate\Support\Str;
use Illuminate\Support\Facades\Lang;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Str;
use Korridor\LaravelModelValidationRules\Rules\UniqueEloquent;
use Korridor\LaravelModelValidationRules\Tests\TestCase;
use Korridor\LaravelModelValidationRules\Rules\UniqueEloquent;
use Korridor\LaravelModelValidationRules\Tests\TestEnvironment\Models\Fact;
use Korridor\LaravelModelValidationRules\Tests\TestEnvironment\Models\User;

Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Korridor\LaravelModelValidationRules\Tests;

use Illuminate\Events\Dispatcher;
use Illuminate\Container\Container;
use Illuminate\Database\Capsule\Manager;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Events\Dispatcher;
use Korridor\LaravelModelValidationRules\ModelValidationServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
use Korridor\LaravelModelValidationRules\ModelValidationServiceProvider;

abstract class TestCase extends Orchestra
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestEnvironment/Models/Fact.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Korridor\LaravelModelValidationRules\Tests\TestEnvironment\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Fact extends Model
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestEnvironment/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Korridor\LaravelModelValidationRules\Tests\TestEnvironment\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Relations\HasMany;

class User extends Model
{
Expand Down

0 comments on commit c225eef

Please sign in to comment.