Skip to content

Commit f803395

Browse files
Merge pull request #16 from orkhanahmadov/analysis-87mwZb
Apply fixes from StyleCI
2 parents eddc882 + 78dd9e8 commit f803395

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

src/EloquentRepository.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
namespace Orkhanahmadov\EloquentRepository;
44

5+
use Illuminate\Support\Arr;
6+
use Illuminate\Database\Eloquent\Model;
7+
use Illuminate\Database\Eloquent\Builder;
58
use Illuminate\Contracts\Cache\Factory as Cache;
6-
use Illuminate\Contracts\Container\BindingResolutionException;
79
use Illuminate\Contracts\Foundation\Application;
8-
use Illuminate\Database\Eloquent\{Builder, Model, ModelNotFoundException};
9-
use Illuminate\Support\Arr;
10-
use Orkhanahmadov\EloquentRepository\Repository\{Concerns\CreatesEntity,
11-
Concerns\DeletesEntity,
12-
Concerns\SelectsEntity,
13-
Concerns\UpdatesEntity,
14-
Contracts\Repository,
15-
Criteria};
10+
use Illuminate\Database\Eloquent\ModelNotFoundException;
11+
use Orkhanahmadov\EloquentRepository\Repository\Criteria;
12+
use Illuminate\Contracts\Container\BindingResolutionException;
13+
use Orkhanahmadov\EloquentRepository\Repository\Contracts\Repository;
14+
use Orkhanahmadov\EloquentRepository\Repository\Concerns\CreatesEntity;
15+
use Orkhanahmadov\EloquentRepository\Repository\Concerns\DeletesEntity;
16+
use Orkhanahmadov\EloquentRepository\Repository\Concerns\SelectsEntity;
17+
use Orkhanahmadov\EloquentRepository\Repository\Concerns\UpdatesEntity;
1618

1719
class EloquentRepository implements Repository
1820
{
@@ -143,7 +145,7 @@ private function cacheTTLValue(): int
143145
}
144146

145147
/**
146-
* Throws ModelNotFoundException exception
148+
* Throws ModelNotFoundException exception.
147149
*
148150
* @param array|int $ids
149151
*/

src/Repository/Concerns/CreatesEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Orkhanahmadov\EloquentRepository\Repository\Concerns;
44

5-
use Illuminate\Database\Eloquent\Builder;
65
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Builder;
77

88
/**
99
* @property-read Builder|Model $model

src/Repository/Concerns/DeletesEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Orkhanahmadov\EloquentRepository\Repository\Concerns;
44

5+
use Illuminate\Database\Eloquent\Model;
56
use Illuminate\Database\Eloquent\Builder;
67
use Illuminate\Database\Eloquent\Collection;
7-
use Illuminate\Database\Eloquent\Model;
88
use Orkhanahmadov\EloquentRepository\Repository\Contracts\Cacheable;
99

1010
/**

src/Repository/Concerns/SelectsEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Orkhanahmadov\EloquentRepository\Repository\Concerns;
44

5+
use Illuminate\Support\Arr;
56
use Illuminate\Contracts\Cache\Factory;
7+
use Illuminate\Database\Eloquent\Model;
68
use Illuminate\Database\Eloquent\Builder;
79
use Illuminate\Database\Eloquent\Collection;
8-
use Illuminate\Database\Eloquent\Model;
9-
use Illuminate\Support\Arr;
1010
use Orkhanahmadov\EloquentRepository\Repository\Contracts\Cacheable;
1111

1212
/**

src/Repository/Concerns/UpdatesEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Orkhanahmadov\EloquentRepository\Repository\Concerns;
44

5-
use Illuminate\Database\Eloquent\Builder;
65
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Builder;
77
use Orkhanahmadov\EloquentRepository\Repository\Contracts\Cacheable;
88

99
/**

tests/Repository/EloquentRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
use Carbon\Carbon;
66
use Illuminate\Support\Facades\DB;
77
use Illuminate\Support\Facades\Cache;
8-
use Orkhanahmadov\EloquentRepository\EloquentRepository;
98
use Orkhanahmadov\EloquentRepository\Tests\Model;
109
use Orkhanahmadov\EloquentRepository\Tests\TestCase;
1110
use Illuminate\Database\Eloquent\ModelNotFoundException;
11+
use Orkhanahmadov\EloquentRepository\EloquentRepository;
1212
use Orkhanahmadov\EloquentRepository\Tests\FakeModelRepository;
1313
use Orkhanahmadov\EloquentRepository\Tests\FakeModelRelationRepository;
1414
use Orkhanahmadov\EloquentRepository\Tests\FakeModelCacheableRepository;

0 commit comments

Comments
 (0)