Skip to content

Commit ad74922

Browse files
committed
Renamed package to Apantle\HashMapper
1 parent 2b20460 commit ad74922

11 files changed

+29
-29
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ key mapping and callbacks.
1212
## Simple key mapping
1313

1414
```php
15-
use Jefrancomix\Sohot\HashmapMapper as HM;
15+
use Apantle\HashMapper\HashmapMapper as HM;
1616

1717
$source = ['origin' => 'Africa'];
1818

@@ -42,7 +42,7 @@ that will receive as arguments:
4242
- the whole hashmap if you need other values of it
4343

4444
```php
45-
use Jefrancomix\Sohot\HashmapMapper as HM;
45+
use Apantle\HashMapper\HashmapMapper as HM;
4646

4747
$source = [
4848
'date' => [
@@ -137,7 +137,7 @@ $source = [
137137
];
138138

139139
$mapper = new HM([
140-
'wp:term' => ['...', 'Jefrancomix\Sohot\identity']
140+
'wp:term' => ['...', 'Apantle\HashMapper\identity']
141141
]);
142142

143143
$target = $mapper->apply($source);
@@ -177,7 +177,7 @@ $source = [
177177

178178
$hm = new HM(
179179
[
180-
'wp:term' => compose('Jefrancomix\Sohot\head', 'Jefrancomix\Sohot\identity'),
180+
'wp:term' => compose('Apantle\HashMapper\head', 'Apantle\HashMapper\identity'),
181181
],
182182
[
183183
'implicitSpread' => true

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "jefrancomix/sohot",
2+
"name": "apantle/hashmapper",
33
"description": "Simple Ordered Hashmap Object Transformer (array_map for associative arrays)",
44
"type": "library",
55
"require-dev": {
66
"phpunit/phpunit": "^6"
77
},
88
"autoload": {
99
"files": [ "src/functions.php" ],
10-
"psr-4": { "Jefrancomix\\Sohot\\": "src/" }
10+
"psr-4": { "Apantle\\HashMapper\\": "src/" }
1111
},
1212
"license": "MIT",
1313
"authors": [

src/HashmapMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Jefrancomix\Sohot;
3+
namespace Apantle\HashMapper;
44

55
class HashmapMapper implements HashmapMapperInterface
66
{

src/HashmapMapperInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Jefrancomix\Sohot;
3+
namespace Apantle\HashMapper;
44

55
interface HashmapMapperInterface
66
{

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Jefrancomix\Sohot;
2+
namespace Apantle\HashMapper;
33

44
function identity($item)
55
{

tests/FunctionsTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Jefrancomix\Sohot\Test;
3+
namespace Apantle\HashMapper\Test;
44

55
use \PHPUnit\Framework\TestCase;
6-
use function Jefrancomix\Sohot\hashMapper;
7-
use function Jefrancomix\Sohot\identity;
8-
use function Jefrancomix\Sohot\head;
9-
use function Jefrancomix\Sohot\compose;
6+
use function Apantle\HashMapper\hashMapper;
7+
use function Apantle\HashMapper\identity;
8+
use function Apantle\HashMapper\head;
9+
use function Apantle\HashMapper\compose;
1010

1111
class FunctionsTest extends TestCase
1212
{
@@ -36,7 +36,7 @@ public function testCompose()
3636
3,
3737
];
3838

39-
$composedFn = compose('Jefrancomix\Sohot\head', 'Jefrancomix\Sohot\head');
39+
$composedFn = compose('Apantle\HashMapper\head', 'Apantle\HashMapper\head');
4040

4141
$this->assertTrue(is_callable($composedFn));
4242

tests/ImplicitPassNotMatchedOptionsMapperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Jefrancomix\Sohot\Test;
3+
namespace Apantle\HashMapper\Test;
44

55
use PHPUnit\Framework\TestCase;
6-
use Jefrancomix\Sohot\HashmapMapper as HM;
6+
use Apantle\HashMapper\HashmapMapper as HM;
77

88
class ImplicitPassNotMatchedOptionsMapperTest extends TestCase
99
{

tests/ImplicitSpreadMapperTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Jefrancomix\Sohot\Test;
3+
namespace Apantle\HashMapper\Test;
44

55
use PHPUnit\Framework\TestCase;
6-
use Jefrancomix\Sohot\HashmapMapper as HM;
7-
use function Jefrancomix\Sohot\compose;
6+
use Apantle\HashMapper\HashmapMapper as HM;
7+
use function Apantle\HashMapper\compose;
88

99
class ImplicitSpreadMapperTest extends TestCase
1010
{
@@ -23,7 +23,7 @@ public function testSimpleImplicitSpread()
2323
$expectedTarget = $termData;
2424

2525
$hm = new HM([
26-
'wp:term' => compose('Jefrancomix\Sohot\head', 'Jefrancomix\Sohot\identity'),
26+
'wp:term' => compose('Apantle\HashMapper\head', 'Apantle\HashMapper\identity'),
2727
], ['implicitSpread' => true]);
2828

2929
$target = $hm->apply($source);
@@ -66,7 +66,7 @@ public function testSpreadCallableMapping()
6666
}
6767

6868
/**
69-
* @dataProvider Jefrancomix\Sohot\Test\SpreadMappingTest::spreadMappingDataProvider
69+
* @dataProvider Apantle\HashMapper\Test\SpreadMappingTest::spreadMappingDataProvider
7070
*/
7171
public function testHashMapperReusedReturnsOk($source, $expected)
7272
{

tests/SimpleMappingTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Jefrancomix\Sohot\Test;
3+
namespace Apantle\HashMapper\Test;
44

5-
use Jefrancomix\Sohot\HashmapMapperInterface;
5+
use Apantle\HashMapper\HashmapMapperInterface;
66
use PHPUnit\Framework\TestCase;
7-
use Jefrancomix\Sohot\HashmapMapper as HM;
7+
use Apantle\HashMapper\HashmapMapper as HM;
88

99
class SimpleMappingTest extends TestCase
1010
{

tests/SpreadMappingTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Jefrancomix\Sohot\Test;
3+
namespace Apantle\HashMapper\Test;
44

55
use PHPUnit\Framework\TestCase;
6-
use Jefrancomix\Sohot\HashmapMapper as HM;
6+
use Apantle\HashMapper\HashmapMapper as HM;
77

88
class SpreadMappingTest extends TestCase
99
{
@@ -57,7 +57,7 @@ public function testSpread()
5757
$expectedTarget = $termData;
5858

5959
$hm = new HM([
60-
'wp:term' => ['...', 'Jefrancomix\Sohot\identity'],
60+
'wp:term' => ['...', 'Apantle\HashMapper\identity'],
6161
]);
6262

6363
$target = $hm->apply($source);

0 commit comments

Comments
 (0)