Skip to content

Commit

Permalink
composer version
Browse files Browse the repository at this point in the history
  • Loading branch information
bluerhinos committed Nov 30, 2020
1 parent 7095eee commit e606a4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"minimum-stability": "dev",
"require": {
"php": ">=5.4",
"php": ">=7.2",
"ext-json": "*"
},
"autoload": {
Expand Down
12 changes: 6 additions & 6 deletions osgb36.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,16 +385,16 @@ protected function _posFromGrid($gridref)
// normalise to 1m grid, rounding up to centre of grid square:
switch (strlen($gridref)) {
case 4:
$e += '500';
$n += '500';
$e += 500;
$n += 500;
break;
case 6:
$e += '50';
$n += '50';
$e += 50;
$n += 50;
break;
case 8:
$e += '5';
$n += '5';
$e += 5;
$n += 5;
break;
// 10-digit refs are already 1m
}
Expand Down

0 comments on commit e606a4d

Please sign in to comment.