-
Notifications
You must be signed in to change notification settings - Fork 1
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
29 changed files
with
2,256 additions
and
2,205 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 was deleted.
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$id": "https://github.com/pronamic/wp-money/blob/develop/json-schemas/money.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Pronamic WordPress money object.", | ||
"type": "object", | ||
"required": [ | ||
"currency", | ||
"amount" | ||
], | ||
"properties": { | ||
"currency": { | ||
"type": "string" | ||
}, | ||
"amount": { | ||
"type": ["number", "string"] | ||
} | ||
} | ||
} |
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,26 @@ | ||
{ | ||
"$id": "https://github.com/pronamic/wp-money/blob/develop/json-schemas/taxed-money.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Pronamic WordPress taxed money object.", | ||
"type": "object", | ||
"required": [ | ||
"currency", | ||
"amount", | ||
"tax_value", | ||
"tax_percentage", | ||
], | ||
"properties": { | ||
"currency": { | ||
"type": "string" | ||
}, | ||
"amount": { | ||
"type": ["number", "string"] | ||
}, | ||
"tax_value": { | ||
"type": ["number", "string"] | ||
}, | ||
"tax_percentage": { | ||
"type": ["number", "string"] | ||
} | ||
} | ||
} |
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,29 +1,10 @@ | ||
<?xml version="1.0"?> | ||
|
||
<ruleset name="Pronamic Money rules"> | ||
<config name="minimum_supported_wp_version" value="4.7" /> | ||
|
||
<config name="testVersion" value="5.6-" /> | ||
|
||
<file>.</file> | ||
|
||
<arg name="colors"/> | ||
<arg name="extensions" value="php" /> | ||
<arg value="sp" /> | ||
|
||
<exclude-pattern>node_modules/*</exclude-pattern> | ||
<exclude-pattern>tests/bootstrap.php</exclude-pattern> | ||
<exclude-pattern>tests/wp-config.php</exclude-pattern> | ||
<exclude-pattern>vendor/*</exclude-pattern> | ||
<exclude-pattern>wordpress/*</exclude-pattern> | ||
<exclude-pattern type="relative">^wp-content/*</exclude-pattern> | ||
|
||
<rule ref="PHPCompatibilityWP" /> | ||
|
||
<rule ref="WordPress"> | ||
<exclude name="Generic.Files.LowercasedFilename.NotFound" /> | ||
|
||
<exclude name="WordPress.Files.FileName.InvalidClassFileName" /> | ||
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> | ||
</rule> | ||
<rule ref="PronamicWP" /> | ||
</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
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
Oops, something went wrong.