We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
File: phpOMS/Utils/Parser/markdown/Markdown.php
phpOMS/Utils/Parser/markdown/Markdown.php
See this function:
protected function elementApplyRecursiveDepthFirst(string|\Closure $closure, array $element) : array { if (isset($element['elements'])) { foreach ($element['elements'] as &$e) { $e = $this->elementApplyRecursiveDepthFirst($closure, $e); } } elseif (isset($element['element'])) { // @bug is this loop even correct? See function `elementApplyRecursive()` where we don't loop foreach ($element['element'] as &$e) { $e = $this->elementApplyRecursiveDepthFirst($closure, $e); } } return \is_string($closure) ? $this->{$closure}($element) : $closure($element); }
Compare with this function:
protected function elementApplyRecursive(string|\Closure $closure, array $element) : array { $element = \is_string($closure) ? $this->{$closure}($element) : $closure($element); if (isset($element['elements'])) { foreach ($element['elements'] as &$e) { $e = $this->elementApplyRecursive($closure, $e); } } elseif (isset($element['element'])) { $element['element'] = $this->elementApplyRecursive($closure, $element['element']); } return $element; }
The text was updated successfully, but these errors were encountered:
Second function got removed.
Sorry, something went wrong.
No branches or pull requests
File:
phpOMS/Utils/Parser/markdown/Markdown.php
See this function:
Compare with this function:
The text was updated successfully, but these errors were encountered: