PHPMD – PHP Mess Detector Git tutorial composer global require "phpmd/phpmd=@stable" ./vendor/bin/phpmd "./vendor/bin/phpmd" "E:/projects/PMUtilities/workflowChart/krithikumarWorkFlowChart/dynamic4Doxygen" html “./vendor/bin/phpmd” ./ html unusedcode –reportfile phpmd.html –exclude vendor,doxyComments if installation is global phpmd classWorkFlow.php html unusedcode –reportfile phpmd.html –exclude vendor,doxyComments phpmd ./ html unusedcode –reportfile phpmd.html –exclude vendor,doxyComments
Month: January 2022
PHP_CodeSniffer for PSR 12 full usage composer global require "squizlabs/php_codesniffer=*" phpcs /path/to/code/myfile.php “./vendor/bin/phpcs” classWorkFlow.php –report=summary –report-summary=phpcs.txt “./vendor/bin/phpcs” classWorkFlow.php –report=full –report-full=phpcsPSR12.txt –standard=PSR12 “./vendor/bin/phpcbf” classWorkFlow.php –report=diff -vv –standard=PSR12 “./vendor/bin/phpcs” classWorkFlow.php –report=full –report-full=phpcs.txt if installation is global phpcs classWorkFlow.php –report=full –report-full=phpcs.txt –standard=PSR12 ### To fix automatically use ‘phpcbf’ phpcbf classWorkFlow.php –report=diff -vv –standard=PSR12 $ phpcs /path/to/code-directory $ phpcs…
To backup Database once in a week Minute Hour Day Month Weekday Command 0 0 * * Sat /usr/bin/mysqldump -u<usernam> -p<password> <dbname> | bzip2 -9 -c ><full path to save>/<output file name>$(date +"\%d_\%m_\%Y-\%H:\%M:\%S").sql.bz2 To delete files older than 2 weeks 26 11 * * 6 find <full path to save>/<output file name>*.sql.bz2 -mtime +8 -exec…
For page like Index.php .
Mainly 3 types of commenting needs to be done Main page Module pages(Non class) eg: index.php Class pages Sample Project Comment Tips Regexp for searching functions //line containing 'function(' not starting with '}/' ^(?!(.*)\}\/)(.*)function\s+(.+)() Little more advanced version ^(?!(.*)\}\/)(.*)function\s+([^\(\r\n\=]+)\( OR if there is something like $function->, to avoid it ^(?!(.*)\}\/)(.*)function([^->=,'",\r,\n]+)\s+([^\r\n]+) For ES6 JS Classes Make…
Regexp for searching functions //line containing 'function(' not starting with '}/' ^(?!(.*)\}\/)(.*)function(.+)() better one ^(?!(.*)\}?\/\*?)([^$\n]*)function(.+)\( // note: avoid using comments //or /* after 'function' Adding Line numbers ALT + C Column Editor: Column Editor (Alt + C) provides a way to insert line numbers. Options exist to choose the starting number, interval, and how often…
Remove Attachment : Open, save, or delete an attachment To open the Attachments panel, choose View > Show/Hide > Navigation Panes > Attachments. In the Attachments panel, select the attachment. Click the appropriate icon to open the attachment in its native application, save the attachment, or delete it: DIGITALLY SIGN TOOLS >> Certificates >> Digitally…
Form for incorporation of LLP (FiLLiP) The form used for incorporation is FiLLiP(Form for incorporation of Limited Liability Partnership) which shall be filed with the Registrar who has jurisdiction over the state in which the registered office of the LLP is situated. The form will be an integrated form. Fees shall be paid. This form…