GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Wolg/cakephp-codesniffs: CakePHP standard for PHP CodeSniffer

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
Sniffs
Sniffs
 
 
tests
tests
 
 
README.md
README.md
 
 
pre-commit
pre-commit
 
 
ruleset.xml
ruleset.xml
 
 

Repository files navigation

PHP CodeSniffer for CakePHP

This repository contains the CakePHP standard for use with the pear package PHP CodeSniffer

Installation

Obviously, you need PHP CodeSniffer for this repository to have any meaning.

Locate the CodeSniffer/Standards folder in your CodeSniffer install, and install this repository with the name "Cake" e.g.:

cd /usr/share/pear/PHP/CodeSniffer/Standards/
git clone git://github.com/Wolg/cakephp-codesniffs.git Cake

If you work mainly with CakePHP, or your work simply follows the same coding standards, you may wish to configure PHP Code Sniffer to use this standard by default:

phpcs --config-set default_standard Cake

Use as a git pre-commit hook

To run phpcs checks each time you commit a file, you can use the pre-commit hook provided in this repo. For example

cd /var/www/apps/myapp/.git/hooks/
cp /usr/share/pear/PHP/CodeSniffer/Standards/Cake/pre-commit .
chmod +x pre-commit

References and Credits

  • http://lifeisbetter.in/blog/2010/08/09/yet-another-version-of-php-codesniffer-for-cakephp
  • https://github.com/venkatrs/Cake_PHP_CodeSniffer
  • http://www.sanisoft.com/downloads/cakephp_sniffs
  • https://github.com/AD7six/cakephp-codesniffs

About

CakePHP standard for PHP CodeSniffer

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.