@@ -43,9 +43,9 @@ |
||
| 43 | 43 | $class = get_called_class(); |
| 44 | 44 | $instance = new $class; |
| 45 | 45 | |
| 46 | - if (!$instance->isCachable()) { |
|
| 47 | - return parent::all($columns); |
|
| 48 | - } |
|
| 46 | + if (!$instance->isCachable()) { |
|
| 47 | + return parent::all($columns); |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | 50 | $tags = $instance->makeCacheTags(); |
| 51 | 51 | $key = $instance->makeCacheKey(); |
@@ -1,19 +1,7 @@ |
||
| 1 | 1 | <?php namespace GeneaLabs\LaravelModelCaching\Tests\Integration\CachedBuilder; |
| 2 | 2 | |
| 3 | 3 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Author; |
| 4 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Book; |
|
| 5 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Profile; |
|
| 6 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Publisher; |
|
| 7 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Store; |
|
| 8 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedAuthor; |
|
| 9 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedBook; |
|
| 10 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedProfile; |
|
| 11 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedPublisher; |
|
| 12 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedStore; |
|
| 13 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Http\Resources\Author as AuthorResource; |
|
| 14 | 4 | use GeneaLabs\LaravelModelCaching\Tests\IntegrationTestCase; |
| 15 | -use Illuminate\Foundation\Testing\RefreshDatabase; |
|
| 16 | -use Illuminate\Support\Collection; |
|
| 17 | 5 | |
| 18 | 6 | class CreateTest extends IntegrationTestCase |
| 19 | 7 | { |
@@ -1,19 +1,7 @@ |
||
| 1 | 1 | <?php namespace GeneaLabs\LaravelModelCaching\Tests\Integration\CachedBuilder; |
| 2 | 2 | |
| 3 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Author; |
|
| 4 | 3 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Book; |
| 5 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Profile; |
|
| 6 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Publisher; |
|
| 7 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Store; |
|
| 8 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedAuthor; |
|
| 9 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedBook; |
|
| 10 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedProfile; |
|
| 11 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedPublisher; |
|
| 12 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedStore; |
|
| 13 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Http\Resources\Author as AuthorResource; |
|
| 14 | 4 | use GeneaLabs\LaravelModelCaching\Tests\IntegrationTestCase; |
| 15 | -use Illuminate\Foundation\Testing\RefreshDatabase; |
|
| 16 | -use Illuminate\Support\Collection; |
|
| 17 | 5 | |
| 18 | 6 | class DecrementTest extends IntegrationTestCase |
| 19 | 7 | { |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php namespace GeneaLabs\LaravelModelCaching\Tests\Integration\CachedBuilder; |
| 2 | 2 | |
| 3 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Author; |
|
| 4 | 3 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Supplier; |
| 5 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedAuthor; |
|
| 6 | 4 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedSupplier; |
| 7 | 5 | use GeneaLabs\LaravelModelCaching\Tests\IntegrationTestCase; |
| 8 | 6 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Book; |
| 5 | 5 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedAuthor; |
| 6 | 6 | use GeneaLabs\LaravelModelCaching\Tests\IntegrationTestCase; |
| 7 | -use Illuminate\Support\Str; |
|
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * @SuppressWarnings(PHPMD.TooManyPublicMethods) |
@@ -1,18 +1,9 @@ |
||
| 1 | 1 | <?php namespace GeneaLabs\LaravelModelCaching\Tests\Integration\Traits; |
| 2 | 2 | |
| 3 | 3 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Author; |
| 4 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Book; |
|
| 5 | 4 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\PrefixedAuthor; |
| 6 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Profile; |
|
| 7 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Publisher; |
|
| 8 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Store; |
|
| 9 | 5 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedAuthor; |
| 10 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedBook; |
|
| 11 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedProfile; |
|
| 12 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedPublisher; |
|
| 13 | -use GeneaLabs\LaravelModelCaching\Tests\Fixtures\UncachedStore; |
|
| 14 | 6 | use GeneaLabs\LaravelModelCaching\Tests\IntegrationTestCase; |
| 15 | -use Illuminate\Foundation\Testing\RefreshDatabase; |
|
| 16 | 7 | use Illuminate\Database\Eloquent\Collection; |
| 17 | 8 | |
| 18 | 9 | class CachableTest extends IntegrationTestCase |