Skip to content

Commit

Permalink
Correction on demo to show source code of class (#389)
Browse files Browse the repository at this point in the history
* Correction on demo to show source code of class
  • Loading branch information
Airmanbzh authored and lisachenko committed Jan 27, 2018
1 parent 8d52f89 commit d263974
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion demos/index.php
Expand Up @@ -260,7 +260,16 @@
<div class="panel-body well panel-collapse collapse out" id="collapseTwo">
<?php
$refObject = new ReflectionObject($example);
Highlighter::highlight(MagicConstantTransformer::resolveFileName($refObject->getFileName()));

/**
* Get filename without proxy additions
*/
$path = $refObject->getFileName();
$basename = basename($path);
$explodedPath = explode($basename, $path);
$path = array_shift($explodedPath) . $basename;

Highlighter::highlight(MagicConstantTransformer::resolveFileName($path));
?>
</div>
</div>
Expand Down

0 comments on commit d263974

Please sign in to comment.