src/Persist.php
private function trashCollectFiles($data = null)
    {
        $this->debug->groupCollapsed(__METHOD__);
        $data = isset($data)
            ? $data
            : $this->data;
        foreach ($data['pages'] as $info) {
            foreach ($info['values'] as $a) {
                if (\is_array($a) && !empty($a['tmp_name']) && \file_exists($a['tmp_name'])) {
                    $this->debug->log('deleting '.$a['tmp_name']);
                    \unlink($a['tmp_name']);
                }
            }
        }
        $this->debug->groupEnd();
        return;
    }
private function trashCollectFiles($data = null)
    {
        $this->debug->groupCollapsed(__METHOD__);
        $data = isset($data)
            ? $data
            : $this->data;
        foreach ($data['pages'] as $info) {
            foreach ($info['values'] as $a) {
                if (\is_array($a) && !empty($a['tmp_name']) && \file_exists($a['tmp_name'])) {
                    $this->debug->log('deleting '.$a['tmp_name']);
                    \unlink($a['tmp_name']);
                }
            }
        }
        $this->debug->groupEnd();
        return;
    }
private function trashCollectFiles ( $ data = null ) { $ this -> debug -> groupCollapsed ( __METHOD__ ) ; $ data = isset ( $ data ) ? $ data : $ this -> data ; foreach ( $ data [ 'pages' ] as $ info ) { foreach ( $ info [ 'values' ] as $ a ) { if ( \ is_array ( $ a ) && ! empty ( $ a [ 'tmp_name' ] ) && \ file_exists ( $ a [ 'tmp_name' ] ) ) { $ this -> debug -> log ( 'deleting ' . $ a [ 'tmp_name' ] ) ; \ unlink ( $ a [ 'tmp_name' ] ) ; } } } $ this -> debug -> groupEnd ( ) ; return ; }
remove temporary upload files

@param array $data persist data

@return void
remove temporary upload files