Skip to content

Commit

Permalink
Merge pull request #6 from andreasfernandez/patch-1
Browse files Browse the repository at this point in the history
Fix exit condition and CGL issue
  • Loading branch information
amitdar committed Jul 7, 2015
2 parents 02f2f98 + 0990743 commit afd3748
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zray.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit afd3748

Please sign in to comment.