This is a list of issues or discrepencies between the wording or intention of PSR-2 itself and the CodeSniffer PSR-2 ruleset.
Add suggestions in the comments or tweet me (@philsturgeon) if you have more inconsistencies to report.
<?php | |
include __DIR__ . '/bootstrap.php'; | |
use DoctrineNaPratica\Model\User; | |
use DoctrineNaPratica\Model\Course; | |
use DoctrineNaPratica\Model\Lesson; | |
use DoctrineNaPratica\Model\Subscription; | |
// $user = new User; |
mkdir scrutinizer && cd scrutinizer | |
# Install tools | |
# - Scrutinizer and composer | |
wget http://scrutinizer-ci.com/scrutinizer.phar | |
curl -sS https://getcomposer.org/installer | php | |
# - All needed CI tools | |
php composer.phar require h4cc/phpqatools:~1.2 | |
cp -p composer.phar vendor/bin/composer |
This is a list of issues or discrepencies between the wording or intention of PSR-2 itself and the CodeSniffer PSR-2 ruleset.
Add suggestions in the comments or tweet me (@philsturgeon) if you have more inconsistencies to report.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
class Vagrant::Config::V2::Root | |
def has_key?(name) | |
@config_map.has_key?(name.to_sym) | |
end | |
end | |
Vagrant.configure("2") do |config| |
<?php | |
// PHP Self Stats | |
/* | |
* get_loaded_extensions() returns all the extension names | |
* currently loaded. | |
* | |
* Using array_intersect(), we can get only the extensions | |
* we want from those which are really available. |
NameVirtualHost 127.0.0.2:80 | |
<Directory "/var/www/html/example/"> | |
Options -Indexes +FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
<VirtualHost 127.0.0.2:80> |
# Microsoft IE OVA images from http://www.modern.ie/en-us/virtualization-tools | |
# VirtualBox for Mac: | |
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE6_WinXP.ova.zip | |
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE7_Vista.ova.zip | |
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_Win7.zip | |
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE9_Win7.zip | |
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8.ova.zip |
# Bash-Completion script for PHPUnit | |
# | |
# Created by Henrique Moody <henriquemoody@gmail.com> | |
# | |
_phpunit() | |
{ | |
COMPREPLY=() | |
local cur="${COMP_WORDS[COMP_CWORD]}" | |
local prev="${COMP_WORDS[COMP_CWORD-1]}" |
/********************************************* | |
* | |
* Importação de dados Acme-Acme | |
* | |
* Autores: Alexandre Gomes Gaigalas | |
* Atilio Serafim | |
* Criação: 01/12/2008 | |
* Alteração: 04/12/2008 | |
* | |
*********************************************/ |
<?php if (!defined('BASEPATH')) {exit('No direct script access allowed');} | |
/** | |
* | |
* Arquivo inserido em application/libraries/Twig.php | |
* | |
*/ | |
class Twig { | |
/** | |
* Referência da instância da classe CodeIgniter |