Skip to content

Instantly share code, notes, and snippets.

@shahburhan
shahburhan / php-cs-fixer-config.php
Created February 20, 2022 16:17
Config values for php-cs-fixer
<?php
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_unsets' => true,
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'multiline_whitespace_before_semicolons' => true,
@shahburhan
shahburhan / countries-array.php
Last active January 29, 2016 19:14
Array of countries with country code as identifier or key.
<?php
$country['AF'] = "Afghanistan";
$country['AX'] = "Åland Islands";
$country['AL'] = "Albania";
$country['DZ'] = "Algeria";
$country['AS'] = "American Samoa";
$country['AD'] = "Andorra";
$country['AO'] = "Angola";
$country['AI'] = "Anguilla";