-
Notifications
You must be signed in to change notification settings - Fork 12
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
13 changed files
with
1,076 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,16 @@ | ||
.DS_Store | ||
.git | ||
.gitignore | ||
.gitlab-ci.yml | ||
.editorconfig | ||
.travis.yml | ||
behat.yml | ||
circle.yml | ||
bin/ | ||
features/ | ||
utils/ | ||
*.zip | ||
*.tar.gz | ||
*.swp | ||
*.txt | ||
*.log |
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,wp-config-sample.php}] | ||
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,12 @@ | ||
.DS_Store | ||
ee.local.yml | ||
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,24 @@ | ||
{ | ||
"name": "easyengine/site-type-php", | ||
"description": "EasyEngine package for PHP site creation.", | ||
"type": "ee-cli-package", | ||
"homepage": "https://github.com/easyengine/site-type-php", | ||
"license": "MIT", | ||
"authors": [], | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"": "src/" | ||
} | ||
}, | ||
"require-dev": { | ||
"wp-cli/mustangostang-spyc": "^0.6.3" | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.x-dev" | ||
}, | ||
"bundled": true | ||
} | ||
} |
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> |
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,16 @@ | ||
<?php | ||
|
||
if ( ! defined ( 'SITE_PHP_TEMPLATE_ROOT' ) ) { | ||
define( 'SITE_PHP_TEMPLATE_ROOT', __DIR__ . '/templates' ); | ||
} | ||
|
||
if ( ! class_exists( 'EE' ) ) { | ||
return; | ||
} | ||
|
||
$autoload = dirname( __FILE__ ) . '/vendor/autoload.php'; | ||
if ( file_exists( $autoload ) ) { | ||
require_once $autoload; | ||
} | ||
|
||
Site_Command::add_site_type( 'php', 'EE\Site\Type\PHP' ); |
Oops, something went wrong.