Skip to content

Commit

Permalink
3.0.1
Browse files Browse the repository at this point in the history
Update
squizlabs/php_codesniffer
  • Loading branch information
mr-chetan committed Jun 12, 2023
1 parent f1610ef commit 927761e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ This repository contains rulesets for **PHP CodeSniffer** and **PHP Mess Detecto

## Installation
Install this repository globally using following composer commands:
``` sh
composer global require squizlabs/php_codesniffer:dev-master
```

``` sh
composer global require mrchetan/php_standard
Expand All @@ -14,7 +11,7 @@ composer global require mrchetan/php_standard
Always use the latest version of the repository.

## Setup
The project will be installed in global composer folder on your PC.
The project will be installed in global composer folder on your PC.
* **Mac**: `.composer/vendor` folder in your home directory
* **Windows**: `AppData/Roaming/Composer/vendor` folder in your user directory
* **Ubuntu**: `.config/composer/vendor` folder in your home directory
Expand Down Expand Up @@ -44,11 +41,11 @@ For Windows
"phpSniffer.standard": "%userprofile%/AppData/Roaming/Composer/vendor/mrchetan/php_standard/ruleset.xml",


To check
To check

phpcs --standard=<PATH_OF_RULESET> <SPACE> <PATH_OF_FILEs_CHECK>
For Example

For Example

phpcs --standard=~/.composer/vendor/mrchetan/php_standard/ruleset.xml index.php

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "mrchetan/php_standard",
"description": "PHP coding standard to be followed",
"type": "php-code-sniffer",
"version": "3.0.0",
"version": "3.0.1",
"require": {
"squizlabs/php_codesniffer": "dev-master"
"squizlabs/php_codesniffer": "^3.7.2"
},
"license": "MIT",
"authors": [
Expand Down

0 comments on commit 927761e

Please sign in to comment.