Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Feb 9, 2024
1 parent 13f9d5f commit c34bbea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Commands/DataStructuresCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function handle(
DataStructureCache $dataStructureCache,
DataClassFactory $dataClassFactory,
): void {
if(config('data.structure_caching.enabled') === false){
if(config('data.structure_caching.enabled') === false) {
$this->error('Data structure caching is not enabled');

return;
Expand Down
2 changes: 0 additions & 2 deletions tests/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use Illuminate\Contracts\Support\Responsable;
use Illuminate\Validation\ValidationException;
use Spatie\LaravelData\Attributes\DataCollectionOf;
use Spatie\LaravelData\Concerns\AppendableData;
use Spatie\LaravelData\Concerns\BaseData;
use Spatie\LaravelData\Concerns\ContextableData;
Expand All @@ -21,7 +20,6 @@
use Spatie\LaravelData\Contracts\ValidateableData as ValidateableDataContract;
use Spatie\LaravelData\Contracts\WrappableData as WrappableDataContract;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\DataCollection;
use Spatie\LaravelData\Dto;
use Spatie\LaravelData\Resource;
use Spatie\LaravelData\Tests\Fakes\SimpleData;
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/Caching/CachedDataConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function (MockInterface $spy) use ($dataClass) {
->name->toBe(SimpleData::class);
});

it('can disable caching', function (){
it('can disable caching', function () {
config()->set('data.structure_caching.enabled', false);

Cache::expects('get')->once();
Expand All @@ -97,7 +97,7 @@ function (MockInterface $spy) use ($dataClass) {
cache()->get('something-just-to-test-the-mock');
});

it('will not cache when unit testing', function (){
it('will not cache when unit testing', function () {
Cache::expects('get')->once();

SimpleData::from('Hello world');
Expand Down

0 comments on commit c34bbea

Please sign in to comment.