diff --git a/joern-cli/frontends/php2cpg/src/main/scala/io/joern/php2cpg/parser/PhpParser.scala b/joern-cli/frontends/php2cpg/src/main/scala/io/joern/php2cpg/parser/PhpParser.scala index 7af674c3bb87..1145cf05116c 100644 --- a/joern-cli/frontends/php2cpg/src/main/scala/io/joern/php2cpg/parser/PhpParser.scala +++ b/joern-cli/frontends/php2cpg/src/main/scala/io/joern/php2cpg/parser/PhpParser.scala @@ -140,7 +140,8 @@ object PhpParser { } private def defaultPhpParserBin: String = { - val packagePath = Paths.get(this.getClass.getProtectionDomain.getCodeSource.getLocation.toURI).toAbsolutePath.toString + val packagePath = + Paths.get(this.getClass.getProtectionDomain.getCodeSource.getLocation.toURI).toAbsolutePath.toString ExternalCommand .executableDir(packagePath) .resolve("php-parser/php-parser.php") diff --git a/joern-cli/frontends/x2cpg/src/main/scala/io/joern/x2cpg/utils/ExternalCommand.scala b/joern-cli/frontends/x2cpg/src/main/scala/io/joern/x2cpg/utils/ExternalCommand.scala index 3d97453f9f87..cbb357083866 100644 --- a/joern-cli/frontends/x2cpg/src/main/scala/io/joern/x2cpg/utils/ExternalCommand.scala +++ b/joern-cli/frontends/x2cpg/src/main/scala/io/joern/x2cpg/utils/ExternalCommand.scala @@ -56,11 +56,11 @@ trait ExternalCommand { object ExternalCommand extends ExternalCommand { - /** Finds the absolute path to the executable directory (e.g. `/path/to/javasrc2cpg/bin`). - * Based on the package path of a loaded classfile based on some (potentially flakey?) filename heuristics. - * Context: we want to be able to invoke the x2cpg frontends from any directory, not just their install directory, - * and then invoke other executables, like astgen, php-parser et al. - * */ + /** Finds the absolute path to the executable directory (e.g. `/path/to/javasrc2cpg/bin`). Based on the package path + * of a loaded classfile based on some (potentially flakey?) filename heuristics. Context: we want to be able to + * invoke the x2cpg frontends from any directory, not just their install directory, and then invoke other + * executables, like astgen, php-parser et al. + */ def executableDir(packagePath: String): Path = { val dir = packagePath val indexOfLib = dir.lastIndexOf("lib")