Find MAMP's installed PHP version(s) you want to use the PHP CLI for:
$ ls -l /Applications/MAMP/bin/php/
- First, open your local user's
.bash_profilein edit mode, in order to add aliases for accessing the PHP CLI locally
$ pico ~/.bash_profile
| <?php | |
| public function uploadFileFromBlobString($base64string = '', $file_name = '', $folder = '') | |
| { | |
| $file_path = ""; | |
| $result = 0; | |
| // Convert blob (base64 string) back to PDF | |
| if (!empty($base64string)) { |
Find MAMP's installed PHP version(s) you want to use the PHP CLI for:
$ ls -l /Applications/MAMP/bin/php/
.bash_profile in edit mode, in order to add aliases for accessing the PHP CLI locally$ pico ~/.bash_profile
| Rule | Namespace | Description |
|---|---|---|
| Arrays.ArrayBracketSpacing | /Squiz.Arrays.ArrayBracketSpacing | Ensure that there are no spaces around square brackets. |
| Arrays.ArrayDeclaration | /Squiz.Arrays.ArrayDeclaration | Ensures that arrays conform to the array coding standard. |
| Arrays.DisallowLongArraySyntax | /Generic.Arrays.DisallowLongArraySyntax | Bans the use of the PHP long array syntax. |
| Arrays.DisallowShortArraySyntax | /Generic.Arrays.DisallowShortArraySyntax | Bans the use of the PHP short array syntax. |
| CSS.BrowserSpecificStyles | /MySource.CSS.BrowserSpecificStyles | Ensure that browser-specific styles are not used. |
| CSS.ClassDefinitionClosingBraceSpace | /Squiz.CSS.ClassDefinitionClosingBraceSpace | Ensure there is a single blank line after the closing brace of a class definition. |
| CSS.ClassDefinitionNameSpacing | /Squiz.CSS.ClassDefinitionNameSpacing | Ensure there are no blank lines between the names of classes/IDs. |
| CSS.ClassDefinitionOpeningBrace |