File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments