Code Duplication    Length = 5-5 lines in 2 locations

src/Parsers/ExtendedJsonParser.php 1 location

@@ 118-122 (lines=5) @@
115
                $libDir = sprintf('%s/%s/%s', $this->vendorDir, $extensionLibrary, $defaultConfigurationDir);
116
117
                // create the canonicalized absolute pathname and try to load the configuration
118
                if (is_dir($libraryDir = realpath($libDir))) {
119
                    $this->process($main, $libraryDir);
120
                } else {
121
                    throw new \Exception(sprintf('Can\'t find find extension library directory "%s"', $libDir));
122
                }
123
            }
124
        }
125
    }

src/Parsers/JsonParser.php 1 location

@@ 173-177 (lines=5) @@
170
                            }
171
172
                            // create the canonicalized absolute pathname and try to load the configuration
173
                            if (is_dir($libraryDir = realpath($libDir))) {
174
                                $this->process($main, $libraryDir);
175
                            } else {
176
                                throw new \Exception(sprintf('Can\'t find find library directory "%s"', $libDir));
177
                            }
178
                        }
179
                    }
180
                }