Code Duplication    Length = 3-3 lines in 2 locations

eZ/Publish/Core/Repository/SectionService.php 2 locations

@@ 130-132 (lines=3) @@
127
     */
128
    public function updateSection(Section $section, SectionUpdateStruct $sectionUpdateStruct)
129
    {
130
        if ($sectionUpdateStruct->name !== null && !is_string($sectionUpdateStruct->name)) {
131
            throw new InvalidArgumentValue('name', $section->name, 'Section');
132
        }
133
134
        if ($sectionUpdateStruct->identifier !== null && !is_string($sectionUpdateStruct->identifier)) {
135
            throw new InvalidArgumentValue('identifier', $section->identifier, 'Section');
@@ 134-136 (lines=3) @@
131
            throw new InvalidArgumentValue('name', $section->name, 'Section');
132
        }
133
134
        if ($sectionUpdateStruct->identifier !== null && !is_string($sectionUpdateStruct->identifier)) {
135
            throw new InvalidArgumentValue('identifier', $section->identifier, 'Section');
136
        }
137
138
        if (!$this->permissionResolver->canUser('section', 'edit', $section)) {
139
            throw new UnauthorizedException('section', 'edit');