File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/Phpfastcache/Drivers/Memcached Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11name : Unit tests
2- on : [push]
2+ on : [push, pull_request_target ]
33jobs :
44 build :
55 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ public function driverCheck(): bool
6868 public function getStats (): DriverStatistic
6969 {
7070 $ stats = current ($ this ->instance ->getStats ());
71- $ stats ['uptime ' ] = ( isset ( $ stats ['uptime ' ]) ? $ stats [ ' uptime ' ] : 0 ) ;
72- $ stats ['version ' ] = ( isset ( $ stats ['version ' ]) ? $ stats [ ' version ' ] : $ this -> instance -> getVersion ()) ;
73- $ stats ['bytes ' ] = ( isset ( $ stats ['bytes ' ]) ? $ stats [ ' version ' ] : 0 );
71+ $ stats ['uptime ' ] = $ stats ['uptime ' ] ?? 0 ;
72+ $ stats ['bytes ' ] = $ stats ['bytes ' ] ?? 0 ;
73+ $ stats ['version ' ] = $ stats ['version ' ] ?? $ this -> instance -> getVersion ( );
7474
7575 $ date = (new DateTime ())->setTimestamp (time () - $ stats ['uptime ' ]);
7676
You can’t perform that action at this time.
0 commit comments