Skip to content

NFC-158 Deprecations removal and using prettier#54

Open
SanderKondratjevNortal wants to merge 2 commits intoweb-eid-mobilefrom
NFC-158
Open

NFC-158 Deprecations removal and using prettier#54
SanderKondratjevNortal wants to merge 2 commits intoweb-eid-mobilefrom
NFC-158

Conversation

@SanderKondratjevNortal
Copy link
Copy Markdown

Signed-off-by: Sander Kondratjev Sander.Kondratjev@Nortal.com

Signed-off-by: Sander Kondratjev <sander.kondratjev@nortal.com>
Signed-off-by: Sander Kondratjev <sander.kondratjev@nortal.com>
Comment thread composer.json
"psr/log": "^3.0.0"
},
"scripts": {
"fix-php": ["prettier src/**/* --write", "prettier examples/src/* --write"],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Prettier remained here. Either remove or replace with phpcbf:

Suggested change
"fix-php": ["./vendor/bin/phpcbf"],

Comment thread composer.json
@@ -1 +1 @@
{
Copy link
Copy Markdown
Member

@mrts mrts Apr 27, 2026

Choose a reason for hiding this comment

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

To assure format stays correct in the future, let's add ./vendor/bin/phpcs to .github/workflows/php.yml.

Comment thread phpcs.xml
<arg name="colors"/>
<arg value="p"/>

<rule ref="PSR12">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's limit the rules to the specific files:

  <rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
      <exclude-pattern>src/util/CollectionsUtil.php</exclude-pattern>
  </rule>

  <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
      <exclude-pattern>example/src/*</exclude-pattern>
  </rule>

  <rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
      <exclude-pattern>tests/*</exclude-pattern>
  </rule>

  <rule ref="Generic.Files.LineLength.TooLong">
      <exclude-pattern>tests/*</exclude-pattern>
  </rule>

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