PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseTypeStandard.xml

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseTypeStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseTypeStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 997 bytes
 

Contents

Class file image Download
<documentation title="Lowercase PHP Types"> <standard> <![CDATA[ All PHP types used for parameter type and return type declarations should be lowercase. ]]> </standard> <code_comparison> <code title="Valid: Lowercase type declarations used."> <![CDATA[ function myFunction(int $foo) : string { } ]]> </code> <code title="Invalid: Non-lowercase type declarations used."> <![CDATA[ function myFunction(<em>Int</em> $foo) : <em>STRING</em> { } ]]> </code> </code_comparison> <standard> <![CDATA[ All PHP types used for type casting should be lowercase. ]]> </standard> <code_comparison> <code title="Valid: Lowercase type used."> <![CDATA[ $foo = (bool) $isValid; ]]> </code> <code title="Invalid: Non-lowercase type used."> <![CDATA[ $foo = <em>(BOOL)</em> $isValid; ]]> </code> </code_comparison> </documentation>