Skip to content

Commit

Permalink
Strict types declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 18, 2024
1 parent a12f8e2 commit 97c883e
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .composer-require-checker.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"GALETTE_CARD_ROWS",
"GALETTE_CARD_WIDTH",
"GALETTE_COMPAT_VERSION",
"GALETTE_SYSCONFIG_PATH",
"GALETTE_CONFIG_PATH",
"GALETTE_DATA_PATH",
"GALETTE_DB_VERSION",
Expand Down
2 changes: 2 additions & 0 deletions _config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

define('PAYPAL_PREFIX', 'paypal_');
2 changes: 2 additions & 0 deletions _define.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

$this->register(
'Galette Paypal', //Name
'Paypal integration', //Short description
Expand Down
2 changes: 2 additions & 0 deletions _routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

use GalettePaypal\Controllers\PaypalController;

//Constants and classes from plugin
Expand Down
2 changes: 2 additions & 0 deletions lib/GalettePaypal/Controllers/PaypalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GalettePaypal\Controllers;

use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GalettePaypal/Paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GalettePaypal;

use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GalettePaypal/PaypalHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GalettePaypal;

use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GalettePaypal/PluginGalettePaypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GalettePaypal;

use Galette\Core\Login;
Expand Down
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ parameters:
- lib/
scanFiles:
- _config.inc.php
- ../../config/paths.inc.php
- ../../includes/sys_config/paths.inc.php
- ../../config/config.inc.php.dist
- ../../config/galette_tcpdf_config.php
- ../../includes/sys_config/galette_tcpdf_config.php
scanDirectories:
- ../../includes/
- ../../lib/
Expand Down

0 comments on commit 97c883e

Please sign in to comment.