Skip to content

Commit

Permalink
refactor actual
Browse files Browse the repository at this point in the history
  • Loading branch information
schpill committed Jun 14, 2017
1 parent 2f8142c commit 7046448
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -5034,21 +5034,21 @@ function event($name, callable $closure = null, array $args = [])
}
}

function actual($key = null, $value = null)
function actual($key = null, $value = 'octodummy')
{
$actuals = Registry::get('core.actuals', []);

if (is_null($key)) {
return $actuals;
}
if (!is_null($key)) {
if ('octodummy' == $value) {
return isAke($actuals, $key, null);
}

if (is_null($value)) {
return isAke($actuals, $key, null);
}
$actuals[$key] = $value;

$actuals[$key] = $value;
Registry::set('core.actuals', $actuals);
}

Registry::set('core.actuals', $actuals);
return $actuals;
}

function fire($event, array $args = [])
Expand Down

0 comments on commit 7046448

Please sign in to comment.