classes/Observers/Encoding.php
public function isEncodable($model)
    {
        if (!method_exists($model, 'getDirtyEncodableAttributes')) {
            return false;
        }

        if (is_a($model, 'Bkwld\Decoy\Models\Element') && $model->getAttribute('type') != 'video-encoder') {
            return false;
        }

        return true;
    }
public function isEncodable($model)
    {
        if (!method_exists($model, 'getDirtyEncodableAttributes')) {
            return false;
        }

        if (is_a($model, 'Bkwld\Decoy\Models\Element') && $model->getAttribute('type') != 'video-encoder') {
            return false;
        }

        return true;
    }
public function isEncodable ( $ model ) { if ( ! method_exists ( $ model , 'getDirtyEncodableAttributes' ) ) { return false ; } if ( is_a ( $ model , 'Bkwld\Decoy\Models\Element' ) && $ model -> getAttribute ( 'type' ) != 'video-encoder' ) { return false ; } return true ; }
Check if a model should be encoded

@param  Bkwld\Decoy\Models\Base $model
@return boolean
Check if a model should be encoded