-
Notifications
You must be signed in to change notification settings - Fork 32
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
feature: legacy TR-1499 html5+figure/figcaption support #313
feature: legacy TR-1499 html5+figure/figcaption support #313
Conversation
test/qtismtest/data/content/xhtml/html5/Html5LayoutElementTest.php
Outdated
Show resolved
Hide resolved
test/qtismtest/data/storage/xml/marshalling/Html5LayoutMarshallerTest.php
Outdated
Show resolved
Hide resolved
return static::asArray()[$name] ?? false; | ||
} | ||
|
||
public static function getNameByConstant($constant) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add return typehint here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no because we do not have such type string|false
test/qtismtest/data/storage/xml/marshalling/Html5LayoutMarshallerTest.php
Outdated
Show resolved
Hide resolved
test/qtismtest/data/storage/xml/marshalling/Html5LayoutMarshallerTest.php
Outdated
Show resolved
Hide resolved
test/qtismtest/data/storage/xml/marshalling/Html5LayoutMarshallerTest.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- New code is covered by tests (if applicable)
- Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code is respecting code style rules
- New code is respecting best practices
- New code is not subject to concurrency issues (if applicable)
- Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
- Changelog is updated according to changes (if applicable)
- Documentation is updated according to changes (if applicable)
protected $content; | ||
|
||
/** | ||
* @param string|null $title A title in the sense of Html title attribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not to require but params could be removed because described in a function head
/** | ||
* @param DOMElement $element | ||
* @param QtiComponentCollection $children | ||
* @return mixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return value is incorrect
/** | ||
* Checks that the given value is null or one of the enumeration constants. | ||
* | ||
* @param int|string|null $value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required; params could be removed because described in function head
TR-1499
Marshalling/unmarshalling HTML5 figure&figcaption elements
Related PRs:
https://github.com/oat-sa/extension-tao-deliver-connect/pull/125
oat-sa/extension-tao-itemqti#2138