src/Components/Recorder.php
protected function excludeKeys(array $data) {
        $keys = isset($this->config['excludeKeys']) ? $this->config['excludeKeys'] : [];
        foreach ($data as $key => &$value) {
            if (in_array($key, $keys)) {
                unset($data[$key]);
            } else if (is_array($value)) {
                $value = $this->excludeKeys($value);
            }
        }

        return $data;
    }
protected function excludeKeys(array $data) {
        $keys = isset($this->config['excludeKeys']) ? $this->config['excludeKeys'] : [];
        foreach ($data as $key => &$value) {
            if (in_array($key, $keys)) {
                unset($data[$key]);
            } else if (is_array($value)) {
                $value = $this->excludeKeys($value);
            }
        }

        return $data;
    }
protected function excludeKeys ( array $ data ) { $ keys = isset ( $ this -> config [ 'excludeKeys' ] ) ? $ this -> config [ 'excludeKeys' ] : [ ] ; foreach ( $ data as $ key => & $ value ) { if ( in_array ( $ key , $ keys ) ) { unset ( $ data [ $ key ] ) ; } else if ( is_array ( $ value ) ) { $ value = $ this -> excludeKeys ( $ value ) ; } } return $ data ; }
This function will remove all keys from an array recursively as defined in the config file
@param  array $data The array to remove keys from
@return void
This function will remove all keys from an array recursively as defined in the config file