Code Duplication    Length = 5-5 lines in 2 locations

lib/Property/Property.php 1 location

@@ 111-115 (lines=5) @@
108
                break;
109
            case 'default':
110
                break;
111
            case 'update_notify_listener':
112
                if (($value !== null) && (!$value instanceof UpdateNotifyListenerInterface)) {
113
                    throw new \InvalidArgumentException('Update notifications listener must implement UpdateNotifyListenerInterface');
114
                }
115
                break;
116
        }
117
        return true;
118
    }

lib/Struct.php 1 location

@@ 693-697 (lines=5) @@
690
                    throw new \InvalidArgumentException('Only structure object can be used as parent structure');
691
                }
692
                break;
693
            case 'update_notify_listener':
694
                if (($value !== null) && (!$value instanceof UpdateNotifyListenerInterface)) {
695
                    throw new \InvalidArgumentException('Update notification listener must implement UpdateNotifyListenerInterface interface');
696
                }
697
                break;
698
            case 'explicit_metadata_class':
699
                if (!is_string($value)) {
700
                    throw new \InvalidArgumentException('Explicit metadata class name should be defined as string');