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

An enhanced PR of PR#3 #6

Merged
merged 1 commit into from
Oct 12, 2021
Merged

An enhanced PR of PR#3 #6

merged 1 commit into from
Oct 12, 2021

Conversation

AbdullahFaqeir
Copy link
Contributor

@JhumanJ if you can please add hacktoberfest to this repo's topics.

- Fixed default body column value.
- Adopt to php8.
@JhumanJ
Copy link
Owner

JhumanJ commented Oct 10, 2021

Hey @AbdullahFaqeir, thanks a lot for your PR! I'll take a look at it now. I'm not sure what you mean by adding hacktoberfest to the repo's topic?

Copy link
Owner

@JhumanJ JhumanJ left a comment

Choose a reason for hiding this comment

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

I think it's awesome, thanks a lot for your work. Before I merge, I have 2 comments, could you please answer them? @AbdullahFaqeir

}

return false;
return match ($chartType) {
Copy link
Owner

Choose a reason for hiding this comment

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

TIL about match 🙌

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hahahah glad I helped with this ^^'

@@ -199,7 +201,7 @@ protected function ignoreCommentsAndPhpTags(array $token)

protected function cleanOutput(string $output): string
{
$output = preg_replace('/(?s)(<aside.*?<\/aside>)|Exit: Ctrl\+D/ms', '$2', $output);
$output = preg_replace('/(?s)(<aside.*?<\/aside>)|Exit: {2}Ctrl\+D/ms', '$2', $output);
Copy link
Owner

Choose a reason for hiding this comment

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

What's up this change? Not sure to understand?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As the regex is parsing counts of 2, this assures the regex will work more accurately.

$table->jsonb('body')->default('{"widgets":[]}');
if (Config::get('database.defaults') === 'pgsql') {
$table->jsonb('body')->default('{"widgets":[]}');
} else {
Copy link
Owner

Choose a reason for hiding this comment

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

Have you had a chance to try this change with an actual mysql DB ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did, I wrote a test cases locally and ran it and it passed to run the migration.

@AbdullahFaqeir
Copy link
Contributor Author

@JhumanJ you're most welcome.

I don't know if you know about the hecktoberfest happening around the world for open source contributions, aside of me actually using this package, tho I'd like to count this PR in this festival, and in order to do that, you need the add 'hacktoberfest' keyword to the repo's topics.

@JhumanJ
Copy link
Owner

JhumanJ commented Oct 10, 2021

Awesome @AbdullahFaqeir ! Code looks good. I'll give it a try on some of my applications and merge the PR by tomorrow. I believe I added the hacktoberfest keywords on the package, but it it's not what you expected, please let me know.
Thanks again!

@AbdullahFaqeir
Copy link
Contributor Author

Great @JhumanJ I'll be waiting for the merge and the new release so I can use it. And yes the keywords are perfect, once you approve and merge the PR it'll be count for me in the fest scoreboard ^^'.

@AbdullahFaqeir
Copy link
Contributor Author

@JhumanJ did you manage to review and merge this PR?

Copy link
Owner

@JhumanJ JhumanJ left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your amazing work!

@JhumanJ JhumanJ merged commit 5489d02 into JhumanJ:main Oct 12, 2021
@JhumanJ
Copy link
Owner

JhumanJ commented Oct 12, 2021

@JhumanJ did you manage to review and merge this PR?

Just did now @AbdullahFaqeir , thanks for the heads up and for your contribution 🙏

@AbdullahFaqeir
Copy link
Contributor Author

@JhumanJ did you manage to review and merge this PR?

Just did now @AbdullahFaqeir , thanks for the heads up and for your contribution 🙏

You're most welcome bro 😎♥️

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