src/Models/SystemLog.php
/**
     * Helper method, applies directly the required transformations to a database record
     * @param array $record A database record
     * @return array|null
     */
Helper method, applies directly the required transformations to a database record
@param array $record A database record
@return array|null
Helper method applies directly the required transformations to a database record @param array $record A database record @return array|null
private static function prepareRecord(&$record)
    {
        if (!$record) {
            return null;
        }
        if (isset($record['request_params'])) {
            $record['request_params'] = json_decode($record['request_params']);
        }
        if (isset($record['request_headers'])) {
            $record['request_headers'] = json_decode($record['request_headers']);
        }
        if (isset($record['additional_parameters'])) {
            $record['additional_parameters'] = json_decode($record['additional_parameters']);
        }
        if (isset($record['call_trace'])) {
            $record['call_trace'] = json_decode($record['call_trace']);
        }
        if (isset($record['response_headers'])) {
            $record['response_headers'] = json_decode($record['response_headers']);
        }
        if (isset($record['errors'])) {
            $record['errors'] = json_decode($record['errors']);
        }
    }
private static function prepareRecord ( & $ record ) { if ( ! $ record ) { return null ; } if ( isset ( $ record [ 'request_params' ] ) ) { $ record [ 'request_params' ] = json_decode ( $ record [ 'request_params' ] ) ; } if ( isset ( $ record [ 'request_headers' ] ) ) { $ record [ 'request_headers' ] = json_decode ( $ record [ 'request_headers' ] ) ; } if ( isset ( $ record [ 'additional_parameters' ] ) ) { $ record [ 'additional_parameters' ] = json_decode ( $ record [ 'additional_parameters' ] ) ; } if ( isset ( $ record [ 'call_trace' ] ) ) { $ record [ 'call_trace' ] = json_decode ( $ record [ 'call_trace' ] ) ; } if ( isset ( $ record [ 'response_headers' ] ) ) { $ record [ 'response_headers' ] = json_decode ( $ record [ 'response_headers' ] ) ; } if ( isset ( $ record [ 'errors' ] ) ) { $ record [ 'errors' ] = json_decode ( $ record [ 'errors' ] ) ; } }
Helper method, applies directly the required transformations to a database record
 @param array $record A database record
 @return array|null
Helper method applies directly the required transformations to a database record @param array $record A database record @return array|null