Skip to content

Commit

Permalink
[Maintenance] Rephrase arkitect messages
Browse files Browse the repository at this point in the history
  • Loading branch information
NoResponseMate committed Nov 14, 2023
1 parent 8cf9892 commit 38fdf5e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions phparkitect.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Rule::allClasses()
->that(new Extend(ObjectBehavior::class))
->should(new HaveNameMatching('*Spec'))
->because('This is a convention from PHPSpec')
->because('Specifications should follow PHPSpec naming convention')
,
Rule::allClasses()
->that(new Extend(ObjectBehavior::class))
Expand All @@ -48,13 +48,13 @@
Rule::allClasses()
->that(new ResideInOneOfTheseNamespaces('Sylius\Component'))
->should(new NotDependsOnTheseNamespaces('Sylius\Bundle'))
->because('Sylius components should be stand-alone')
->because('Components should not depend on bundles')
,
Rule::allClasses()
->except('Sylius\Component\Core')
->that(new ResideInOneOfTheseNamespaces('Sylius\Component'))
->should(new NotDependsOnTheseNamespaces('Sylius\Component\Core'))
->because('Core should not be used in any other component')
->because('Stand-alone components should not depend on Core')
,
Rule::allClasses()
->except(
Expand All @@ -66,7 +66,7 @@
)
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle'))
->should(new NotDependsOnTheseNamespaces('Sylius\Component\Core'))
->because('Core should not be used in stand-alone bundles')
->because('Stand-alone bundles should not depend on Core')
,
Rule::allClasses()
->except(
Expand All @@ -77,31 +77,31 @@
)
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle'))
->should(new NotDependsOnTheseNamespaces('Sylius\Bundle\CoreBundle'))
->because('CoreBundle should not be used in stand-alone bundles')
->because('Stand-alone bundles should not depend on CoreBundle')
,
Rule::allClasses()
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle\ShopBundle'))
->should(new NotDependsOnTheseNamespaces(
'Sylius\Bundle\AdminBundle',
'Sylius\Bundle\ApiBundle',
))
->because('Shop should not depend on Admin and API')
->because('Shop should not depend on Admin and Api')
,
Rule::allClasses()
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle\AdminBundle'))
->should(new NotDependsOnTheseNamespaces(
'Sylius\Bundle\ApiBundle',
'Sylius\Bundle\ShopBundle',
))
->because('Admin should not depend on Shop and API')
->because('Admin should not depend on Shop and Api')
,
Rule::allClasses()
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle\ApiBundle'))
->should(new NotDependsOnTheseNamespaces(
'Sylius\Bundle\AdminBundle',
'Sylius\Bundle\ShopBundle',
))
->because('API should not depend on Admin and Shop')
->because('Api should not depend on Admin and Shop')
,
);
};

0 comments on commit 38fdf5e

Please sign in to comment.