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/HTTPExecutor.php 1 location

@@ 130-140 (lines=11) @@
127
    /**
128
     * @deprecated should be moved into the reference resolver classes
129
     */
130
    protected function resolveReferencesRecursively($match)
131
    {
132
        if (is_array($match)) {
133
            foreach ($match as $condition => $values) {
134
                $match[$condition] = $this->resolveReferencesRecursively($values);
135
            }
136
            return $match;
137
        } else {
138
            return $this->referenceResolver->resolveReference($match);
139
        }
140
    }
141
142
    /**
143
     * Replaces any references inside a string

Core/Executor/RepositoryExecutor.php 1 location

@@ 211-221 (lines=11) @@
208
     * Courtesy code to avoid reimplementing it in every subclass
209
     * @deprecated will be moved into the reference resolver classes
210
     */
211
    protected function resolveReferencesRecursively($match)
212
    {
213
        if (is_array($match)) {
214
            foreach ($match as $condition => $values) {
215
                $match[$condition] = $this->resolveReferencesRecursively($values);
216
            }
217
            return $match;
218
        } else {
219
            return $this->referenceResolver->resolveReference($match);
220
        }
221
    }
222
}
223