Code Duplication    Length = 6-6 lines in 2 locations

src/SWP/Bundle/TemplatesSystemBundle/Loader/TraceableChainLoader.php 2 locations

@@ 34-39 (lines=6) @@
31
    {
32
        foreach ($this->loaders as $priority => $loader) {
33
            $loaderClass = \get_class($loader);
34
            if (!\array_key_exists($loaderClass, $this->data['loaders'])) {
35
                $this->data['loaders'][$loaderClass] = [
36
                    'priority' => $priority,
37
                    'calls' => [],
38
                ];
39
            }
40
        }
41
42
        foreach ($this->loaders as $priority => $loader) {
@@ 46-51 (lines=6) @@
43
            $loaderClass = \get_class($loader);
44
            $stopwatch = new Stopwatch();
45
            if ($loader->isSupported($type)) {
46
                if (!\array_key_exists($loaderClass, $this->data['calledLoaders'])) {
47
                    $this->data['calledLoaders'][$loaderClass] = [
48
                        'priority' => $priority,
49
                        'calls' => [],
50
                    ];
51
                }
52
53
                $stopwatch->start($loaderClass);
54
                $meta = $loader->load($type, $parameters, $withoutParameters, $responseType);