Skip to content

Conversation

@mega6382
Copy link

No description provided.

{
$this->choice = $choice;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra newline

{
$this->reply = $reply;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra newline

{
return (new ShouldIHandler())->should($choice1, $choice2);
}
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Add newline and remove docblock


final class Plugin
{
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove docblock

namespace AsyncBot\Plugin\ShouldI;
use AsyncBot\Plugin\ShouldI\ValueObject\Result\ShouldI;
use AsyncBot\Plugin\ShouldI\ValueObject\Result\Is;

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove these two newlines

return 'banana';
}, $text);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove newline


return new ShouldI($answer);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra newline

private function translatePronouns(string $text): string
{
static $replacePairs = [
'iyou' => ['i', 'you'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Align all ze =>

{
public function should(string $choice1, string $choice2): ShouldI
{
$yes = $choice1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Align equals signs

{
return self::RESPONSES[$answer][random_int(0, (count(self::RESPONSES[$answer]) - 1))];
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove newline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants