src/Mediable.php
protected function mediaIsDirty($tags = null)
    {
        if (is_null($tags)) {
            return count($this->media_dirty_tags);
        } else {
            return count(array_intersect((array) $tags, $this->media_dirty_tags));
        }
    }
protected function mediaIsDirty($tags = null)
    {
        if (is_null($tags)) {
            return count($this->media_dirty_tags);
        } else {
            return count(array_intersect((array) $tags, $this->media_dirty_tags));
        }
    }
protected function mediaIsDirty ( $ tags = null ) { if ( is_null ( $ tags ) ) { return count ( $ this -> media_dirty_tags ) ; } else { return count ( array_intersect ( ( array ) $ tags , $ this -> media_dirty_tags ) ) ; } }
Check if media attached to the specified tags has been modified.
@param  null|string|string[] $tags
If omitted, will return `true` if any tags have been modified
@return bool
Check if media attached to the specified tags has been modified .