Code Duplication    Length = 9-9 lines in 2 locations

src/Kunstmaan/AdminBundle/Helper/AdminPanel/AdminPanel.php 1 location

@@ 66-74 (lines=9) @@
63
    /**
64
     * Sorts the internal list of adaptors by priority.
65
     */
66
    private function sortAdaptors()
67
    {
68
        $this->sorted = array();
69
70
        if (isset($this->adaptors)) {
71
            krsort($this->adaptors);
72
            $this->sorted = call_user_func_array('array_merge', $this->adaptors);
73
        }
74
    }
75
}
76

src/Kunstmaan/AdminBundle/Helper/Menu/MenuBuilder.php 1 location

@@ 177-185 (lines=9) @@
174
    /**
175
     * Sorts the internal list of adaptors by priority.
176
     */
177
    private function sortAdaptors()
178
    {
179
        $this->sorted = array();
180
181
        if (isset($this->adaptors)) {
182
            krsort($this->adaptors);
183
            $this->sorted = call_user_func_array('array_merge', $this->adaptors);
184
        }
185
    }
186
}
187