-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify phpcs ruleset to show all excluded psr-12 rules
- Loading branch information
itismadness
committed
Nov 4, 2020
1 parent
a932da7
commit 4717875
Showing
16 changed files
with
82 additions
and
33 deletions.
There are no files selected for viewing
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php | ||
use Phinx\Seed\AbstractSeed; | ||
|
||
class ClientWhitelistSeeder extends AbstractSeed { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php | ||
use Phinx\Seed\AbstractSeed; | ||
|
||
class EmailBlacklistSeeder extends AbstractSeed { | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,74 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Gazelle Standard" namespace="Gazelle\Standard"> | ||
<description>The standard for writing code in gazelle</description> | ||
<arg name="extensions" value="php" /> | ||
<arg name="colors"/> | ||
<arg value="s"/> | ||
<arg name="extensions" value="php" /> | ||
|
||
<file>.</file> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*/node_modules/*</exclude-pattern> | ||
<exclude-pattern>*/static/*</exclude-pattern> | ||
<exclude-pattern>*/.docker/*</exclude-pattern> | ||
<exclude-pattern>cache/*</exclude-pattern> | ||
<exclude-pattern>*/node_modules/*</exclude-pattern> | ||
<exclude-pattern>*/static/*</exclude-pattern> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
|
||
<!-- | ||
<rule ref="PSR2"> | ||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" /> | ||
</rule> | ||
--> | ||
<rule ref="Generic.PHP.DisallowShortOpenTag"> | ||
<exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound"/> | ||
<rule ref="PSR12"> | ||
<exclude name="Generic.ControlStructures.InlineControlStructure" /> | ||
<exclude name="Generic.Files.LineLength" /> | ||
<exclude name="Generic.Formatting.DisallowMultipleStatements" /> | ||
<exclude name="Generic.Functions.FunctionCallArgumentSpacing" /> | ||
<exclude name="Generic.NamingConventions.UpperCaseConstantName" /> | ||
<exclude name="Generic.PHP.LowerCaseConstant" /> | ||
<exclude name="Generic.PHP.LowerCaseKeyword" /> | ||
<exclude name="Generic.PHP.LowerCaseType" /> | ||
<exclude name="Generic.WhiteSpace.ScopeIndent" /> | ||
|
||
<exclude name="PEAR.Functions.ValidDefaultValue" /> | ||
<exclude name="PSR1.Classes.ClassDeclaration" /> | ||
<exclude name="PSR1.Files.SideEffects" /> | ||
<exclude name="PSR1.Methods.CamelCapsMethodName" /> | ||
<exclude name="PSR2.Classes.ClassDeclaration" /> | ||
<exclude name="PSR2.Classes.PropertyDeclaration" /> | ||
<exclude name="PSR2.ControlStructures.ElseIfDeclaration" /> | ||
<exclude name="PSR2.ControlStructures.SwitchDeclaration" /> | ||
<exclude name="PSR2.Files.ClosingTag" /> | ||
<exclude name="PSR2.Files.EndFileNewline" /> | ||
<exclude name="PSR2.Methods.FunctionCallSignature" /> | ||
<exclude name="PSR2.Methods.FunctionClosingBrace" /> | ||
<exclude name="PSR2.Methods.MethodDeclaration" /> | ||
|
||
<exclude name="PSR12.Classes.ClassInstantiation" /> | ||
<exclude name="PSR12.Classes.ClosingBrace" /> | ||
<exclude name="PSR12.ControlStructures.ControlStructureSpacing" /> | ||
<exclude name="PSR12.Files.FileHeader" /> | ||
<exclude name="PSR12.Files.ImportStatement" /> | ||
<exclude name="PSR12.Operators.OperatorSpacing" /> | ||
<exclude name="PSR12.Properties.ConstantVisibility" /> | ||
<exclude name="PSR12.Traits.UseDeclaration" /> | ||
|
||
<exclude name="Squiz.Classes.ValidClassName" /> | ||
<exclude name="Squiz.ControlStructures.ControlSignature" /> | ||
<exclude name="Squiz.ControlStructures.ForEachLoopDeclaration" /> | ||
<exclude name="Squiz.Functions.FunctionDeclaration" /> | ||
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing" /> | ||
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration" /> | ||
<exclude name="Squiz.Scope.MethodScope" /> | ||
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing" /> | ||
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace" /> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowTabIndent.TabsUsed" /> | ||
<rule ref="Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed" /> | ||
|
||
<rule ref="Generic.Arrays.DisallowLongArraySyntax" /> | ||
|
||
<rule ref="Generic.PHP.ForbiddenFunctions"> | ||
<properties> | ||
<property name="forbiddenFunctions" type="array" value="db_string=>null,db_array=>null,each=>null" /> | ||
<property name="forbiddenFunctions" type="array" extend="true"> | ||
<element key="db_string" value="null"/> | ||
<element key="db_array" value="null"/> | ||
<element key="each" value="null"/> | ||
<element key="eval" value="null"/> | ||
<element key="extract" value="null"/> | ||
</property> | ||
</properties> | ||
<type>warning</type> | ||
</rule> | ||
</ruleset> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<p>Recovery is currently closed.</p> | ||
|
||
<p>Please join <tt>irc.orpheus.network</tt> (port 6669 or +7000 for SSL) for | ||
<p>Please join <tt><?= BOT_SERVER ?></tt> (port 6669 or +7000 for SSL) for | ||
more information (#recovery channel).</p> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
} else { | ||
if (!check_perms('users_view_invites')) { | ||
error(403); | ||
} | ||
} | ||
$userId = (int)$_GET['userid']; | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
) | ||
) { | ||
error(403); | ||
} | ||
} | ||
|
||
$Email = $_POST['email']; | ||
$Username = $LoggedUser['Username']; | ||
|