Code Duplication    Length = 13-13 lines in 2 locations

source/FileBasedTemplate.php 1 location

@@ 70-82 (lines=13) @@
67
    /**
68
     * @return array
69
     */
70
    protected function getVariables()
71
    {
72
        $prefix     = $this->openingDelimiter;
73
        $suffix     = $this->closingDelimiter;
74
        $variables  = parent::getVariables();
75
        $array      = array();  //@todo find a better name
76
77
        foreach ($variables as $key => $value) {
78
            $array[$prefix . $key . $suffix] = $value;
79
        }
80
81
        return $array;
82
    }
83
84
    /**
85
     * @param null|string $closingDelimiter

source/RuntimeContentBasedTemplate.php 1 location

@@ 103-115 (lines=13) @@
100
    /**
101
     * @return array
102
     */
103
    protected function getVariables()
104
    {
105
        $prefix     = $this->openingDelimiter;
106
        $suffix     = $this->closingDelimiter;
107
        $variables  = parent::getVariables();
108
        $array      = array();  //@todo find a better name
109
110
        foreach ($variables as $key => $value) {
111
            $array[$prefix . $key . $suffix] = $value;
112
        }
113
114
        return $array;
115
    }
116
117
    /**
118
     * @param null $content