diff --git a/zray.php b/zray.php index 0b600eb..19bb56b 100644 --- a/zray.php +++ b/zray.php @@ -29,15 +29,15 @@ public function findFileWithExtensionExit($context, &$storage) public function registerExit($context, &$storage) { - $composerDir = dirname($context['calledFromFile']); + $composerDir = dirname($context['calledFromFile']); $jsonFile = $composerDir.'/installed.json'; - if (file_exists($jsonFile) || !is_readable($jsonFile)) { + if (!file_exists($jsonFile) || !is_readable($jsonFile)) { return false; } - $json = file_get_contents($jsonFile); - $data = json_decode($json); + $json = file_get_contents($jsonFile); + $data = json_decode($json); foreach ($data as $package) { $source = (isset($package->source) && isset($package->source->url))