Search
 
SCRIPT & CODE EXAMPLE
 

PHP

install mess detector

# install PHPMD - PHP Mess Detector
composer require --dev phpmd/phpmd
  
# generate phpmd.html with standard ruleset
vendor/bin/phpmd app html cleancode,codesize,controversial,design,naming,unusedcode > phpmd.html
  
# use this phpmd-ruleset.xml https://gist.github.com/slayerfat/2b3cc4faf94d2863b505 (for laravel) to avoid facades problem
vendor/bin/phpmd app html ./phpmd-ruleset.xml > phpmd.html
  
# Removal
composer remove --dev phpmd/phpmd
rm phpmd-ruleset.xml
rm phpmd.html
Comment

PREVIOUS NEXT
Code Example
Php :: Auth log out laravel 
Php :: php find text in variable 
Php :: laravel migrate if not exists 
Php :: Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php 
Php :: error repoerting in php 
Php :: laravel run a specific migration 
Php :: explode in php 
Php :: Session store not set on request. 
Php :: php get query string 
Php :: php __construct 
Php :: Could not find package laravel/ with stability stable. 
Php :: Array and string offset access syntax with curly braces is deprecated in tcpdf.php 
Php :: laravel make seeder 
Php :: php select from database into array 
Php :: search on taxonomy wordpress query 
Php :: a facade root has not been set phpunit 
Php :: add user meta 
Php :: How do I make a redirect in PHP? 
Php :: php number to color 
Php :: php array all keys empty 
Php :: php array longest string 
Php :: convert xml file to array php 
Php :: upload pdf file in laravel 
Php :: count with left join in laravel 
Php :: htaccess php version 
Php :: phpoffice create excel and download 
Php :: laravel blade get array count in Blade 
Php :: How to format a json response in php 
Php :: set session after login with laravel 
Php :: startsWith() and endsWith() functions in PHP 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =