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

Commit c1f184d

Browse files
committed
Changed Composer package name and code namespaces
This is to make it consistent with other plugins under the phergie GitHub organization.
1 parent 4887a99 commit c1f184d

14 files changed

Lines changed: 59 additions & 59 deletions

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "phergie/phergie-irc-plugin-url",
2+
"name": "phergie/phergie-irc-plugin-react-url",
33
"description": "Phergie plugin for Display URL information about links",
44
"keywords": [ "irc", "bot", "react", "plugin" ],
55
"license": "MIT",
@@ -22,12 +22,12 @@
2222
},
2323
"autoload": {
2424
"psr-4": {
25-
"Phergie\\Plugin\\Url\\": "src"
25+
"Phergie\\Irc\\Plugin\\React\\Url\\": "src"
2626
}
2727
},
2828
"autoload-dev": {
2929
"psr-4": {
30-
"Phergie\\Tests\\Plugin\\Url\\": "tests"
30+
"Phergie\\Tests\\Irc\\Plugin\\React\\Url\\": "tests"
3131
}
3232
}
3333
}

src/DefaultUrlHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Plugin\Url;
11+
namespace Phergie\Irc\Plugin\React\Url;
1212

13-
use Phergie\Plugin\Url\Mime;
13+
use Phergie\Irc\Plugin\React\Url\Mime;
1414

1515
/**
1616
* Default URL handler to create a message about a
1717
*
1818
* @category Phergie
19-
* @package Phergie\Plugin\Url
19+
* @package Phergie\Irc\Plugin\React\Url
2020
*/
2121
class DefaultUrlHandler implements UrlHandlerInterface
2222
{

src/Mime/Html.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Plugin\Url\Mime;
11+
namespace Phergie\Irc\Plugin\React\Url\Mime;
1212

13-
use Phergie\Plugin\Url\UrlInterface;
13+
use Phergie\Irc\Plugin\React\Url\UrlInterface;
1414

1515
class Html implements MimeInterface
1616
{

src/Mime/Image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Plugin\Url\Mime;
11+
namespace Phergie\Irc\Plugin\React\Url\Mime;
1212

13-
use Phergie\Plugin\Url\UrlInterface;
13+
use Phergie\Irc\Plugin\React\Url\UrlInterface;
1414

1515
class Image implements MimeInterface
1616
{

src/Mime/MimeInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Plugin\Url\Mime;
11+
namespace Phergie\Irc\Plugin\React\Url\Mime;
1212

13-
use Phergie\Plugin\Url\UrlInterface;
13+
use Phergie\Irc\Plugin\React\Url\UrlInterface;
1414

1515
/**
1616
* Interface MimeInterface
1717
*
18-
* @package Phergie\Plugin\Url\Mime
18+
* @package Phergie\Irc\Plugin\React\Url\Mime
1919
*/
2020
interface MimeInterface
2121
{

src/Plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Plugin\Url;
11+
namespace Phergie\Irc\Plugin\React\Url;
1212

1313
use React\EventLoop\LoopInterface;
1414
use Phergie\Irc\Bot\React\AbstractPlugin;
@@ -22,11 +22,11 @@
2222
* Plugin for Display URL information about links.
2323
*
2424
* @category Phergie
25-
* @package Phergie\Plugin\Url
25+
* @package Phergie\Irc\Plugin\React\Url
2626
*/
2727
class Plugin extends AbstractPlugin implements LoopAwareInterface
2828
{
29-
const URL_HANDLER_INTERFACE = 'Phergie\Plugin\Url\UrlHandlerInterface';
29+
const URL_HANDLER_INTERFACE = 'Phergie\Irc\Plugin\React\Url\UrlHandlerInterface';
3030

3131
/**
3232
* @var UrlHandlerInterface

src/Url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Plugin\Url;
11+
namespace Phergie\Irc\Plugin\React\Url;
1212

1313
/**
1414
* Url value object
1515
*
16-
* @package Phergie\Plugin\Url
16+
* @package Phergie\Irc\Plugin\React\Url
1717
*/
1818
class Url implements UrlInterface
1919
{

src/UrlHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Plugin\Url;
11+
namespace Phergie\Irc\Plugin\React\Url;
1212

1313
interface UrlHandlerInterface
1414
{

src/UrlInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Plugin\Url;
11+
namespace Phergie\Irc\Plugin\React\Url;
1212

1313
/**
1414
* Interface UrlInterface
1515
*
16-
* @package Phergie\Plugin\Url
16+
* @package Phergie\Irc\Plugin\React\Url
1717
*/
1818
interface UrlInterface
1919
{

tests/DefaultUrlHandlerTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace Phergie\Tests\Plugin\Url;
11+
namespace Phergie\Tests\Irc\Plugin\React\Url;
1212

1313
use Phake;
14-
use Phergie\Plugin\Url\DefaultUrlHandler;
15-
use Phergie\Plugin\Url\Url;
14+
use Phergie\Irc\Plugin\React\Url\DefaultUrlHandler;
15+
use Phergie\Irc\Plugin\React\Url\Url;
1616

1717
class DefaultUrlHandlerTest extends \PHPUnit_Framework_TestCase
1818
{
@@ -50,7 +50,7 @@ public function testHandleStdClass() {
5050
public function testHandle() {
5151
$url = new Url('', '', array(), 200, 3.14159265359);
5252

53-
$handler = Phake::partialMock('Phergie\Plugin\Url\DefaultUrlHandler');
53+
$handler = Phake::partialMock('Phergie\Irc\Plugin\React\Url\DefaultUrlHandler');
5454
Phake::when($handler)->handle($url)->thenCallParent();
5555
Phake::when($handler)->getDefaultReplacements($url)->thenReturn(array());
5656
Phake::when($handler)->extract($this->isType('array'), $url)->thenReturn(array());
@@ -144,11 +144,11 @@ public function testExtract() {
144144
), 200, 3.14159265359);
145145
$replacements = array();
146146

147-
$html = Phake::mock('Phergie\Plugin\Url\Mime\Html');
147+
$html = Phake::mock('Phergie\Irc\Plugin\React\Url\Mime\Html');
148148
Phake::when($html)->matches('text/html')->thenCallParent();
149149
Phake::when($html)->extract($replacements, $url)->thenReturn($replacements);
150150

151-
$handler = Phake::partialMock('Phergie\Plugin\Url\DefaultUrlHandler', null, array(
151+
$handler = Phake::partialMock('Phergie\Irc\Plugin\React\Url\DefaultUrlHandler', null, array(
152152
$html,
153153
));
154154

@@ -166,11 +166,11 @@ public function testExtractNoMatch() {
166166
), 200, 3.14159265359);
167167
$replacements = array();
168168

169-
$html = Phake::mock('Phergie\Plugin\Url\Mime\Html');
169+
$html = Phake::mock('Phergie\Irc\Plugin\React\Url\Mime\Html');
170170
Phake::when($html)->matches('text/xml')->thenCallParent();
171171
Phake::when($html)->extract($replacements, $url)->thenReturn($replacements);
172172

173-
$handler = Phake::partialMock('Phergie\Plugin\Url\DefaultUrlHandler', null, array(
173+
$handler = Phake::partialMock('Phergie\Irc\Plugin\React\Url\DefaultUrlHandler', null, array(
174174
$html,
175175
));
176176

@@ -179,4 +179,4 @@ public function testExtractNoMatch() {
179179
Phake::verify($html)->matches('text/xml');
180180
Phake::verifyNoFurtherInteraction($html);
181181
}
182-
}
182+
}

0 commit comments

Comments
 (0)