-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
50 changed files
with
2,293 additions
and
1,717 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.exvim* | ||
dist/ | ||
tempcache/ |
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,174 @@ | ||
#tools: | ||
# external_code_coverage: | ||
# timeout: 600 # Timeout in seconds. | ||
|
||
build: | ||
dependencies: | ||
override: | ||
- composer self-update | ||
- git clone --depth=1 https://github.com/galette/galette -b develop galette && pushd galette | ||
- ./bin/install_deps && popd | ||
|
||
nodes: | ||
|
||
analysis: | ||
environment: | ||
php: | ||
version: 8.1 | ||
|
||
project_setup: | ||
override: | ||
- 'true' | ||
tests: | ||
override: | ||
- php-scrutinizer-run | ||
- js-scrutinizer-run | ||
|
||
cache: | ||
directories: | ||
- vendor # Cache for already installed composer package -> speed up composer install | ||
- galette/vendor # Same ^ | ||
- bin # As vendor directory is cached, bin directory must be also cached (as some dependency will not installed if they are already present and so, related binary will not be linked) | ||
- ~/.composer # Composer home directory (avoid fetching already fetched packages) | ||
filter: | ||
excluded_paths: | ||
- 'galette/*' | ||
- 'tests/*' | ||
- 'bin/*' | ||
- '*.min.js' | ||
dependency_paths: | ||
- "galette/vendor/" | ||
- "vendor/" | ||
|
||
checks: | ||
php: | ||
fix_php_opening_tag: false | ||
remove_php_closing_tag: false | ||
one_class_per_file: false | ||
side_effects_or_types: false | ||
no_mixed_inline_html: false | ||
require_braces_around_control_structures: false | ||
php5_style_constructor: false | ||
no_global_keyword: false | ||
avoid_usage_of_logical_operators: false | ||
psr2_class_declaration: false | ||
no_underscore_prefix_in_properties: false | ||
no_underscore_prefix_in_methods: false | ||
blank_line_after_namespace_declaration: false | ||
single_namespace_per_use: false | ||
psr2_switch_declaration: false | ||
psr2_control_structure_declaration: false | ||
avoid_superglobals: false | ||
security_vulnerabilities: false | ||
no_exit: false | ||
fix_use_statements: | ||
remove_unused: true | ||
preserve_multiple: false | ||
preserve_blanklines: true | ||
order_alphabetically: false | ||
javascript: true | ||
|
||
coding_style: | ||
php: | ||
indentation: | ||
general: | ||
use_tabs: false | ||
size: 4 | ||
switch: | ||
indent_case: true | ||
spaces: | ||
general: | ||
linefeed_character: newline | ||
before_parentheses: | ||
function_declaration: false | ||
closure_definition: true | ||
function_call: false | ||
if: true | ||
for: true | ||
while: true | ||
switch: true | ||
catch: true | ||
array_initializer: false | ||
around_operators: | ||
assignment: true | ||
logical: true | ||
equality: true | ||
relational: true | ||
bitwise: true | ||
additive: true | ||
multiplicative: true | ||
shift: true | ||
unary_additive: false | ||
concatenation: true | ||
negation: false | ||
before_left_brace: | ||
class: true | ||
function: true | ||
if: true | ||
else: true | ||
for: true | ||
while: true | ||
do: true | ||
switch: true | ||
try: true | ||
catch: true | ||
finally: true | ||
before_keywords: | ||
else: true | ||
while: true | ||
catch: true | ||
finally: true | ||
within: | ||
brackets: false | ||
array_initializer: false | ||
grouping: false | ||
function_call: false | ||
function_declaration: false | ||
if: false | ||
for: false | ||
while: false | ||
switch: false | ||
catch: false | ||
type_cast: false | ||
ternary_operator: | ||
before_condition: true | ||
after_condition: true | ||
before_alternative: true | ||
after_alternative: true | ||
in_short_version: false | ||
other: | ||
before_comma: false | ||
after_comma: true | ||
before_semicolon: false | ||
after_semicolon: true | ||
after_type_cast: false | ||
braces: | ||
classes_functions: | ||
class: undefined | ||
function: undefined | ||
closure: undefined | ||
if: | ||
opening: undefined | ||
always: true | ||
else_on_new_line: false | ||
for: | ||
opening: undefined | ||
always: true | ||
while: | ||
opening: undefined | ||
always: true | ||
do_while: | ||
opening: undefined | ||
always: true | ||
while_on_new_line: false | ||
switch: | ||
opening: undefined | ||
try: | ||
opening: undefined | ||
catch_on_new_line: false | ||
finally_on_new_line: false | ||
upper_lower_casing: | ||
keywords: | ||
general: undefined | ||
constants: | ||
true_false_null: undefined |
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 |
---|---|---|
|
@@ -7,9 +7,9 @@ | |
* | ||
* PHP version 5 | ||
* | ||
* Copyright © 2011-2021 The Galette Team | ||
* Copyright © 2011-2023 The Galette Team | ||
* | ||
* This file is part of Galette (http://galette.tuxfamily.org). | ||
* This file is part of Galette (https://galette.eu). | ||
* | ||
* Galette is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -28,24 +28,27 @@ | |
* @package GalettePaypal | ||
* | ||
* @author Johan Cwiklinski <[email protected]> | ||
* @copyright 2011-2021 The Galette Team | ||
* @copyright 2011-2023 The Galette Team | ||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version | ||
* @link http://galette.tuxfamily.org | ||
* @since Available since 0.7dev - 2011-05-31 | ||
* @link https://galette.eu | ||
*/ | ||
|
||
$this->register( | ||
'Galette Paypal', //Name | ||
'Paypal integration', //Short description | ||
'Johan Cwiklinski', //Author | ||
'1.10.0', //Version | ||
'0.9.6', //Galette compatible version | ||
'2.0.0', //Version | ||
'1.0.0', //Galette compatible version | ||
'paypal', //routing name and translation domain | ||
'2021-11-29', //Release date | ||
'2023-12-07', //Release date | ||
[ //Permissions needed | ||
'paypal_preferences' => 'staff', | ||
'store_paypal_preferences' => 'staff', | ||
'paypal_history' => 'staff', | ||
'filter_paypal_history' => 'staff' | ||
] | ||
); | ||
|
||
$this->setCsrfExclusions([ | ||
'/paypal_(success|notify|cancelled)/', | ||
]); |
Oops, something went wrong.