Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
attus74 committed Jul 7, 2023
1 parent 8ee58e3 commit 54efe6c
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/ContentEntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,6 @@ class ContentEntityManager extends EntityManagerBase {
*/
public function createCode(string $name, string $label, array $options): void {

//// Test

// $rawCode = '
// $a = 5;
// $b = 6;
// ';
// $code = <<<CODE
// <?php
//
// $rawCode
//
// CODE;
//
// $factory = new ParserFactory();
// $parser = $factory->create(ParserFactory::PREFER_PHP7);
// $ast = $parser->parse($code);
// var_dump($ast);
// die();

//// Test

$this->_entityTypeName = $name;
$this->_entityTypeLabel = $label;
if (array_key_exists('name', $options)) {
Expand Down Expand Up @@ -1209,7 +1188,7 @@ public function _createThemeHook(): void
new Assign(new ArrayDimFetch(new Variable('variables'), new String_('content')),
new ArrayDimFetch(new Variable('variables'), new String_('elements')))
),
new Return_(new Variable('hooks'));
new Return_(new Variable('hooks'))
];
$ast[] = $preprocess;
}
Expand Down

0 comments on commit 54efe6c

Please sign in to comment.