File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,8 @@ This means that the `DragonCode\Contracts\*` contracts will no longer be working
36
36
### TTL Time Constants
37
37
38
38
Constants ` DAY ` , ` MONTH ` and ` WEEK ` was deleted from ` DragonCode\Cache\Support\Ttl ` class.
39
+
40
+ ### Properties
41
+
42
+ 1 . The case of the properties of the properties from ` snake_case ` with ` camelCase ` is changed.
43
+ 2 . The ` hashing_key ` property of ` DragonCode\Cache\Services\Cache ` class was renamed with ` useHash ` .
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class Cache
34
34
35
35
protected bool $ hashing_key = true ;
36
36
37
- protected string $ key_hash = '' ;
37
+ protected string $ keyHash = '' ;
38
38
39
39
protected bool |object |string $ when = true ;
40
40
@@ -51,9 +51,9 @@ public function when(bool|object|string $when = true): Cache
51
51
return $ this ;
52
52
}
53
53
54
- public function ttl ($ value , bool $ is_minutes = true ): Cache
54
+ public function ttl ($ value , bool $ isMinutes = true ): Cache
55
55
{
56
- $ this ->ttl = $ is_minutes
56
+ $ this ->ttl = $ isMinutes
57
57
? Ttl::fromMinutes ($ value )
58
58
: Ttl::fromSeconds ($ value );
59
59
@@ -149,8 +149,8 @@ protected function manager(): CacheManager
149
149
150
150
protected function getKey (): string
151
151
{
152
- if (! empty ($ this ->key_hash )) {
153
- return $ this ->key_hash ;
152
+ if (! empty ($ this ->keyHash )) {
153
+ return $ this ->keyHash ;
154
154
}
155
155
156
156
$ key = $ this ->key ;
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ public function fromSeconds($seconds): int
30
30
return $ this ->get ($ seconds );
31
31
}
32
32
33
- public function fromDateTime (DateTimeInterface $ date_time ): int
33
+ public function fromDateTime (DateTimeInterface $ dateTime ): int
34
34
{
35
- $ seconds = Carbon::now ()->diffInSeconds ($ date_time );
35
+ $ seconds = Carbon::now ()->diffInSeconds ($ dateTime );
36
36
37
37
return $ this ->correct ($ seconds );
38
38
}
You can’t perform that action at this time.
0 commit comments