Skip to content

Formatting issue with mago formatter #1560

@gturpin-dev

Description

@gturpin-dev

Tempest version

dev-main

PHP version

8.4

Operating system

Windows

Description

Mago formatted me something I found weird so I wanted to push it here just in case 😄

Steps to reproduce

Original :

$providerType = BuiltInOAuthProvider::fromProviderClass($class->getName()) ?? throw new OAuthException(sprintf('No built-in OAuth2 provider found for class: "%s"', $class->getName()));

After formatting :

$providerType = BuiltInOAuthProvider::fromProviderClass($class->getName()) ??
throw new OAuthException(sprintf('No built-in OAuth2 provider found for class: "%s"', $class->getName()));

Let me know if it's just me, but I found this line return a bit weird for readability

I've used composer fmt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions