Code Duplication    Length = 11-11 lines in 2 locations

library/WebinoAppLib/Service/Bootstrap.php 2 locations

@@ 169-179 (lines=11) @@
166
    /**
167
     * @param callable $callback
168
     */
169
    protected function eachCoreListener(callable $callback)
170
    {
171
        $listeners = $this->app->getCoreConfig(Config::LISTENERS);
172
        if (empty($listeners)) {
173
            return;
174
        }
175
176
        foreach ($listeners as $listener) {
177
            call_user_func($callback, $listener);
178
        }
179
    }
180
181
    /**
182
     * @param callable $callback
@@ 184-194 (lines=11) @@
181
    /**
182
     * @param callable $callback
183
     */
184
    protected function eachListener(callable $callback)
185
    {
186
        $listeners = $this->app->getConfig(Config::LISTENERS);
187
        if (empty($listeners)) {
188
            return;
189
        }
190
191
        foreach ($listeners as $listener) {
192
            call_user_func($callback, $listener);
193
        }
194
    }
195
}
196