Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP Stan #61

Merged
merged 6 commits into from
Jan 31, 2025
Merged

Add PHP Stan #61

merged 6 commits into from
Jan 31, 2025

Conversation

neo-garaix
Copy link
Collaborator

@neo-garaix neo-garaix commented Jan 27, 2025

Adding PHP Stan to the project

  • No we can test our PHP quality with PHP Stan

PHP Stan is using a configuration file called phpstan.neon.

A command is added through composer :

  • phpstan : Check the PHP code quality.

This PR will be rebased on #60. I created it in order to see the addition of PHPStan above changes from PHP CS Fixer

Copy link
Member

@Gustry Gustry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments

mapBuilder/controllers/mapcontext.classic.php Outdated Show resolved Hide resolved
mapBuilder/controllers/default.classic.php Outdated Show resolved Hide resolved
mapBuilder/controllers/mapcontext.classic.php Show resolved Hide resolved
@Gustry Gustry requested a review from nworr January 29, 2025 09:36
@neo-garaix neo-garaix mentioned this pull request Jan 29, 2025
Copy link
Member

@Gustry Gustry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is-it sill a draft or or there something you need to fix/improve ?

LINTERS.md Outdated Show resolved Hide resolved
tests/README.md Show resolved Hide resolved
@neo-garaix
Copy link
Collaborator Author

Is-it sill a draft or or there something you need to fix/improve ?

I put it in draft because it was awaiting for #60 but I can undraft it ofc, i will rebase it onto #60 once it is merged

@Gustry Gustry closed this in #60 Jan 31, 2025
@Gustry
Copy link
Member

Gustry commented Jan 31, 2025

I'm not sure why this PR has been closed by "me", while I was merging #60...

@Gustry Gustry reopened this Jan 31, 2025
@neo-garaix neo-garaix marked this pull request as ready for review January 31, 2025 13:58
@@ -29,8 +28,8 @@ public function onmainviewGetMaps($event)
// Reproject extent in ini file from EPSG:4326 to EPSG:3857.
if (class_exists('Proj4php')) { // lizmap 3.6
$proj4 = new Proj4php();
$sourceProj = new Proj4phpProj('EPSG:4326', $proj4);
$destProj = new Proj4phpProj('EPSG:3857', $proj4);
$sourceProj = new Proj4phpProj('EPSG:4326', $proj4); /* @phpstan-ignore class.notFound */ // Used for older version of lizmap
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://github.com/3liz/lizmap-mapbuilder-module/blob/master/mapBuilder/module.xml#L13
and as this PR is targeting only the master branch, so minimum LWC 3.8, this code can be removed now.
We can do it after.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do a little new PR ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's welcome ;-)

@Gustry Gustry merged commit 8819928 into 3liz:master Jan 31, 2025
4 checks passed
@neo-garaix neo-garaix deleted the add-php-stan branch January 31, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants