Skip to content

Instantly share code, notes, and snippets.

View khoirxz's full-sized avatar
💬
Got something to do?

Rizqi Khoirurrohman khoirxz

💬
Got something to do?
View GitHub Profile
@jacurtis
jacurtis / phpcs.xml
Created January 26, 2019 20:29
The PHP Code Sniffer configuration file I use for Laravel Applications. I had to remove PSR2 code just because it causes lots of problems with magic function in route files and models and stuff. But otherwise a good basic code sniffer config to use in Laravel projects.
<?xml version="1.0"?>
<ruleset name="Laravel Standards">
<description>Laravel Coding Standards</description>
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
@jacurtis
jacurtis / Reserved-Subdomains.json
Last active March 3, 2019 04:03
This is a JSON (or compatible with most language arrays) array that contains a list of subdomains that you want to reserve in multi-tentant applications.
[
"a",
"aa",
"about",
"abuse",
"access",
"account",
"accounts",
"ad",
"admin",