final public function batchPush( array $jobs, $flags = 0 ) {
$this->assertNotReadOnly();
- if ( !count( $jobs ) ) {
+ if ( $jobs === [] ) {
return; // nothing to do
}
* @return string
*/
protected function getRootJobCacheKey( $signature ) {
- $this->dupCache->makeGlobalKey(
+ return $this->dupCache->makeGlobalKey(
'jobqueue',
$this->domain,
$this->type,