diff --git a/composer.json b/composer.json index 4aa0ff3..4602ff0 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { - "name": "jkingweb/lax", + "name": "mensbeam/lax", "type": "library", "description": "A lax newsfeed parser", - "keywords": ["rss","atom","jsonfeed"], + "keywords": ["rss","atom","jsonfeed", "newsfeed", "feed", "parser"], "license": "MIT", "authors": [ { @@ -20,17 +20,26 @@ "ralouphie/mimey": "^2.1", "psr/http-message": "^1.0" }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.3" + }, + "config": { + "platform": { + "php": "7.1.33" + } + }, + "scripts": { + "post-install-cmd": ["@composer bin all install"], + "post-update-cmd": ["@composer bin all update"] + }, "autoload": { "psr-4": { - "JKingWeb\\Lax\\": "lib/" + "MensBeam\\Lax\\": "lib/" } }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.3" - }, "autoload-dev": { "psr-4": { - "JKingWeb\\Lax\\TestCase\\": "tests/cases/" + "MensBeam\\Lax\\TestCase\\": "tests/cases/" } } } diff --git a/composer.lock b/composer.lock index e3bec91..6ba8d63 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6dc5509246f40b1ac68e0ed4056e34a9", + "content-hash": "a49fcefdbe1073b594c29260943b2919", "packages": [ { "name": "psr/http-message", @@ -149,5 +149,8 @@ "ext-dom": "*", "ext-intl": "*" }, - "platform-dev": [] + "platform-dev": [], + "platform-overrides": { + "php": "7.1.33" + } } diff --git a/lib/Category/Category.php b/lib/Category/Category.php index 6c1da99..eff2f39 100644 --- a/lib/Category/Category.php +++ b/lib/Category/Category.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Category; +namespace MensBeam\Lax\Category; class Category { public $name = ""; diff --git a/lib/Category/Collection.php b/lib/Category/Collection.php index f32bedd..0b0564c 100644 --- a/lib/Category/Collection.php +++ b/lib/Category/Collection.php @@ -4,9 +4,9 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Category; +namespace MensBeam\Lax\Category; -class Collection extends \JKingWeb\Lax\Collection { +class Collection extends \MensBeam\Lax\Collection { protected static $ranks = [ 'webmaster' => 10, 'editor' => 20, diff --git a/lib/Collection.php b/lib/Collection.php index 68f01df..aa05c24 100644 --- a/lib/Collection.php +++ b/lib/Collection.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; abstract class Collection implements \IteratorAggregate, \ArrayAccess, \Countable, \JsonSerializable { protected $data = []; diff --git a/lib/Date.php b/lib/Date.php index c0dde50..4251355 100644 --- a/lib/Date.php +++ b/lib/Date.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; class Date extends \DateTimeImmutable implements \JsonSerializable { public static $supportedFormats = [ diff --git a/lib/Enclosure/Collection.php b/lib/Enclosure/Collection.php index 4b5ddaa..4cf7c72 100644 --- a/lib/Enclosure/Collection.php +++ b/lib/Enclosure/Collection.php @@ -4,9 +4,9 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Enclosure; +namespace MensBeam\Lax\Enclosure; -class Collection extends \JKingWeb\Lax\Collection { +class Collection extends \MensBeam\Lax\Collection { /** Returns the primary ("best") enclosure of the collection * diff --git a/lib/Enclosure/Enclosure.php b/lib/Enclosure/Enclosure.php index ffbef8c..d3e8628 100644 --- a/lib/Enclosure/Enclosure.php +++ b/lib/Enclosure/Enclosure.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Enclosure; +namespace MensBeam\Lax\Enclosure; class Enclosure { public $url; diff --git a/lib/Entry.php b/lib/Entry.php index e015098..eba506a 100644 --- a/lib/Entry.php +++ b/lib/Entry.php @@ -4,11 +4,11 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Enclosure\Collection as EnclosureCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Enclosure\Collection as EnclosureCollection; class Entry { /** @var string $id The persistent identifier of the entry. This is often identical to the URL of the entry, but the latter may change @@ -18,29 +18,29 @@ class Entry { public $id; /** @var string $lang The human language of the entry */ public $lang; - /** @var \JKingWeb\Lax\Url $link The URL of the entry as published somwehere else, usually on the World Wide Web */ + /** @var \MensBeam\Lax\Url $link The URL of the entry as published somwehere else, usually on the World Wide Web */ public $link; - /** @var \JKingWeb\Lax\Url $relatedLink The URL of an article related to the entry. For example, if the entry is a commentary on an essay, this property might provide the URL of that essay */ + /** @var \MensBeam\Lax\Url $relatedLink The URL of an article related to the entry. For example, if the entry is a commentary on an essay, this property might provide the URL of that essay */ public $relatedLink; - /** @var \JKingWeb\Lax\Text $title The title of the entry */ + /** @var \MensBeam\Lax\Text $title The title of the entry */ public $title; - /** @var \JKingWeb\Lax\Text $content The content of the entry + /** @var \MensBeam\Lax\Text $content The content of the entry * * This may be merely a summary or excerpt for many newsfeeds */ public $content; - /** @var \JKingWeb\Lax\Text $summary A short summary or excerpt of the entry, distinct from the content */ + /** @var \MensBeam\Lax\Text $summary A short summary or excerpt of the entry, distinct from the content */ public $summary; - /** @var \JKingWeb\Lax\Date $dateCreated The date and time at which the entry was first made available */ + /** @var \MensBeam\Lax\Date $dateCreated The date and time at which the entry was first made available */ public $dateCreated; - /** @var \JKingWeb\Lax\Date $dateModified The date and time at which the entry was last modified */ + /** @var \MensBeam\Lax\Date $dateModified The date and time at which the entry was last modified */ public $dateModified; - /** @var \JKingWeb\Lax\Url $banner The URL of an image to use as a banner. Only applicable to JSON Feed documents */ + /** @var \MensBeam\Lax\Url $banner The URL of an image to use as a banner. Only applicable to JSON Feed documents */ public $banner; - /** @var \JKingWeb\Lax\Category\Collection $categories The set of categories associated with the entry */ + /** @var \MensBeam\Lax\Category\Collection $categories The set of categories associated with the entry */ public $categories; - /** @var \JKingWeb\Lax\Person\Collection $people The set of people (authors, contributors, etc) associated with the entry */ + /** @var \MensBeam\Lax\Person\Collection $people The set of people (authors, contributors, etc) associated with the entry */ public $people; - /** @var \JKingWeb\Lax\Enclosures\Collection $enclosures The set of external files (i.e. enclosuresor attachments) associated with the entry */ + /** @var \MensBeam\Lax\Enclosures\Collection $enclosures The set of external files (i.e. enclosuresor attachments) associated with the entry */ public $enclosures; public function __construct() { diff --git a/lib/Exception.php b/lib/Exception.php index cfc21bf..4c4c520 100644 --- a/lib/Exception.php +++ b/lib/Exception.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; abstract class Exception extends \Exception { public const SYMBOLS = [ diff --git a/lib/Feed.php b/lib/Feed.php index 3a827e2..6823086 100644 --- a/lib/Feed.php +++ b/lib/Feed.php @@ -4,10 +4,10 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Person\Collection as PersonCollection; /** Represents a newsfeed, in arbitrary format * @@ -39,32 +39,32 @@ class Feed { public $id; /** @var string $url The feed's canonical URL. This may differ from the URL used to fetch the newsfeed */ public $url; - /** @var \JKingWeb\Lax\Url $link The URL of the Web page associated with the feed */ + /** @var \MensBeam\Lax\Url $link The URL of the Web page associated with the feed */ public $link; - /** @var \JKingWeb\Lax\Text $title The title of the newsfeed */ + /** @var \MensBeam\Lax\Text $title The title of the newsfeed */ public $title; - /** @var \JKingWeb\Lax\Text $summary A short description or summary of the newsfeed */ + /** @var \MensBeam\Lax\Text $summary A short description or summary of the newsfeed */ public $summary; - /** @var \JKingWeb\Lax\Date $dateModified The date at which the newsfeed was last modified + /** @var \MensBeam\Lax\Date $dateModified The date at which the newsfeed was last modified * * This property only records a date embedded in the newsfeed itself, not any dates from HTTP or the file system */ public $dateModified; - /** @var \JKingWeb\Lax\Url $icon URL to a small icon for the newsfeed */ + /** @var \MensBeam\Lax\Url $icon URL to a small icon for the newsfeed */ public $icon; - /** @var \JKingWeb\Lax\Url $image URL to a large banner or poster image for the newsfeed */ + /** @var \MensBeam\Lax\Url $image URL to a large banner or poster image for the newsfeed */ public $image; - /** @var \JKingWeb\Lax\Category\Collection $categories A list of categories associated with the newsfeed as a whole */ + /** @var \MensBeam\Lax\Category\Collection $categories A list of categories associated with the newsfeed as a whole */ public $categories; - /** @var \JKingWeb\Lax\Person\Collection $people A list of people (e.g. authors, contributors) associated with the newsfeed as a whole */ + /** @var \MensBeam\Lax\Person\Collection $people A list of people (e.g. authors, contributors) associated with the newsfeed as a whole */ public $people; - /** @var \JKingWeb\Lax\Entry[] $entries An array of the newsfeed's entries */ + /** @var \MensBeam\Lax\Entry[] $entries An array of the newsfeed's entries */ public $entries = []; - /** @var \JKingWeb\Lax\Metadata $meta A collection of metadata not contained in the feed itself, usually from HTTP */ + /** @var \MensBeam\Lax\Metadata $meta A collection of metadata not contained in the feed itself, usually from HTTP */ public $meta; - /** @var \JKingWeb\Lax\Schedule $sched A collection of data related to the publishing shedule of the newsfeed */ + /** @var \MensBeam\Lax\Schedule $sched A collection of data related to the publishing shedule of the newsfeed */ public $sched; public function __construct() { diff --git a/lib/Metadata.php b/lib/Metadata.php index d245777..2e36890 100644 --- a/lib/Metadata.php +++ b/lib/Metadata.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; class Metadata { public $url; diff --git a/lib/Parser/Construct.php b/lib/Parser/Construct.php index 2cb4a58..2b99d43 100644 --- a/lib/Parser/Construct.php +++ b/lib/Parser/Construct.php @@ -4,11 +4,11 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser; +namespace MensBeam\Lax\Parser; -use JKingWeb\Lax\Collection; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Url; +use MensBeam\Lax\Collection; +use MensBeam\Lax\Date; +use MensBeam\Lax\Url; trait Construct { /** Trims plain text and collapses whitespace */ diff --git a/lib/Parser/Entry.php b/lib/Parser/Entry.php index 1eb5a1d..e377798 100644 --- a/lib/Parser/Entry.php +++ b/lib/Parser/Entry.php @@ -4,14 +4,14 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser; - -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Enclosure\Collection as EnclosureCollection; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Url; +namespace MensBeam\Lax\Parser; + +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Enclosure\Collection as EnclosureCollection; +use MensBeam\Lax\Date; +use MensBeam\Lax\Text; +use MensBeam\Lax\Url; interface Entry { /** Returns the globally unique identifier of the entry; this is usually a URI */ diff --git a/lib/Parser/Exception.php b/lib/Parser/Exception.php index 338079c..0c1f8d3 100644 --- a/lib/Parser/Exception.php +++ b/lib/Parser/Exception.php @@ -4,9 +4,9 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser; +namespace MensBeam\Lax\Parser; -use JKingWeb\Lax\Exception as BaseException; +use MensBeam\Lax\Exception as BaseException; class Exception extends BaseException { } diff --git a/lib/Parser/Feed.php b/lib/Parser/Feed.php index 1ad176b..c398acd 100644 --- a/lib/Parser/Feed.php +++ b/lib/Parser/Feed.php @@ -4,14 +4,14 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser; +namespace MensBeam\Lax\Parser; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Feed as FeedStruct; -use JKingWeb\Lax\Url; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Date; +use MensBeam\Lax\Text; +use MensBeam\Lax\Feed as FeedStruct; +use MensBeam\Lax\Url; interface Feed { /** Returns the globally unique identifier of the newsfeed; this is usually a URI */ @@ -49,7 +49,7 @@ interface Feed { /** Returns the list of entries * - * @param \JKingWeb\Lax\Feed $feed The newsfeed to which the entry belongs. Some data from the newsfeed may be used in parsing the entry + * @param \MensBeam\Lax\Feed $feed The newsfeed to which the entry belongs. Some data from the newsfeed may be used in parsing the entry */ public function getEntries(FeedStruct $feed = null): array; diff --git a/lib/Parser/JSON/Construct.php b/lib/Parser/JSON/Construct.php index 7a48a6e..f78c653 100644 --- a/lib/Parser/JSON/Construct.php +++ b/lib/Parser/JSON/Construct.php @@ -4,16 +4,16 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\JSON; +namespace MensBeam\Lax\Parser\JSON; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Person\Person; -use JKingWeb\Lax\Url; +use MensBeam\Lax\Date; +use MensBeam\Lax\Text; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Person\Person; +use MensBeam\Lax\Url; trait Construct { - use \JKingWeb\Lax\Parser\Construct; + use \MensBeam\Lax\Parser\Construct; /** Returns an object member if the member exists and is of the expected type * diff --git a/lib/Parser/JSON/Entry.php b/lib/Parser/JSON/Entry.php index 17d5b36..ee1781f 100644 --- a/lib/Parser/JSON/Entry.php +++ b/lib/Parser/JSON/Entry.php @@ -4,24 +4,24 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\JSON; - -use JKingWeb\Lax\Feed as FeedStruct; -use JKingWeb\Lax\Entry as EntryStruct; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Enclosure\Collection as EnclosureCollection; -use JKingWeb\Lax\Category\Category; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Enclosure\Enclosure; -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Url; - -class Entry implements \JKingWeb\Lax\Parser\Entry { +namespace MensBeam\Lax\Parser\JSON; + +use MensBeam\Lax\Feed as FeedStruct; +use MensBeam\Lax\Entry as EntryStruct; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Enclosure\Collection as EnclosureCollection; +use MensBeam\Lax\Category\Category; +use MensBeam\Lax\Date; +use MensBeam\Lax\Enclosure\Enclosure; +use MensBeam\Lax\Text; +use MensBeam\Lax\Url; + +class Entry implements \MensBeam\Lax\Parser\Entry { use Construct; protected $url; - /** @var \JKingWeb\Lax\Feed */ + /** @var \MensBeam\Lax\Feed */ protected $feed; /** @var \Mimey\MimeTypes */ protected $mime; diff --git a/lib/Parser/JSON/Feed.php b/lib/Parser/JSON/Feed.php index 55ed946..2aeea21 100644 --- a/lib/Parser/JSON/Feed.php +++ b/lib/Parser/JSON/Feed.php @@ -4,18 +4,18 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\JSON; - -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Feed as FeedStruct; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Parser\Exception; -use JKingWeb\Lax\Parser\JSON\Entry as EntryParser; -use JKingWeb\Lax\Url; - -class Feed implements \JKingWeb\Lax\Parser\Feed { +namespace MensBeam\Lax\Parser\JSON; + +use MensBeam\Lax\Text; +use MensBeam\Lax\Date; +use MensBeam\Lax\Feed as FeedStruct; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Parser\Exception; +use MensBeam\Lax\Parser\JSON\Entry as EntryParser; +use MensBeam\Lax\Url; + +class Feed implements \MensBeam\Lax\Parser\Feed { use Construct; protected const MIME_TYPES = [ diff --git a/lib/Parser/XML/Construct.php b/lib/Parser/XML/Construct.php index 7b6f40f..f318f1d 100644 --- a/lib/Parser/XML/Construct.php +++ b/lib/Parser/XML/Construct.php @@ -4,15 +4,15 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\XML; +namespace MensBeam\Lax\Parser\XML; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Person\Person; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Text; +use MensBeam\Lax\Date; +use MensBeam\Lax\Person\Person; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Text; trait Construct { - use \JKingWeb\Lax\Parser\Construct; + use \MensBeam\Lax\Parser\Construct; /** @var \DOMDocument */ protected $document; diff --git a/lib/Parser/XML/Entry.php b/lib/Parser/XML/Entry.php index 5bb5d9e..00acc69 100644 --- a/lib/Parser/XML/Entry.php +++ b/lib/Parser/XML/Entry.php @@ -4,16 +4,16 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\XML; +namespace MensBeam\Lax\Parser\XML; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Enclosure\Collection as EnclosureCollection; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Url; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Enclosure\Collection as EnclosureCollection; +use MensBeam\Lax\Date; +use MensBeam\Lax\Text; +use MensBeam\Lax\Url; -class Entry implements \JKingWeb\Lax\Parser\Entry { +class Entry implements \MensBeam\Lax\Parser\Entry { use Construct; use Primitives\Construct; use Primitives\Entry; @@ -31,8 +31,8 @@ class Entry implements \JKingWeb\Lax\Parser\Entry { } /** Parses the feed to extract sundry metadata */ - protected function parse(\DOMElement $data, \JKingWeb\Lax\Feed $feed): \JKingWeb\Lax\Entry { - $entry = new \JKingWeb\Lax\Entry; + protected function parse(\DOMElement $data, \MensBeam\Lax\Feed $feed): \MensBeam\Lax\Entry { + $entry = new \MensBeam\Lax\Entry; $entry->id = $this->getId(); $entry->link = $this->getLink(); $entry->relatedLink = $this->getRelatedLink(); diff --git a/lib/Parser/XML/Feed.php b/lib/Parser/XML/Feed.php index 45a1000..9ebccf6 100644 --- a/lib/Parser/XML/Feed.php +++ b/lib/Parser/XML/Feed.php @@ -4,16 +4,16 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\XML; +namespace MensBeam\Lax\Parser\XML; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Feed as FeedStruct; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Url; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Feed as FeedStruct; +use MensBeam\Lax\Date; +use MensBeam\Lax\Text; +use MensBeam\Lax\Url; -class Feed implements \JKingWeb\Lax\Parser\Feed { +class Feed implements \MensBeam\Lax\Parser\Feed { use Construct; use Primitives\Construct; use Primitives\Feed; @@ -22,7 +22,7 @@ class Feed implements \JKingWeb\Lax\Parser\Feed { protected $data; /** @var string */ protected $contentType; - /** @var \JKingWeb\Lax\Url */ + /** @var \MensBeam\Lax\Url */ protected $url; /** @var \DOMElement */ protected $subject; diff --git a/lib/Parser/XML/Primitives/Construct.php b/lib/Parser/XML/Primitives/Construct.php index 3cbd9a2..66dde8b 100644 --- a/lib/Parser/XML/Primitives/Construct.php +++ b/lib/Parser/XML/Primitives/Construct.php @@ -4,16 +4,16 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\XML\Primitives; - -use JKingWeb\Lax\Person\Person; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Category\Category; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Parser\XML\Entry as FeedEntry; -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Url; +namespace MensBeam\Lax\Parser\XML\Primitives; + +use MensBeam\Lax\Person\Person; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Category; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Date; +use MensBeam\Lax\Parser\XML\Entry as FeedEntry; +use MensBeam\Lax\Text; +use MensBeam\Lax\Url; trait Construct { /** Primitive to fetch an Atom feed/entry title diff --git a/lib/Parser/XML/Primitives/Entry.php b/lib/Parser/XML/Primitives/Entry.php index 158b825..6b9a92b 100644 --- a/lib/Parser/XML/Primitives/Entry.php +++ b/lib/Parser/XML/Primitives/Entry.php @@ -4,9 +4,9 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\XML\Primitives; +namespace MensBeam\Lax\Parser\XML\Primitives; -use JKingWeb\Lax\Parser\XML\XPath; +use MensBeam\Lax\Parser\XML\XPath; trait Entry { /** Primitive to fetch a collection of authors associated with an Atom entry diff --git a/lib/Parser/XML/Primitives/Feed.php b/lib/Parser/XML/Primitives/Feed.php index 6057bc1..e221d05 100644 --- a/lib/Parser/XML/Primitives/Feed.php +++ b/lib/Parser/XML/Primitives/Feed.php @@ -4,9 +4,9 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\XML\Primitives; +namespace MensBeam\Lax\Parser\XML\Primitives; -use JKingWeb\Lax\Parser\XML\XPath; +use MensBeam\Lax\Parser\XML\XPath; trait Feed { /** Primitive to fetch an Atom feed summary diff --git a/lib/Parser/XML/XPath.php b/lib/Parser/XML/XPath.php index 6607c10..1d40a09 100644 --- a/lib/Parser/XML/XPath.php +++ b/lib/Parser/XML/XPath.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Parser\XML; +namespace MensBeam\Lax\Parser\XML; class XPath extends \DOMXpath { public const NS = [ diff --git a/lib/Person/Collection.php b/lib/Person/Collection.php index 9cb499a..875c97f 100644 --- a/lib/Person/Collection.php +++ b/lib/Person/Collection.php @@ -4,9 +4,9 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Person; +namespace MensBeam\Lax\Person; -class Collection extends \JKingWeb\Lax\Collection { +class Collection extends \MensBeam\Lax\Collection { protected static $ranks = [ 'contributor' => -10, 'webmaster' => 10, diff --git a/lib/Person/Person.php b/lib/Person/Person.php index 633b78c..02c6eb1 100644 --- a/lib/Person/Person.php +++ b/lib/Person/Person.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\Person; +namespace MensBeam\Lax\Person; class Person { public $name = null; diff --git a/lib/Sanitizer.php b/lib/Sanitizer.php index 41d601f..6f18ce1 100644 --- a/lib/Sanitizer.php +++ b/lib/Sanitizer.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; class Sanitizer { /** @var string[] An array of namespace URIs (the keys) and prefixes (the values). The prefixes are used in the element and attribute lists that follow */ diff --git a/lib/Schedule.php b/lib/Schedule.php index 1128911..de9c694 100644 --- a/lib/Schedule.php +++ b/lib/Schedule.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; class Schedule { public $expired; diff --git a/lib/Text.php b/lib/Text.php index 7b67364..bf87b2e 100644 --- a/lib/Text.php +++ b/lib/Text.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; class Text { public $plain; diff --git a/lib/Url.php b/lib/Url.php index 8bff3f2..98cd5ac 100644 --- a/lib/Url.php +++ b/lib/Url.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; use Psr\Http\Message\UriInterface; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index c4dd5bd..89265a6 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax; +namespace MensBeam\Lax; const NS_BASE = __NAMESPACE__."\\"; define(NS_BASE."BASE", dirname(__DIR__).DIRECTORY_SEPARATOR); diff --git a/tests/cases/JSON/JSONTest.php b/tests/cases/JSON/JSONTest.php index b5e72d5..590b4d8 100644 --- a/tests/cases/JSON/JSONTest.php +++ b/tests/cases/JSON/JSONTest.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace JKingWeb\Lax\TestCase\JSON; +namespace MensBeam\Lax\TestCase\JSON; /* Test format is as follows: @@ -35,26 +35,26 @@ namespace JKingWeb\Lax\TestCase\JSON; */ -use JKingWeb\Lax\Date; -use JKingWeb\Lax\Feed; -use JKingWeb\Lax\Entry; -use JKingWeb\Lax\Text; -use JKingWeb\Lax\Url; -use JKingWeb\Lax\Parser\Exception; -use JKingWeb\Lax\Parser\JSON\Feed as Parser; -use JKingWeb\Lax\Person\Person; -use JKingWeb\Lax\Category\Category; -use JKingWeb\Lax\Enclosure\Enclosure; -use JKingWeb\Lax\Person\Collection as PersonCollection; -use JKingWeb\Lax\Category\Collection as CategoryCollection; -use JKingWeb\Lax\Enclosure\Collection as EnclosureCollection; +use MensBeam\Lax\Date; +use MensBeam\Lax\Feed; +use MensBeam\Lax\Entry; +use MensBeam\Lax\Text; +use MensBeam\Lax\Url; +use MensBeam\Lax\Parser\Exception; +use MensBeam\Lax\Parser\JSON\Feed as Parser; +use MensBeam\Lax\Person\Person; +use MensBeam\Lax\Category\Category; +use MensBeam\Lax\Enclosure\Enclosure; +use MensBeam\Lax\Person\Collection as PersonCollection; +use MensBeam\Lax\Category\Collection as CategoryCollection; +use MensBeam\Lax\Enclosure\Collection as EnclosureCollection; use Symfony\Component\Yaml\Yaml; use Symfony\Component\Yaml\Parser as YamlParser; /** - * @covers JKingWeb\Lax\Parser\Construct - * @covers JKingWeb\Lax\Parser\JSON\Feed - * @covers JKingWeb\Lax\Parser\JSON\Entry + * @covers MensBeam\Lax\Parser\Construct + * @covers MensBeam\Lax\Parser\JSON\Feed + * @covers MensBeam\Lax\Parser\JSON\Entry */ class JSONTest extends \PHPUnit\Framework\TestCase { /** @dataProvider provideJSONFeedVersion1 */ diff --git a/tests/cases/Util/Url/AbstractUriTestCase.php b/tests/cases/Util/Url/AbstractUriTestCase.php index fdfb6d6..2a8818b 100644 --- a/tests/cases/Util/Url/AbstractUriTestCase.php +++ b/tests/cases/Util/Url/AbstractUriTestCase.php @@ -1,6 +1,6 @@ */ +/** @covers MensBeam\Lax\Url */ class UrlTest extends AbstractUriTestCase { protected function createUri($uri = '') { return new Url($uri); diff --git a/vendor-bin/phpunit/composer.lock b/vendor-bin/phpunit/composer.lock index 5319864..277e53b 100644 --- a/vendor-bin/phpunit/composer.lock +++ b/vendor-bin/phpunit/composer.lock @@ -267,16 +267,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.0.0", + "version": "5.1.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "a48807183a4b819072f26e347bbd0b5199a9d15f" + "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/a48807183a4b819072f26e347bbd0b5199a9d15f", - "reference": "a48807183a4b819072f26e347bbd0b5199a9d15f", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e", + "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e", "shasum": "" }, "require": { @@ -316,30 +316,29 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2020-02-09T09:16:15+00:00" + "time": "2020-02-22T12:28:44+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.0.1", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" + "reference": "7462d5f123dfc080dfdf26897032a6513644fc95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/7462d5f123dfc080dfdf26897032a6513644fc95", + "reference": "7462d5f123dfc080dfdf26897032a6513644fc95", "shasum": "" }, "require": { - "php": "^7.1", + "php": "^7.2", "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "ext-tokenizer": "^7.1", - "mockery/mockery": "~1", - "phpunit/phpunit": "^7.0" + "ext-tokenizer": "^7.2", + "mockery/mockery": "~1" }, "type": "library", "extra": { @@ -363,20 +362,20 @@ } ], "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "time": "2019-08-22T18:11:29+00:00" + "time": "2020-02-18T18:59:58+00:00" }, { "name": "phpspec/prophecy", - "version": "v1.10.2", + "version": "v1.10.3", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9" + "reference": "451c3cd1418cf640de218914901e51b064abb093" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/b4400efc9d206e83138e2bb97ed7f5b14b831cd9", - "reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", + "reference": "451c3cd1418cf640de218914901e51b064abb093", "shasum": "" }, "require": { @@ -426,20 +425,20 @@ "spy", "stub" ], - "time": "2020-01-20T15:57:02+00:00" + "time": "2020-03-05T15:02:03+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "8.0.0", + "version": "8.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "278b6e876467da2e6b5e5390a2310391618ebc10" + "reference": "31e94ccc084025d6abee0585df533eb3a792b96a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/278b6e876467da2e6b5e5390a2310391618ebc10", - "reference": "278b6e876467da2e6b5e5390a2310391618ebc10", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/31e94ccc084025d6abee0585df533eb3a792b96a", + "reference": "31e94ccc084025d6abee0585df533eb3a792b96a", "shasum": "" }, "require": { @@ -490,7 +489,7 @@ "testing", "xunit" ], - "time": "2020-02-07T06:03:55+00:00" + "time": "2020-02-19T13:41:19+00:00" }, { "name": "phpunit/php-file-iterator", @@ -992,16 +991,16 @@ }, { "name": "sebastian/environment", - "version": "5.0.0", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "fea125c3bf7cab63a909990133d425e5a0a61e40" + "reference": "9bffdefa7810031a165ddd6275da6a2c1f6f2dfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/fea125c3bf7cab63a909990133d425e5a0a61e40", - "reference": "fea125c3bf7cab63a909990133d425e5a0a61e40", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/9bffdefa7810031a165ddd6275da6a2c1f6f2dfb", + "reference": "9bffdefa7810031a165ddd6275da6a2c1f6f2dfb", "shasum": "" }, "require": { @@ -1041,7 +1040,7 @@ "environment", "hhvm" ], - "time": "2020-02-07T06:10:11+00:00" + "time": "2020-02-19T13:40:20+00:00" }, { "name": "sebastian/exporter", diff --git a/vendor-bin/robo/composer.lock b/vendor-bin/robo/composer.lock index 0a4cd1e..cd3f7f1 100644 --- a/vendor-bin/robo/composer.lock +++ b/vendor-bin/robo/composer.lock @@ -749,16 +749,16 @@ }, { "name": "symfony/console", - "version": "v4.4.4", + "version": "v4.4.5", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "f512001679f37e6a042b51897ed24a2f05eba656" + "reference": "4fa15ae7be74e53f6ec8c83ed403b97e23b665e9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/f512001679f37e6a042b51897ed24a2f05eba656", - "reference": "f512001679f37e6a042b51897ed24a2f05eba656", + "url": "https://api.github.com/repos/symfony/console/zipball/4fa15ae7be74e53f6ec8c83ed403b97e23b665e9", + "reference": "4fa15ae7be74e53f6ec8c83ed403b97e23b665e9", "shasum": "" }, "require": { @@ -821,20 +821,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2020-01-25T12:44:29+00:00" + "time": "2020-02-24T13:10:00+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.4.4", + "version": "v4.4.5", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "9e3de195e5bc301704dd6915df55892f6dfc208b" + "reference": "4ad8e149799d3128621a3a1f70e92b9897a8930d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9e3de195e5bc301704dd6915df55892f6dfc208b", - "reference": "9e3de195e5bc301704dd6915df55892f6dfc208b", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/4ad8e149799d3128621a3a1f70e92b9897a8930d", + "reference": "4ad8e149799d3128621a3a1f70e92b9897a8930d", "shasum": "" }, "require": { @@ -891,7 +891,7 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2020-01-10T21:54:01+00:00" + "time": "2020-02-04T09:32:40+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -953,7 +953,7 @@ }, { "name": "symfony/filesystem", - "version": "v4.4.4", + "version": "v4.4.5", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -1003,16 +1003,16 @@ }, { "name": "symfony/finder", - "version": "v4.4.4", + "version": "v4.4.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "3a50be43515590faf812fbd7708200aabc327ec3" + "reference": "ea69c129aed9fdeca781d4b77eb20b62cf5d5357" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/3a50be43515590faf812fbd7708200aabc327ec3", - "reference": "3a50be43515590faf812fbd7708200aabc327ec3", + "url": "https://api.github.com/repos/symfony/finder/zipball/ea69c129aed9fdeca781d4b77eb20b62cf5d5357", + "reference": "ea69c129aed9fdeca781d4b77eb20b62cf5d5357", "shasum": "" }, "require": { @@ -1048,7 +1048,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2020-01-04T13:00:46+00:00" + "time": "2020-02-14T07:42:58+00:00" }, { "name": "symfony/polyfill-ctype", @@ -1227,16 +1227,16 @@ }, { "name": "symfony/process", - "version": "v4.4.4", + "version": "v4.4.5", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "f5697ab4cb14a5deed7473819e63141bf5352c36" + "reference": "bf9166bac906c9e69fb7a11d94875e7ced97bcd7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/f5697ab4cb14a5deed7473819e63141bf5352c36", - "reference": "f5697ab4cb14a5deed7473819e63141bf5352c36", + "url": "https://api.github.com/repos/symfony/process/zipball/bf9166bac906c9e69fb7a11d94875e7ced97bcd7", + "reference": "bf9166bac906c9e69fb7a11d94875e7ced97bcd7", "shasum": "" }, "require": { @@ -1272,7 +1272,7 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2020-01-09T09:50:08+00:00" + "time": "2020-02-07T20:06:44+00:00" }, { "name": "symfony/service-contracts", @@ -1334,16 +1334,16 @@ }, { "name": "symfony/yaml", - "version": "v4.4.4", + "version": "v4.4.5", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "cd014e425b3668220adb865f53bff64b3ad21767" + "reference": "94d005c176db2080e98825d98e01e8b311a97a88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/cd014e425b3668220adb865f53bff64b3ad21767", - "reference": "cd014e425b3668220adb865f53bff64b3ad21767", + "url": "https://api.github.com/repos/symfony/yaml/zipball/94d005c176db2080e98825d98e01e8b311a97a88", + "reference": "94d005c176db2080e98825d98e01e8b311a97a88", "shasum": "" }, "require": { @@ -1389,7 +1389,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2020-01-21T11:12:16+00:00" + "time": "2020-02-03T10:46:43+00:00" } ], "aliases": [],