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

[blogger] Cleanups: #656

Merged
merged 2 commits into from
Jul 21, 2018
Merged

Conversation

Quix0r
Copy link
Contributor

@Quix0r Quix0r commented Jul 21, 2018

  • used use Friendica\App;
  • added type-hints for App and array where applyable
  • removed extra space
  • added other spaces

- used `use Friendica\App;`
- added type-hints for `App` and `array` where applyable
- removed extra space
- added other spaces
}


function blogger_jot_nets(&$a, &$b)
{
function blogger_jot_nets(App $a, &$b) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

New line please.

{
if (x($_POST, 'blogger-submit')) {
PConfig::set(local_user(), 'blogger', 'post', intval($_POST['blogger']));
if (isset($_POST['blogger-submit'])) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The exact equivalent to x($_POST, 'blogger-submit') is !empty($_POST['blogger-submit']).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Aren't you supposed to sleep? 😅

- ops, curly brace in new line in function/method declaration
- proper way for x() replacement
@MrPetovan MrPetovan merged commit c776406 into friendica:develop Jul 21, 2018
@Quix0r Quix0r deleted the blogger/import-curly-spaces branch July 21, 2018 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants