Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Person plugin #10

Closed
wants to merge 3 commits into from
Closed

Conversation

shazmasiddiqui
Copy link
Collaborator

Adds Person as a schema type

@shazmasiddiqui shazmasiddiqui changed the base branch from dev to schemaorg-plugin-trait November 7, 2022 06:26
*/
public function onSchemaPrepareData(AbstractEvent $event)
{
$context = $event->getArgument('context');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an empty line before an "if"

die($context);
return true;
}
$this->updateSchemaForm($event);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a new line before and after this line

{
$context = $event->getArgument('context');
if (!$this->isSupported($context)) {
die($context);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is debug which can be removed?


if (!$this->isSupported($context)) {
return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an empty line after the "if"


if ($form != 'Person') {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an empty line after the }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants