Code Duplication    Length = 8-8 lines in 2 locations

src/lib/Zikula/Bundle/HookBundle/FormAwareHook/FormAwareHook.php 1 location

@@ 70-77 (lines=8) @@
67
     * @param array $templateVars
68
     * @return self
69
     */
70
    public function addTemplate($template, $templateVars = [])
71
    {
72
        if (!in_array($template, $this->templates)) {
73
            $this->templates[] = [$template, $templateVars];
74
        }
75
76
        return $this;
77
    }
78
79
    /**
80
     * @return array

src/system/UsersModule/Event/UserFormAwareEvent.php 1 location

@@ 63-70 (lines=8) @@
60
     * @param array $templateVars
61
     * @return self
62
     */
63
    public function addTemplate($template, $templateVars = [])
64
    {
65
        if (!in_array($template, $this->templates)) {
66
            $this->templates[] = [$template, $templateVars];
67
        }
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return array