Skip to content

Commit 3e05363

Browse files
committed
Merge namespace
1 parent f55c6e6 commit 3e05363

20 files changed

+77
-112
lines changed

.gitattributes

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
#
2-
# Tests Ignore
3-
#
4-
/tests export-ignore
5-
phpunit.xml export-ignore
1+
* text=auto
62

7-
#
8-
# System Files
9-
#
103
/.github export-ignore
4+
/tests export-ignore
115
.editorconfig export-ignore
126
.gitattributes export-ignore
137
.gitignore export-ignore
148
.travis.yml export-ignore
9+
phpunit.xml export-ignore
10+
CHANGELOG-* export-ignore
11+
CONTRIBUTING.md export-ignore
12+
CODE_OF_CONDUCT.md export-ignore

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.idea/
2+
*.iml
3+
24
vendor/
35
composer.phar
6+
7+
.DS_Store
8+
Thumbs.db

.travis.yml

-36
This file was deleted.

README.md

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
<p align="center">
2-
<h1>Pipe</h1>
3-
</p>
4-
<p align="center">
5-
<a href="https://travis-ci.org/SerafimArts/Pipe"><img src="https://travis-ci.org/SerafimArts/Pipe.svg" alt="Travis CI" /></a>
6-
<a href="https://codeclimate.com/github/SerafimArts/Pipe/test_coverage"><img src="https://api.codeclimate.com/v1/badges/1fb35ca43960c5421349/test_coverage" /></a>
7-
<a href="https://codeclimate.com/github/SerafimArts/Pipe/maintainability"><img src="https://api.codeclimate.com/v1/badges/1fb35ca43960c5421349/maintainability" /></a>
8-
</p>
9-
<p align="center">
10-
<a href="https://packagist.org/packages/serafim/pipe"><img src="https://img.shields.io/badge/PHP-7.1+-6f4ca5.svg" alt="PHP 7.1+"></a>
11-
<a href="https://packagist.org/packages/serafim/pipe"><img src="https://poser.pugx.org/serafim/pipe/version" alt="Latest Stable Version"></a>
12-
<a href="https://packagist.org/packages/serafim/pipe"><img src="https://poser.pugx.org/serafim/pipe/downloads" alt="Total Downloads"></a>
13-
<a href="https://raw.githubusercontent.com/SerafimArts/Pipe/master/LICENSE.md"><img src="https://poser.pugx.org/serafim/pipe/license" alt="License MIT"></a>
14-
</p>
1+
# Pipe
152

163
Object-oriented pipe operator implementation based
174
on [RFC Pipe Operator](https://wiki.php.net/rfc/pipe-operator).

bin/pipe

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare(strict_types=1);
1111

1212
use Composer\Autoload\ClassLoader;
1313
use Symfony\Component\Console\Application;
14-
use Serafim\Pipe\Console\BuildAutocompleteCommand;
14+
use Fun\Pipe\Console\BuildAutocompleteCommand;
1515

1616

1717
/*

composer.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "serafim/pipe",
2+
"name": "phpfn/pipe",
33
"type": "library",
44
"description": "Library for implementing function call chains",
55
"license": "MIT",
@@ -10,10 +10,10 @@
1010
"curry",
1111
"partial application"
1212
],
13-
"homepage": "https://github.com/SerafimArts/Pipe",
13+
"homepage": "https://github.com/phpfn/pipe",
1414
"support": {
15-
"issues": "https://github.com/SerafimArts/Pipe/issues",
16-
"source": "https://github.com/SerafimArts/Pipe"
15+
"issues": "https://github.com/phpfn/pipe/issues",
16+
"source": "https://github.com/phpfn/pipe"
1717
},
1818
"authors": [
1919
{
@@ -22,26 +22,26 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.1.3",
26-
"serafim/placeholder": "~1.0"
25+
"php": ">=7.4",
26+
"phpfn/placeholder": "^2.0"
2727
},
2828
"autoload": {
2929
"psr-4": {
30-
"Serafim\\Pipe\\": "src/"
30+
"Fun\\Pipe\\": "src"
3131
},
3232
"files": [
33-
"./src/helpers.php"
33+
"src/helpers.php"
3434
]
3535
},
3636
"require-dev": {
37+
"phpunit/phpunit": "^9.0",
3738
"laminas/laminas-code": "~3.4",
3839
"symfony/console": "~4.3|~5.0",
39-
"phpunit/phpunit": "~7.5|~8.0",
4040
"symfony/var-dumper": "~4.3|~5.0"
4141
},
4242
"autoload-dev": {
4343
"psr-4": {
44-
"Serafim\\Pipe\\Tests\\": "tests/"
44+
"Fun\\Pipe\\Tests\\": "tests"
4545
},
4646
"files": [
4747
"tests/stubs/functions.php"

phpunit.xml

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="true"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
2+
<phpunit backupGlobals="false"
53
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false">
4+
bootstrap="vendor/autoload.php"
5+
failOnRisky="true"
6+
failOnWarning="true"
7+
>
118
<testsuites>
129
<testsuite name="Test Suite">
13-
<directory suffix="TestCase.php">./tests</directory>
10+
<directory suffix="TestCase.php">tests</directory>
1411
</testsuite>
1512
</testsuites>
1613
<filter>
@@ -20,6 +17,8 @@
2017
</filter>
2118
<php>
2219
<ini name="error_reporting" value="-1" />
23-
<ini name="memory_limit" value="-1" />
20+
<ini name="intl.default_locale" value="en" />
21+
<ini name="intl.error_level" value="0" />
22+
<ini name="memory_limit" value="-1"/>
2423
</php>
2524
</phpunit>

resources/.phpstorm.autocomplete.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
2+
23
/**
34
* This file was automatically generated
45
*
56
* @license MIT
67
* @noinspection ALL
78
*/
89

9-
10-
namespace Serafim\Pipe;
10+
namespace Fun\Pipe;
1111

1212
/**
1313
* @noinspection AutoloadingIssuesInspection

src/Console/BuildAutocompleteCommand.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
<?php
2+
23
/**
3-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
45
*
56
* For the full copyright and license information, please view the LICENSE
67
* file that was distributed with this source code.
78
*/
9+
810
declare(strict_types=1);
911

10-
namespace Serafim\Pipe\Console;
12+
namespace Fun\Pipe\Console;
1113

1214
use Laminas\Code\Generator\ClassGenerator;
1315
use Laminas\Code\Generator\DocBlockGenerator;
1416
use Laminas\Code\Generator\FileGenerator;
1517
use Laminas\Code\Generator\ParameterGenerator;
1618
use Laminas\Code\Reflection\FunctionReflection;
17-
use Serafim\Pipe\Pipe;
19+
use Fun\Pipe\Pipe;
1820
use Symfony\Component\Console\Command\Command;
1921
use Symfony\Component\Console\Input\InputInterface;
2022
use Symfony\Component\Console\Input\InputOption;

src/Exception/FunctionNotFoundException.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
2+
23
/**
3-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
45
*
56
* For the full copyright and license information, please view the LICENSE
67
* file that was distributed with this source code.
78
*/
9+
810
declare(strict_types=1);
911

10-
namespace Serafim\Pipe\Exception;
12+
namespace Fun\Pipe\Exception;
1113

1214
/**
1315
* Class FunctionNotFoundException

src/OperatorsTrait.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<?php
22

33
/**
4-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
88
*/
9+
910
declare(strict_types=1);
1011

11-
namespace Serafim\Pipe;
12+
namespace Fun\Pipe;
1213

1314
/**
1415
* @mixin Pipe

src/Pipe.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
<?php
22

33
/**
4-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
88
*/
9+
910
declare(strict_types=1);
1011

11-
namespace Serafim\Pipe;
12+
namespace Fun\Pipe;
1213

13-
use Serafim\Pipe\Exception\FunctionNotFoundException;
14-
use Serafim\Placeholder\Placeholder;
14+
use Fun\Pipe\Exception\FunctionNotFoundException;
15+
use Fun\Placeholder\Placeholder;
1516

1617
/**
1718
* Object-oriented pipe operator implementation based on PHP Pipe operator.

src/PipeInterface.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<?php
22

33
/**
4-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
88
*/
9+
910
declare(strict_types=1);
1011

11-
namespace Serafim\Pipe;
12+
namespace Fun\Pipe;
1213

1314
/**
1415
* Interface PipeInterface

src/RendererTrait.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
2+
23
/**
3-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
45
*
56
* For the full copyright and license information, please view the LICENSE
67
* file that was distributed with this source code.
78
*/
9+
810
declare(strict_types=1);
911

10-
namespace Serafim\Pipe;
12+
namespace Fun\Pipe;
1113

1214
/**
1315
* Trait RendererTrait

src/Trace.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

33
/**
4-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
88
*/
99

1010
declare(strict_types=1);
1111

12-
namespace Serafim\Pipe;
12+
namespace Fun\Pipe;
1313

1414
/**
1515
* Class Trace

src/helpers.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22

33
/**
4-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
88
*/
9+
910
declare(strict_types=1);
1011

11-
use Serafim\Pipe\Pipe;
12-
use Serafim\Pipe\PipeInterface;
12+
use Fun\Pipe\Pipe;
13+
use Fun\Pipe\PipeInterface;
1314

1415
if (! \function_exists('pipe')) {
1516
/**

tests/FunctionPipingTestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

33
/**
4-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
88
*/
99

1010
declare(strict_types=1);
1111

12-
namespace Serafim\Pipe\Tests;
12+
namespace Fun\Pipe\Tests;
1313

1414
/**
1515
* Class TestFunctionPiping

tests/NamespacedFunctionsTestCase.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22

33
/**
4-
* This file is part of Pipe package.
4+
* This file is part of phpfn package.
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
88
*/
99

1010
declare(strict_types=1);
1111

12-
namespace Serafim\Pipe\Tests;
12+
namespace Fun\Pipe\Tests;
1313

14-
use Serafim\Pipe\PipeInterface;
14+
use Fun\Pipe\PipeInterface;
1515

1616
/**
1717
* Class NamespacedFunctionsTestCase

0 commit comments

Comments
 (0)