-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
676 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# WordPress Coding Standards | ||
# https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
|
||
[{.jshintrc,*.json,*.yml,*.feature}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.txt}] | ||
end_of_line = crlf | ||
|
||
[composer.json] | ||
indent_style = space | ||
indent_size = 4 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.DS_Store | ||
node_modules/ | ||
vendor/ | ||
*.zip | ||
*.tar.gz | ||
*.swp | ||
*.txt | ||
*.log | ||
composer.lock | ||
.idea | ||
*.db |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
if ( ! class_exists( 'EE' ) ) { | ||
return; | ||
} | ||
|
||
$autoload = dirname( __FILE__ ) . '/vendor/autoload.php'; | ||
if ( file_exists( $autoload ) ) { | ||
require_once $autoload; | ||
} | ||
|
||
EE::add_command( 'auth', 'Auth_Command' ); |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "easyengine/auth-command", | ||
"description": "Configure HTTP auth for EasyEngine site.", | ||
"type": "ee-cli-package", | ||
"homepage": "https://github.com/easyengine/auth-command", | ||
"license": "MIT", | ||
"authors": [], | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"": "src/", | ||
"\\EE\\Model\\": "src/db/" | ||
}, | ||
"files": [ | ||
"src/auth-utils.php", | ||
"auth-command.php" | ||
] | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.x-dev" | ||
}, | ||
"bundled": true, | ||
"commands": [ | ||
"auth" | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="EE"> | ||
<description>WordPress Coding Standards for EE</description> | ||
|
||
<!-- Show sniff codes in all reports, and progress while running --> | ||
<arg value="sp"/> | ||
<!-- Check all PHP files in directory tree by default. --> | ||
<arg name="extensions" value="php"/> | ||
<!-- Run different reports --> | ||
<arg name="report" value="full"/> | ||
<arg name="report" value="summary"/> | ||
<arg name="report" value="source"/> | ||
|
||
<file>.</file> | ||
<exclude-pattern>*/ci/*</exclude-pattern> | ||
<exclude-pattern>*/features/*</exclude-pattern> | ||
<exclude-pattern>*/packages/*</exclude-pattern> | ||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
<exclude-pattern>*/utils/*</exclude-pattern> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
|
||
<rule ref="PHPCompatibility"> | ||
<!-- Polyfill package is used so array_column() is available for PHP 5.4- --> | ||
<exclude name="PHPCompatibility.PHP.NewFunctions.array_columnFound"/> | ||
<!-- Both magic quotes directives set in wp-settings-cli.php to provide consistent starting point. --> | ||
<exclude name="PHPCompatibility.PHP.DeprecatedIniDirectives.magic_quotes_runtimeDeprecatedRemoved"/> | ||
<exclude name="PHPCompatibility.PHP.DeprecatedIniDirectives.magic_quotes_sybaseDeprecatedRemoved"/> | ||
</rule> | ||
<config name="testVersion" value="7.0-"/> | ||
|
||
<rule ref="WordPress-Core"> | ||
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" /> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" /> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCase" /> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" /> | ||
</rule> | ||
<rule ref="WordPress.Files.FileName"> | ||
<properties> | ||
<property name="strict_class_file_names" value="false"/> | ||
</properties> | ||
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> | ||
</rule> | ||
</ruleset> |
Oops, something went wrong.