Skip to content

Commit

Permalink
Code refactoring to PHP 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
camcima committed Mar 5, 2016
1 parent bbc889e commit 041ed18
Show file tree
Hide file tree
Showing 9 changed files with 1,962 additions and 197 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.idea
/vendor
10 changes: 10 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__ . '/src');

return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers(['concat_with_spaces', 'short_array_syntax', 'ordered_use', '-pre_increment', 'phpdoc_order', 'newline_after_open_tag', '-phpdoc_params'])
->finder($finder)
->setUsingCache(true);
3 changes: 0 additions & 3 deletions Package/Camcima/GeoHash.php

This file was deleted.

16 changes: 12 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "camcima/php-geohash",
"type": "library",
"description": "Refactored GeoHash package",
"keywords": ["geohash", "composer", "php"],
"keywords": [
"geohash",
"composer",
"php"
],
"homepage": "https://github.com/camcima/php-geohash",
"license": "MIT",
"authors": [
Expand All @@ -12,11 +16,15 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=7.0"
},
"require-dev": {
"fabpot/php-cs-fixer": "^1.11",
"phpunit/phpunit": "^5.2"
},
"autoload": {
"psr-0": {
"Camcima": "Package"
"psr-4": {
"Camcima\\": "src/"
}
}
}
Loading

0 comments on commit 041ed18

Please sign in to comment.