Code Duplication    Length = 11-11 lines in 2 locations

src/Show/Tools.php 1 location

@@ 302-312 (lines=11) @@
299
     *
300
     * @return string
301
     */
302
    public function render()
303
    {
304
        $output = $this->renderCustomTools($this->prepends);
305
306
        foreach ($this->tools as $tool) {
307
            $renderMethod = 'render'.ucfirst($tool);
308
            $output .= $this->$renderMethod();
309
        }
310
311
        return $output.$this->renderCustomTools($this->appends);
312
    }
313
}
314

src/Form/Tools.php 1 location

@@ 336-346 (lines=11) @@
333
     *
334
     * @return string
335
     */
336
    public function render()
337
    {
338
        $output = $this->renderCustomTools($this->prepends);
339
340
        foreach ($this->tools as $tool) {
341
            $renderMethod = 'render'.ucfirst($tool);
342
            $output .= $this->$renderMethod();
343
        }
344
345
        return $output.$this->renderCustomTools($this->appends);
346
    }
347
}
348