Skip to content

Commit 38571b5

Browse files
authored
Merge pull request #4 from SimpleSoftwareIO/analysis-qg7Yod
Apply fixes from StyleCI
2 parents e49aaf6 + aa1fbcb commit 38571b5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/Cacheable.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ trait Cacheable
1111
*/
1212
public function getCacheStore()
1313
{
14-
if (isset($this->cacheStore)) return $this->cacheStore;
15-
16-
return null;
14+
if (isset($this->cacheStore)) {
15+
return $this->cacheStore;
16+
}
1717
}
1818

1919
/**
@@ -24,7 +24,9 @@ public function getCacheStore()
2424
*/
2525
public function getCacheBusting()
2626
{
27-
if (isset($this->cacheBusting)) return $this->cacheBusting;
27+
if (isset($this->cacheBusting)) {
28+
return $this->cacheBusting;
29+
}
2830

2931
return false;
3032
}
@@ -36,7 +38,9 @@ public function getCacheBusting()
3638
*/
3739
public function getCacheLength()
3840
{
39-
if (isset($this->cacheLength)) return $this->cacheLength;
41+
if (isset($this->cacheLength)) {
42+
return $this->cacheLength;
43+
}
4044

4145
return 30;
4246
}

tests/CacheableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function the_correct_cache_store_is_returned_when_a_cache_store_is_set()
2222
$model = new class extends EloquentModel {
2323
use Cacheable;
2424

25-
protected $cacheStore= 'fooStore';
25+
protected $cacheStore = 'fooStore';
2626
};
2727

2828
$this->assertEquals('fooStore', $model->getCacheStore());

0 commit comments

Comments
 (0)