This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class Base | |
{ | |
abstract public static function load(); | |
} | |
class Child | |
{ | |
public static function load() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[custom@custom.com]$ phpcs -p -n --standard=Custom --report-width=120 ./application | |
phpcs -p -n --standard=CUSTOM --report-width=120 ./application | |
Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser | |
not found' in /var/php/CodeSniffStandard/Custom/Sniffs/Commenting/ClassCommentSniff.php on line 18 | |
PHP_CodeSniffer_Exception: Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found in | |
/var/php/CodeSniffStandard/Custom/Sniffs/Commenting/ClassCommentSniff.php on line 18 | |
Call Stack: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (class_exists('PHP_CodeSniffer_CommentParser_ClassCommentParser', true) === false) { | |
$error = 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found'; | |
throw new PHP_CodeSniffer_Exception($error); | |
} | |
if (class_exists('Custom_Sniffs_Commenting_FileCommentSniff', true) === false) { | |
$error = 'Class Custom_Sniffs_Commenting_FileCommentSniff not found'; | |
throw new PHP_CodeSniffer_Exception($error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset name="MyStandard"> | |
<rule ref="PEAR"> | |
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/> | |
<exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/> | |
<exclude name="PEAR.WhiteSpace.ScopeIndent"/> | |
</rule> | |
<rule ref="PSR1"> | |
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" /> | |
</rule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(":core") { | |
apply plugin: "java" | |
dependencies { | |
compile "com.badlogicgames.gdx:gdx:$gdxVersion" | |
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" | |
compile "junit:junit:4.11+" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <list> | |
typedef std::list<int> intContianer; | |
int main() | |
{ | |
intContainer container; | |
container.push_back(1); | |
container.push_back(2); | |
container.push_back(3); |