Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit f90750b

Browse files
committed
Updating submodule
1 parent 3eca180 commit f90750b

File tree

6 files changed

+12
-20
lines changed

6 files changed

+12
-20
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[submodule "address-formatting"]
22
path = address-formatting
33
url = https://github.com/OpenCageData/address-formatting.git
4+
[submodule "address-formatting-templates"]
5+
path = address-formatting-templates
6+
url = https://github.com/predicthq/address-formatting-templates.git
7+
[submodule "address-formatter-templates"]
8+
path = address-formatter-templates
9+
url = https://github.com/predicthq/address-formatter-templates.git

address-formatter-templates

address-formatting

Submodule address-formatting deleted from e40650f

composer.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,9 @@
1515
"role": "Developer"
1616
}
1717
],
18-
"repositories": [
19-
{
20-
"type": "package",
21-
"package": {
22-
"name": "opencagedata/address-formatting",
23-
"version": "dev-master",
24-
"source": {
25-
"type": "git",
26-
"url": "https://github.com/OpenCageData/address-formatting.git",
27-
"reference": "e40650fe138064af224a769d2f0b4cd7454fcb7c"
28-
}
29-
}
30-
}
31-
],
3218
"require": {
3319
"php": ">=5.6.0",
34-
"opencagedata/address-formatting": "dev-master",
20+
"predicthq/address-formatter-templates": "~1.0",
3521
"symfony/yaml": "~3.0",
3622
"mustache/mustache": "~2.0"
3723
},

src/Formatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,13 @@ public function loadTemplates()
479479
* the address-formatting templates as a separate package via our composer.json and if the address-formatting
480480
* templates exist at the expected location for a composer loaded package, we use that by default.
481481
*/
482-
$composerTemplatesPath = implode(DIRECTORY_SEPARATOR, array(realpath(dirname(__FILE__)), '..', '..', '..', 'opencagedata', 'address-formatting', 'conf'));
482+
$composerTemplatesPath = implode(DIRECTORY_SEPARATOR, array(realpath(dirname(__FILE__)), '..', '..', 'address-formatter-templates', 'conf'));
483483

484484
if (is_dir($composerTemplatesPath)) {
485485
$templatesPath = $composerTemplatesPath;
486486
} else {
487487
//Use the git submodule path
488-
$templatesPath = implode(DIRECTORY_SEPARATOR, array(realpath(dirname(__FILE__)), '..', 'address-formatting', 'conf'));
488+
$templatesPath = implode(DIRECTORY_SEPARATOR, array(realpath(dirname(__FILE__)), '..', 'address-formatter-templates', 'conf'));
489489
}
490490

491491
if (is_dir($templatesPath)) {

tests/TestCasesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ public function testCountries()
1313
* the address-formatting templates as a separate package via our composer.json and if the address-formatting
1414
* templates exist at the expected location for a composer loaded package, we use that by default.
1515
*/
16-
$composerTestCasesPath = implode(DIRECTORY_SEPARATOR, array(realpath(dirname(__FILE__)), '..', '..', '..', 'opencagedata', 'address-formatting', 'testcases'));
16+
$composerTestCasesPath = implode(DIRECTORY_SEPARATOR, array(realpath(dirname(__FILE__)), '..', '..', 'address-formatter-templates', 'testcases'));
1717

1818
if (is_dir($composerTestCasesPath)) {
1919
$testCasesPath = $composerTestCasesPath;
2020
} else {
2121
//Use the git submodule path
22-
$testCasesPath = implode(DIRECTORY_SEPARATOR, array(realpath(dirname(__FILE__)), '..', 'address-formatting', 'testcases'));
22+
$testCasesPath = implode(DIRECTORY_SEPARATOR, array(realpath(dirname(__FILE__)), '..', 'address-formatter-templates', 'testcases'));
2323
}
2424

2525
//Load all countries

0 commit comments

Comments
 (0)