Skip to content

PHP unify code style #515

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

Merged
merged 6 commits into from
Oct 27, 2018
Merged

PHP unify code style #515

merged 6 commits into from
Oct 27, 2018

Conversation

PudottaPommin
Copy link
Member

This PR unifies PHP implementations, which were pushed before defining code style.
Functionality is same, except one less output in TreeTraversal, which was JSON of the tree.

@PudottaPommin PudottaPommin added Implementation Edit This provides an edit to an algorithm implementation. (Code and maybe md files are edited.) Hacktoberfest The label for all Hacktoberfest related things! labels Oct 15, 2018
@Butt4cak3 Butt4cak3 self-assigned this Oct 18, 2018

echo 'DFS Queue:' . PHP_EOL;
TreeTraversal::dfs_queue($node);
TreeTraversal::DFSQueue($node);

// If you want try binary order non-binary tree
// Comment generation of new tree bellow
// If you do that, exception will be thrown
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rephrase this and fix some of the spelling/grammar mistakes to make it more clear what you're trying to say here.

// If you want to try to run binary order on a non-binary tree,
// comment out the generation of the new tree below.
// If you do that, an exception will be thrown.

changed comment
@Butt4cak3 Butt4cak3 merged commit 329409c into algorithm-archivists:master Oct 27, 2018
@PudottaPommin PudottaPommin deleted the php_unify_code_style branch October 27, 2018 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest The label for all Hacktoberfest related things! Implementation Edit This provides an edit to an algorithm implementation. (Code and maybe md files are edited.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants