public function delete(Application $application)
    {
        $rows = array();

        foreach ($this->getRows() as $row) {
            if ($row['id'] == $application->getId()) {
                continue;
            }
            $rows[] = $row;
        }

        file_put_contents($this->filename, Yaml::dump($rows));
    }
public function delete(Application $application)
    {
        $rows = array();

        foreach ($this->getRows() as $row) {
            if ($row['id'] == $application->getId()) {
                continue;
            }
            $rows[] = $row;
        }

        file_put_contents($this->filename, Yaml::dump($rows));
    }
public function delete ( Application $ application ) { $ rows = array ( ) ; foreach ( $ this -> getRows ( ) as $ row ) { if ( $ row [ 'id' ] == $ application -> getId ( ) ) { continue ; } $ rows [ ] = $ row ; } file_put_contents ( $ this -> filename , Yaml :: dump ( $ rows ) ) ; }
Delete an application

@param Application $application
@return mixed
Delete an application