-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
~ Format code.
- Loading branch information
Showing
12 changed files
with
73 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -395,4 +395,3 @@ public function get_last_number_order( int $course_id = 0 ): int { | |
return $number_order; | ||
} | ||
} | ||
|
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
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
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,35 +1,38 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="LearnPress ruleset"> | ||
<description>LearnPress rules for PHP_CodeSniffer</description> | ||
|
||
<!-- <config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/phpcsstandards/phpcsutils"/>--> | ||
<arg value="ps"/> | ||
<arg name="extensions" value="php"/> | ||
|
||
<file>./inc/</file> | ||
<file>./templates/</file> | ||
<file>./inc</file> | ||
<file>./templates</file> | ||
<file>./config</file> | ||
<file>learnpress.php</file> | ||
|
||
<exclude-pattern>./inc/admin/includes/class-markdown-parse.php</exclude-pattern> | ||
<exclude-pattern>*/inc/libraries/*</exclude-pattern> | ||
<exclude-pattern type="relative">vendor</exclude-pattern> | ||
<exclude-pattern type="relative">node_modules</exclude-pattern> | ||
<exclude-pattern type="relative">tests</exclude-pattern> | ||
<exclude-pattern type="relative">assets</exclude-pattern> | ||
<exclude-pattern>*/inc/libraries/*</exclude-pattern> | ||
<exclude-pattern>vendor/*</exclude-pattern> | ||
<exclude-pattern>node_modules/*</exclude-pattern> | ||
<exclude-pattern>tests/*</exclude-pattern> | ||
<exclude-pattern>package.json</exclude-pattern> | ||
<exclude-pattern>assets/*</exclude-pattern> | ||
<exclude-pattern>languages/*</exclude-pattern> | ||
<exclude-pattern>release/*</exclude-pattern> | ||
|
||
<rule ref="WordPress-Core"> | ||
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar"/> | ||
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores"/> | ||
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment"/> | ||
<exclude name="Generic.Commenting.DocComment.MissingShort"/> | ||
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/> | ||
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/> | ||
<exclude name="WordPress.PHP.StrictComparisons.LooseComparison"/> | ||
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict"/> | ||
<exclude name="WordPress.PHP.RestrictedPHPFunctions.date_date"/> | ||
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"/> | ||
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"/> | ||
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/> | ||
<exclude name="Universal.Arrays.DisallowShortArraySyntax" /> | ||
<exclude name="Universal.Operators.StrictComparisons.LooseNotEqual" /> | ||
<exclude name="Universal.Operators.StrictComparisons.LooseEqual" /> | ||
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" /> | ||
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" /> | ||
<exclude name="WordPress.PHP.YodaConditions.NotYoda" /> | ||
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" /> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase" /> | ||
<exclude name="WordPress.NamingConventions.ValidHookName.NotLowercase" /> | ||
<!-- When need check security query mysql use default of WordPress, need open --> | ||
<exclude name="WordPress.DB.PreparedSQL.NotPrepared" /> | ||
<exclude name="WordPress.DB.PreparedSQL.InterpolatedNotPrepared" /> | ||
<exclude name="Generic.WhiteSpace.IncrementDecrementSpacing.SpaceAfterIncrement" /> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" /> | ||
</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