protected function matchJobName($payload)
    {
        preg_match('/"([^"]+)"/', $payload['data']['command'], $matches);

        if (isset($matches[1])) {
            return $matches[1];
        }

        return $payload['job'] ?? null;
    }
protected function matchJobName($payload)
    {
        preg_match('/"([^"]+)"/', $payload['data']['command'], $matches);

        if (isset($matches[1])) {
            return $matches[1];
        }

        return $payload['job'] ?? null;
    }
protected function matchJobName ( $ payload ) { preg_match ( '/"([^"]+)"/' , $ payload [ 'data' ] [ 'command' ] , $ matches ) ; if ( isset ( $ matches [ 1 ] ) ) { return $ matches [ 1 ] ; } return $ payload [ 'job' ] ?? null ; }
Match the job name from the payload.

@param array $payload
@return string
Match the job name from the payload .