Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Coding Standard Laravel Package

lmc/coding-standard

Deprecated PHP coding standard for Alma Career Czechia (formerly LMC). Based on PSR-12 and partially PER 2.0, delivered via EasyCodingStandard with rules for PHP-CS-Fixer and PHP_CodeSniffer to enforce readable, consistent code and catch common mistakes.

View on GitHub
Deep Wiki
Context7
4.1.2
4.1.1
  • Disable incorrectly behaving PhpdocAlignFixer.
4.1.0
  • Add most of the available checks for PER-2 coding style.
  • Add many new checks from php-cs-fixer up to version 3.56.
  • Add available php-cs-fixer rules for PHP 8.1 and 8.2 (which are automatically run only on compatible PHP versions).
4.0.0
  • BC: Update to symplify/easy-coding-standard ^12.1 and change configuration format in ecs.php. See UPGRADE-4.0.md for step-by-step upgrade howto.
  • BC: Move coding standard declarations from ecs-7.4.php, ecs-8.0.php and ecs-8.1.php to ecs.php and remove the former files.
  • BC: Change base coding standard from PSR-2 to PSR-12.
  • BC: Change deprecated php-cs-fixer sniffs to new ones.
  • Rebrand to Alma Career in documentation and meta information.
  • Require PHP ^8.0.
  • Update to slevomat/coding-standard ^8.0.
  • Update to squizlabs/php_codesniffer ^3.9.
  • Refactor: Remove nette/utils dependency.
  • Add tests to ensure the code style defined by this library is being properly checked and fixed.
3.3.1
  • Lock symplify/easy-coding-standard to <10.2.4 because of backward incompatibilities introduced in its bugfix releases.
3.3.0
  • Update to symplify/easy-coding-standard ^10.0
  • Allow slevomat/coding-standard ^7
  • Add new ecs-8.0.php coding standard declaration file for PHP 8.0+.
  • Add new ecs-8.1.php coding standard declaration file for PHP 8.1+.
3.2.1
  • Fix SpecifyArgSeparatorFixer type error when adding empty $numeric_prefix parameter in PHP 7.4+.
3.2.0
  • Fix SpecifyArgSeparatorFixer not compatible with php-cs-fixer 3.0.
  • Add new ecs-7.4.php coding standard declaration file for PHP 7.4+.
3.1.0
  • Use php-cs-fixer 3.0.
  • Use new prefixed version of symplify/easy-coding-standard.
3.0.1
  • PhpUnitExpectationFixer is now used only on PHP 8.0+. See symplify#3130.
3.0.0
  • [BC break] Change YAML config to PHP. See UPGRADE-3.0.md for step-by-step upgrade howto.
  • Replace Symplify\CodingStandard\Sniffs\Naming\[AbstractClassNameSniff, ClassNameSuffixByParentSniff, InterfaceNameSniff and TraitNameSniff] with equivalent versions backported to this repository.
  • Drop PHP 7.2 support.
  • Upgrade to easy-coding-standard 9.
  • Add new fixers from PHP-CS-Fixer 2.17:
    • ArrayPushFixer - Converts simple usages of array_push($x, $y); to $x[] = $y;.
    • SwitchContinueToBreakFixer - Switch case must not be ended with continue but with break.
    • LambdaNotUsedImportFixer - Lambda must not import variables it doesn't use.
    • NoUselessSprintfFixer - There must be no sprintf calls with only the first argument.
    • SingleSpaceAfterConstructFixer - Ensures a single space after language constructs.
    • CleanNamespaceFixer - Namespace must not contain spacing, comments or PHPDoc.
    • TernaryToElvisOperatorFixer - Use the Elvis operator ?: where possible.
    • PhpdocOrderByValueFixer Order phpdoc tags by value (order by default contents of 'covers', 'group' and 'throws').
    • HeredocIndentationFixer - Heredoc/nowdoc content must be properly indented.
  • Add new PHP_CodeSniffer sniffs:
    • GitMergeConflictSniff - Detects merge conflict artifacts left in files.
2.1.0
  • Add various dangerous function calls to list of forbidden functions.
2.0.4
  • Fix an improper fix of PSR-2 checks made in 2.0.3 to really make them being used again.
2.0.3
  • Fix PSR-2 checks to be used again (they were unintentionally not loaded since coding-standard version 2.0.0).
  • Lock dependency of symplify/coding-standard to <7.2.20 to avoid deprecation errors.
2.0.2
  • Increase required version of symplify/easy-coding-standard to ^7.2.3.
2.0.1
  • Temporarily disable ArrayDeclarationSniff.ValueNoNewline because of bug in PHP_CodeSniffer 3.5.5.
2.0.0
  • BC: change the way the standard is imported to your easy-coding-standard.yaml (change %vendor_dir% placeholder directly to name of the vendor directory like vendor). See example in README.
  • Drop PHP 7.1 support.
  • Require EasyCodingStandard 7+.
  • VisibilityRequiredFixer now check visibility is declared also on class constants.
  • Add Symplify\ParamReturnAndVarTagMalformsFixer - the [@param](https://github.com/param), [@return](https://github.com/return) and [@var](https://github.com/var) annotations should keep standard format.
  • Add new fixers from PHP-CS-Fixer 2.15 and 2.16:
    • NativeFunctionTypeDeclarationCasingFixer - native type hints for functions should use the correct case.
    • SingleTraitInsertPerStatementFixer - each trait use must be done as single statement.
    • PhpUnitDedicateAssertInternalTypeFixer - PHPUnit assertions like assertIsArray() should be used over assertInternalType() (PHPUnit 7.5+ required).
    • PhpUnitMockShortWillReturnFixer - Use of eg. ->will($this->returnValue(..)) must be replaced by its shorter equivalent such as ->willReturn(...).
  • NoSuperfluousPhpdocTagsFixer now also removes superfluous [@inheritdoc](https://github.com/inheritdoc) tags.
1.3.0
  • Require EasyCodingStandard 5+.
  • Add new fixers from PHP-CS-Fixer 2.14 and 2.13:
    • CombineNestedDirnameFixer - replace multiple nested calls of dirname by only one call with second $level parameter.
    • FopenFlagOrderFixer - order the flags in fopen calls, b and t must be last.
    • FopenFlagsFixer - the flags in fopen calls must contain b and must omit t.
    • ImplodeCallFixer - function implode must be called with 2 arguments in the documented order.
    • PhpdocVarAnnotationCorrectOrderFixer - [@var](https://github.com/var) and [@type](https://github.com/type) annotations must have type and name in the correct order
  • Keep [@mixed](https://github.com/mixed) annotations preserved when explicitly declared.
1.2.0
  • Replace deprecated Symplify\CodingStandard\Fixer\Naming\MagicMethodsNamingFixer with PhpCsFixer\Fixer\Casing\MagicMethodCasingFixer.
  • Add new fixers:
    • NoSuperfluousPhpdocTagsFixer to remove unnecessary [@return](https://github.com/return) and [@param](https://github.com/param) PHPDocs.
    • PhpUnitTestCaseStaticMethodCallsFixer to unify how assertion methods in PHPUnit tests are called.
    • SetTypeToCastFixer to ensure casting is used instead of settype() .
1.1.2
  • Change deprecated implementation of Symplify\CodingStandard\Fixer\Naming\ClassNameSuffixByParentFixer to Symplify\CodingStandard\Sniffs\Naming\ClassNameSuffixByParentSniff
1.1.1
  • Fix Generic.Commenting.DocComment.SpacingBeforeTags being reported on one-line phpDoc annotations (when PHP_Codesniffer 3.3.0+ is used).
1.1.0
  • Add SpecifyArgSeparatorFixer to make sure arg_separator is always defined when using http_build_query() function.
  • Add PHPUnit fixers:
    • PhpUnitMockFixer: Ensure dedicated helper methods createMock() and createPartialMock() are used where possible instead of ->getMock().
    • PhpUnitNoExpectationAnnotationFixer: Use setExpectedException() instead of [@expectedException](https://github.com/expectedException) annotation.
    • PhpUnitSetUpTearDownVisibilityFixer: Visibility of setUp() and tearDown() method should be kept protected as defined in PHPUnit TestCase.
  • Do not check for EventSubscriber class suffixes via ClassNameSuffixByParentFixer.
1.0.1
  • Replace deprecated ExceptionNameFixer with more generic ClassNameSuffixByParentFixer.
1.0.0
  • Initial version
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport