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

Strict rules for cs fixer #75

Closed

Conversation

chachanagov
Copy link
Contributor

No description provided.

string $content,
string $expectedResponsePrefix,
): void {
if ($content !== '') {
\socket_write($socket, $content);
// print green "hello" string in raw console markup
$output->write(
'> ' . \str_replace(["\r", "\n"], ["\e[32m\\r\e[0m", "\e[32m\\n\e[0m"], $content),
Copy link
Member

Choose a reason for hiding this comment

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

The previous linter added spaces here. Now this removes ones :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Per 2 rule adds spaces, PhpCsFixer rule removes, which is better?

Comment on lines +16 to +18
/**
* @var int<1, 65535>
*/
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to allow inline type hint for class properties?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only hint that duplicate class properties are removed.

Comment on lines 76 to +78
* @param positive-int $possibleBytes Maximum number of bytes to read. If the read fragment is longer than this
* an exception will be thrown. Default is 10MB
* an exception will be thrown. Default is 10MB
*
Copy link
Member

Choose a reason for hiding this comment

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

We align comments with the word @param

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This rule cannot be changed, only left or vertical

@roxblnfk
Copy link
Member

Thank you. You helped compile the ExtendedPERSet rules list, which we can now use everywhere through the wayofdev/cs-fixer-config repository (#88)

@roxblnfk roxblnfk closed this May 23, 2024
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