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

Version 2? #209

Open
wants to merge 151 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
c213033
Test type of value before using ctype function
Alexandre-T Feb 21, 2020
c6e9471
Test type of value before using ctype function
Alexandre-T Feb 21, 2020
4dfa9b3
Fork and code quality and code test updated
Alexandre-T Feb 21, 2020
e096609
Void added to setUp method, Php-cs-fixer fix
Alexandre-T Feb 21, 2020
6788738
Replacing CoversNothing by CoversDefaultClass
Alexandre-T Feb 21, 2020
23bdc72
Fixing code sniffer errors and warnings
Alexandre-T Feb 21, 2020
ff1c3dc
Fixing code sniffer errors and warnings
Alexandre-T Feb 21, 2020
9a14a9c
Fixing code sniffer errors and warnings
Alexandre-T Feb 21, 2020
40e874b
Readme updated
Alexandre-T Feb 22, 2020
0ffee7d
Code climat test coverage
Alexandre-T Feb 22, 2020
6d59ebb
Installing postgresql server and postgis extension
Alexandre-T Feb 22, 2020
a585cef
Phpunit configuration updated
Alexandre-T Feb 22, 2020
6739159
Comments improved
Alexandre-T Feb 22, 2020
888a0f1
Converts methods With PHP to camel case (Php)
Alexandre-T Feb 22, 2020
96a383c
Fixing syntax
Alexandre-T Feb 22, 2020
163894e
Only stable upcoming releases are tested
Alexandre-T Feb 22, 2020
bab8986
Only stable upcoming releases are tested
Alexandre-T Feb 22, 2020
669fe34
Fixing phpunit.xml.dist
Alexandre-T Feb 22, 2020
8befc21
Try postgis2.5
Alexandre-T Feb 22, 2020
0f7a374
Try postgis2.5
Alexandre-T Feb 22, 2020
c947070
Trying mysql
Alexandre-T Feb 22, 2020
feb4af3
Fixing composer to test doctrine 3.0 version
Alexandre-T Feb 22, 2020
d9dfd0d
Converting methods to camel case
Alexandre-T Feb 22, 2020
cec951d
Comments improved
Alexandre-T Feb 22, 2020
6c8a609
Test simplified
Alexandre-T Feb 23, 2020
4292b86
Methods move into parent class
Alexandre-T Feb 23, 2020
24e08f2
Methods move into parent class
Alexandre-T Feb 23, 2020
fbe8b04
Documentation for tests improved
Alexandre-T Feb 24, 2020
fb9336b
Documentation for tests improved
Alexandre-T Feb 24, 2020
8c20cde
Test code simplified
Alexandre-T Feb 24, 2020
c35c6da
Helper created to simplify tests
Alexandre-T Feb 24, 2020
c53e009
3 Helpers created to simplify tests
Alexandre-T Feb 25, 2020
8d556c9
phpcsfixer
Alexandre-T Feb 25, 2020
0b6698f
Upgrade of tests finished
Alexandre-T Feb 25, 2020
63cfe5a
Upgrade of tests finished
Alexandre-T Feb 25, 2020
96bc21c
Updating travis to test doctrine 3 only with php 7.4
Alexandre-T Feb 25, 2020
6d5b561
Adding return types
Alexandre-T Feb 25, 2020
e1d1f16
Quality should respect quality code rules to be merged
Alexandre-T Feb 25, 2020
e48f049
Clodeclimate updated to avoid similar code process
Alexandre-T Feb 26, 2020
c5c7c20
Abstract Geometry and all its children updated with methods insteadof…
Alexandre-T Feb 26, 2020
71b4bb8
Composer quality wont break a pull request
Alexandre-T Feb 26, 2020
b0ed403
license with http link replaced by https link.
Alexandre-T Feb 26, 2020
0630456
http link replaced by https link.
Alexandre-T Feb 26, 2020
60fa6a1
Updated
Alexandre-T Feb 26, 2020
ffa6fc3
PHPUnit method replaced by PHPUnit static method
Alexandre-T Feb 26, 2020
d4f0b63
Documentation updated
Alexandre-T Feb 27, 2020
56ea7da
Splitting tests and MySQL versions
Alexandre-T Feb 27, 2020
a241a57
Fixing typo in travis
Alexandre-T Feb 27, 2020
20f1bba
Before_script was not executed
Alexandre-T Feb 27, 2020
bbf4591
Before_script was not executed
Alexandre-T Feb 27, 2020
8081bd2
Before_script was not executed
Alexandre-T Feb 27, 2020
80d02c4
Before_script was not executed
Alexandre-T Feb 27, 2020
77c786a
Fixing link
Alexandre-T Feb 27, 2020
159ecbe
Spatial functions respecting OGC Standard implemented
Alexandre-T Feb 28, 2020
1c6eb49
Spatial functions respecting OGC Standard implemented
Alexandre-T Feb 29, 2020
04788ad
Updating Travis and installing postgis on postgresql10
Alexandre-T Feb 29, 2020
4df94d6
Updating postgis on postgresql10 and 11
Alexandre-T Mar 1, 2020
7686575
Removing docker for postgresql 11
Alexandre-T Mar 1, 2020
700e606
Removing docker for postgresql 11
Alexandre-T Mar 1, 2020
0e73264
Manual installation of postgresql 11, automatic installation of postg…
Alexandre-T Mar 1, 2020
4ffd28c
StDistanceTest.php renamed
Alexandre-T Mar 1, 2020
b20c8a7
St_Intersection
Alexandre-T Mar 1, 2020
2b5ef9a
St_Difference
Alexandre-T Mar 1, 2020
4123bd6
St_Union implemented and tested
Alexandre-T Mar 1, 2020
76a7b11
St_SymDifference implemented and tested
Alexandre-T Mar 1, 2020
8dc6ece
ST_Buffer implemented and tested
Alexandre-T Mar 1, 2020
8868b9c
ST_ConvexHull implemented but not tested
Alexandre-T Mar 1, 2020
f6a71f1
Travis updated
Alexandre-T Mar 1, 2020
b39322d
ST_X and ST_Y done and tested
Alexandre-T Mar 1, 2020
87c2d2e
ST_StartPoint and ST_EndPoint done and tested
Alexandre-T Mar 1, 2020
ee185ea
ST_IsRing and ST_Length done and tested
Alexandre-T Mar 1, 2020
156508e
Fixing some bug and implementing ScGeographyFromText
Alexandre-T Mar 1, 2020
b33e910
Trying to fix connection on PostGreSQL
Alexandre-T Mar 1, 2020
bfcbb94
Trying to fix connection on PostGreSQL
Alexandre-T Mar 1, 2020
8f08eae
Update README.md
Alexandre-T Mar 2, 2020
6c701de
Fixing uppercase in directory (windows powa)
Alexandre-T Mar 2, 2020
0479f61
Update README.md
Alexandre-T Mar 2, 2020
f511586
Fixing test and Travis execution plan
Alexandre-T Mar 2, 2020
189c1db
Fixing a misconfiguration
Alexandre-T Mar 3, 2020
3d0e845
Adding a TODO
Alexandre-T Mar 3, 2020
9ec57df
Adding a TODO
Alexandre-T Mar 3, 2020
b698e98
Adding spatial functions and their tests
Alexandre-T Mar 3, 2020
f73c397
Adding MultiPointType, spatial functions and their tests
Alexandre-T Mar 3, 2020
4bf364b
Replacing classname
Alexandre-T Mar 4, 2020
0e72049
Testing coversDefaultClass
Alexandre-T Mar 4, 2020
6779309
Fixing typo in column name
Alexandre-T Mar 4, 2020
e92b07e
ST_IsClosed and unspecified GeometryType functions
Alexandre-T Mar 4, 2020
9447e9c
PgSql specific functions
Alexandre-T Mar 4, 2020
385b3c2
PgSql specific functions
Alexandre-T Mar 4, 2020
d78e2bd
PgSql specific functions (tests missing)
Alexandre-T Mar 4, 2020
ffb98ce
PgSql specific tests
Alexandre-T Mar 5, 2020
4166e2e
PgSql specific tests
Alexandre-T Mar 5, 2020
7d14ea1
PgSql specific functions
Alexandre-T Mar 5, 2020
a20d6c4
Removing unused scripts
Alexandre-T Mar 5, 2020
0af1354
Typo fixed
Alexandre-T Mar 5, 2020
99ef23b
Fixing travis which can failed because of cached files
Alexandre-T Mar 5, 2020
e00f30b
Fixing test
Alexandre-T Mar 6, 2020
d7a14d2
SP_Scale and SP_Split PostgreSQL functions
Alexandre-T Mar 6, 2020
7a8637f
SP_Simplify and SP_NPoints PostgreSQL functions
Alexandre-T Mar 6, 2020
1a7969b
SP_SnapToGrid and SP_DistanceSphere PostgreSQL functions
Alexandre-T Mar 6, 2020
11fbc97
Four new functions
Alexandre-T Mar 6, 2020
21c511a
Trying to fix SqlError on linux
Alexandre-T Mar 7, 2020
263c7df
Adding new PostgreSQL functions
Alexandre-T Mar 7, 2020
56e8072
Adding new PostgreSQL test
Alexandre-T Mar 7, 2020
f5a4f08
Adding new PostgreSQL functions and tests
Alexandre-T Mar 7, 2020
5d4cb93
Fixing small issues
Alexandre-T Mar 7, 2020
0f42049
Two new PostgreSql function
Alexandre-T Mar 7, 2020
ae2e032
New geometry constructors
Alexandre-T Mar 11, 2020
e235b39
MySql MBR functions
Alexandre-T Mar 11, 2020
cdcf046
Removing deprecated functions
Alexandre-T Mar 11, 2020
591a490
PhpCsFixer
Alexandre-T Mar 11, 2020
315a08f
Php code sniffer
Alexandre-T Mar 11, 2020
c8d7243
Php mess detector rules updated
Alexandre-T Mar 11, 2020
2507088
Trying to fix codecoverage
Alexandre-T Mar 11, 2020
df1e2cb
Fixing missing classes in codecoverage
Alexandre-T Mar 11, 2020
71dc034
Integration test on doctrine 2.8.x-dev added
Alexandre-T Mar 13, 2020
8493bee
Documentation updated
Alexandre-T Mar 13, 2020
2d15ed3
Stages updated
Alexandre-T Mar 13, 2020
38ac9d0
Merge branch 'ogc'
Alexandre-T Mar 13, 2020
893e3dc
documentation
Alexandre-T Mar 13, 2020
0c62ffd
Initialization of sphinx documentation
Alexandre-T Mar 13, 2020
b498d30
Initialization of template
Alexandre-T Mar 13, 2020
e555e8e
First documentation pages
Alexandre-T Mar 15, 2020
619408c
Small update for main file
Alexandre-T Mar 15, 2020
76e3c5f
Small update for main file
Alexandre-T Mar 15, 2020
f3059db
Files moved to be compliant with readthedocs.io
Alexandre-T Mar 15, 2020
23be5b7
Files moved to be compliant with readthedocs.io
Alexandre-T Mar 15, 2020
de4bac6
Documentation structure done
Alexandre-T Mar 15, 2020
b6b977f
Documentation improved
Alexandre-T Mar 16, 2020
c06ab94
Documentation improved
Alexandre-T Mar 17, 2020
0e81268
Documentation improved
Alexandre-T Mar 17, 2020
5daea7a
Documentation done!
Alexandre-T Mar 17, 2020
55bef51
Fixing documentation badge and codeclimate configuration
Alexandre-T Mar 18, 2020
21e6e85
Geometry and Geography implements JsonSerializable
Alexandre-T Mar 28, 2020
84bc0aa
Version 2.0.0
Alexandre-T Apr 1, 2020
0d4c1af
Update README to fix links with initial repository
Alexandre-T Apr 1, 2020
628894c
Fixing merge conflicts (1/3)
Alexandre-T Jun 4, 2020
f5cf075
Fixing a bug on Sp_DistanceSphere
Alexandre-T Jun 4, 2020
6b7b6e8
Fixing a link on doctrine persistance 2.0.0
Alexandre-T Jun 4, 2020
b48b7ca
Fixing merge conflicts on documentation
Alexandre-T Jun 4, 2020
a75876a
Forcing PhpUnit8
Alexandre-T Jun 4, 2020
a23d419
Documentation updated
Alexandre-T Jun 4, 2020
05e73d0
PhpCsFixer
Alexandre-T Jun 4, 2020
7e20063
Testing postgis 2.4 with postgresql 10
Alexandre-T Jun 4, 2020
a2e6361
Fixing travis
Alexandre-T Jun 5, 2020
bbb39cd
Fixing test
Alexandre-T Jun 5, 2020
9a89b24
Fixing travis for doctrine/orm 2.8.dev
Alexandre-T Jun 4, 2020
2502a88
Email fixed
Alexandre-T Jun 5, 2020
a0844b1
Fix Code Climate config and MySql unused parameter
Alexandre-T Jun 5, 2020
d42b986
Code complexity removed
Alexandre-T Jun 5, 2020
c54d343
Code complexity removed
Alexandre-T Jun 5, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 47 additions & 7 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,51 @@
engines:
version: "2"
checks:
argument-count:
config:
threshold: 4
complex-logic:
config:
threshold: 4
file-lines:
config:
threshold: 250
method-complexity:
config:
threshold: 5
method-count:
config:
threshold: 20
method-lines:
config:
threshold: 25
nested-control-flow:
config:
threshold: 4
return-statements:
config:
threshold: 4
exclude_patterns:
- 'docs/'
- 'tests/'
- 'vendor/'
plugins:
duplication:
enabled: true
config:
languages:
php:
mass_threshold: 42
checks:
Similar code:
enabled: false
fixme:
enabled: true
config:
strings:
- FIXME
- BUG
- XXX
phpcodesniffer:
enabled: true
phpmd:
enabled: true
fixme:
enabled: true
ratings:
paths:
- "**.php"
exclude_paths: []
14 changes: 9 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
*.phar
.phpcs-cache
.php_cs.cache
.php-version
.phpunit.result.cache
composer.*.lock
composer.lock
phpunit.xml
phpunit.*.xml
vendor/
composer.lock*
doctrine2-spatial.iml
.idea*
.idea/*
/nbproject
80 changes: 80 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('var')
->exclude('vendor')
;

$header = <<<EOF
Copyright (C) 2020 Alexandre Tranchant
Copyright (C) 2015 Derek J. Lambert

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
EOF;

return PhpCsFixer\Config::create()
// ->setCacheFile(__DIR__.'/.php_cs.cache')
->setRules([
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'@Symfony' => true,
'@PHPUnit75Migration:risky' => true,
'@PHP70Migration' => true,
'@PHP71Migration' => true,
'@PHP73Migration' => true,
// 'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'dir_constant' => true,
'ereg_to_preg' => true,
'header_comment' => [
'comment_type' => 'PHPDoc',
'header' => $header,
'location' => 'after_open',
'separate' => 'bottom'
],
// 'date_time_immutable' => true,
// 'declare_strict_types' => true,
'is_null' => true,
'mb_str_functions' => true,
'modernize_types_casting' => true,
'no_unneeded_final_method' => true,
// 'no_alias_functions' =>true,
'ordered_interfaces' => [
'direction' => 'ascend',
'order' => 'alpha',
],
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant_public', 'constant_protected', 'constant_private', 'constant',
'property_public_static', 'property_protected_static', 'property_private_static', 'property_static',
'property_public', 'property_protected', 'property_private', 'property',
'construct', 'destruct',
'phpunit',
'method_public_static', 'method_protected_static', 'method_private_static', 'method_static',
'method_public', 'method_protected', 'method_private', 'method', 'magic'
],
'sortAlgorithm' => 'alpha'
],
'php_unit_test_case_static_method_calls' => true,
'single_line_throw' => false
])
->setFinder($finder)
;
19 changes: 19 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
#python:
# version: 3.7
# install:
# - requirements: docs/requirements.txt
Loading