Code Duplication    Length = 11-11 lines in 4 locations

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

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

Core/Executor/RepositoryExecutor.php 1 location

@@ 237-247 (lines=11) @@
234
     * Courtesy code to avoid reimplementing it in every subclass
235
     * @deprecated will be moved into the reference resolver classes
236
     */
237
    protected function resolveReferencesRecursively($match)
238
    {
239
        if (is_array($match)) {
240
            foreach ($match as $condition => $values) {
241
                $match[$condition] = $this->resolveReferencesRecursively($values);
242
            }
243
            return $match;
244
        } else {
245
            return $this->referenceResolver->resolveReference($match);
246
        }
247
    }
248
}
249

Core/Executor/ServiceExecutor.php 1 location

@@ 123-133 (lines=11) @@
120
        return true;
121
    }
122
123
    protected function resolveReferencesRecursively($match)
124
    {
125
        if (is_array($match)) {
126
            foreach ($match as $condition => $values) {
127
                $match[$condition] = $this->resolveReferencesRecursively($values);
128
            }
129
            return $match;
130
        } else {
131
            return $this->referenceResolver->resolveReference($match);
132
        }
133
    }
134
}
135