Code Duplication    Length = 9-9 lines in 2 locations

tests/php/SiteTreePublishingEngineTest/Model/StaticPublishingTriggerPage.php 2 locations

@@ 22-30 (lines=9) @@
19
        return $obj;
20
    }
21
22
    public function objectsToUpdate($context)
23
    {
24
        switch ($context['action']) {
25
            case 'publish':
26
                return new ArrayList(array($this->generatePublishable('/updateOnPublish', 10)));
27
            case 'unpublish':
28
                return new ArrayList(array($this->generatePublishable('/updateOnUnpublish', 10)));
29
        }
30
    }
31
32
    /**
33
     * Remove the object on unpublishing (the parent will get updated via objectsToUpdate).
@@ 35-43 (lines=9) @@
32
    /**
33
     * Remove the object on unpublishing (the parent will get updated via objectsToUpdate).
34
     */
35
    public function objectsToDelete($context)
36
    {
37
        switch ($context['action']) {
38
            case 'publish':
39
                return new ArrayList(array($this->generatePublishable('/deleteOnPublish', 10)));
40
            case 'unpublish':
41
                return new ArrayList(array($this->generatePublishable('/deleteOnUnpublish', 10)));
42
        }
43
    }
44
}
45