Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
nathanheffley and DynamoGeek No $guarded Attributes Sniff (#8)
Added NoGuardedAttributes Sniff
Latest commit e0c8c8b May 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DealerInspireLaravelCodingStandard No $guarded Attributes Sniff (#8) May 14, 2019
tests
.gitignore
LICENSE
README.md No $guarded Attributes Sniff (#8) May 14, 2019
composer.json
phpunit.xml.dist

README.md

Laravel Coding Standard

Dealer Inspire Laravel Coding Standard provides sniffs that help developers write better Laravel code.

Installation

Install the package by requiring it with Composer.

composer require dealerinspire/laravel-coding-standard

Usage

First you need to make sure that vendor/dealerinspire/laravel-coding-standard is in your phpcs.xml file's installed_paths setting.

<config name="installed_paths" value="vendor/dealerinspire/laravel-coding-standard"/>

Then you can use any of the sniffs provided in this package.

<rule ref="DealerInspireLaravelCodingStandard.Providers.DeferredProviders"/>

Provided Sniffs

DealerInspireLaravelCodingStandard.Models.NoGuardedAttributes

Checks that no classes use the protected $guarded attribute. Useful for any projects that strictly enforce the use of explicitly whitelisting fillable attributes.

DealerInspireLaravelCodingStandard.Providers.DeferredProviders

Checks all deferred service providers to ensure that any bindings in the file are also included in the provides array.

License

MIT © Dealer Inspire

You can’t perform that action at this time.