Code Duplication    Length = 11-11 lines in 3 locations

Core/Executor/MailExecutor.php 1 location

@@ 108-118 (lines=11) @@
105
    /**
106
     * @deprecated should be moved into the reference resolver classes
107
     */
108
    protected function resolveReferencesRecursively($match)
109
    {
110
        if (is_array($match)) {
111
            foreach ($match as $condition => $values) {
112
                $match[$condition] = $this->resolveReferencesRecursively($values);
113
            }
114
            return $match;
115
        } else {
116
            return $this->referenceResolver->resolveReference($match);
117
        }
118
    }
119
120
    /**
121
     * Replaces any references inside a string

Core/Executor/RepositoryExecutor.php 1 location

@@ 165-175 (lines=11) @@
162
     * Courtesy code to avoid reimplementing it in every subclass
163
     * @deprecated will be moved into the reference resolver classes
164
     */
165
    protected function resolveReferencesRecursively($match)
166
    {
167
        if (is_array($match)) {
168
            foreach ($match as $condition => $values) {
169
                $match[$condition] = $this->resolveReferencesRecursively($values);
170
            }
171
            return $match;
172
        } else {
173
            return $this->referenceResolver->resolveReference($match);
174
        }
175
    }
176
}
177

Core/Executor/HTTPExecutor.php 1 location

@@ 121-131 (lines=11) @@
118
    /**
119
     * @deprecated should be moved into the reference resolver classes
120
     */
121
    protected function resolveReferencesRecursively($match)
122
    {
123
        if (is_array($match)) {
124
            foreach ($match as $condition => $values) {
125
                $match[$condition] = $this->resolveReferencesRecursively($values);
126
            }
127
            return $match;
128
        } else {
129
            return $this->referenceResolver->resolveReference($match);
130
        }
131
    }
132
133
    /**
134
     * Replaces any references inside a string