Code Duplication    Length = 5-5 lines in 2 locations

plugins/Field/src/Model/Behavior/FieldableBehavior.php 1 location

@@ 168-172 (lines=5) @@
165
     */
166
    public function beforeFind(Event $event, Query $query, ArrayObject $options, $primary)
167
    {
168
        if ((isset($options['fieldable']) && $options['fieldable'] === false) ||
169
            !$this->config('status')
170
        ) {
171
            return true;
172
        }
173
174
        if (array_key_exists('eav', $options)) {
175
            unset($options['eav']);

plugins/Eav/src/Model/Behavior/EavBehavior.php 1 location

@@ 419-423 (lines=5) @@
416
     */
417
    public function beforeFind(Event $event, Query $query, ArrayObject $options, $primary)
418
    {
419
        if (!$this->config('status') ||
420
            (isset($options['eav']) && $options['eav'] === false)
421
        ) {
422
            return true;
423
        }
424
425
        $options['bundle'] = !isset($options['bundle']) ? null : $options['bundle'];
426
        $this->_initScopes();