Code Duplication    Length = 11-11 lines in 2 locations

src/Form/Tools.php 1 location

@@ 309-319 (lines=11) @@
306
     *
307
     * @return string
308
     */
309
    public function render()
310
    {
311
        $output = $this->renderCustomTools($this->prepends);
312
313
        foreach ($this->tools as $tool) {
314
            $renderMethod = 'render'.ucfirst($tool);
315
            $output .= $this->$renderMethod();
316
        }
317
318
        return $output.$this->renderCustomTools($this->appends);
319
    }
320
}
321

src/Show/Tools.php 1 location

@@ 296-306 (lines=11) @@
293
     *
294
     * @return string
295
     */
296
    public function render()
297
    {
298
        $output = $this->renderCustomTools($this->prepends);
299
300
        foreach ($this->tools as $tool) {
301
            $renderMethod = 'render'.ucfirst($tool);
302
            $output .= $this->$renderMethod();
303
        }
304
305
        return $output.$this->renderCustomTools($this->appends);
306
    }
307
}
308