Browse Source

Change namespace to MensBeam

master
J. King 4 years ago
parent
commit
335da1b00d
  1. 23
      composer.json
  2. 7
      composer.lock
  3. 2
      lib/Category/Category.php
  4. 4
      lib/Category/Collection.php
  5. 2
      lib/Collection.php
  6. 2
      lib/Date.php
  7. 4
      lib/Enclosure/Collection.php
  8. 2
      lib/Enclosure/Enclosure.php
  9. 30
      lib/Entry.php
  10. 2
      lib/Exception.php
  11. 28
      lib/Feed.php
  12. 2
      lib/Metadata.php
  13. 8
      lib/Parser/Construct.php
  14. 16
      lib/Parser/Entry.php
  15. 4
      lib/Parser/Exception.php
  16. 16
      lib/Parser/Feed.php
  17. 14
      lib/Parser/JSON/Construct.php
  18. 30
      lib/Parser/JSON/Entry.php
  19. 24
      lib/Parser/JSON/Feed.php
  20. 12
      lib/Parser/XML/Construct.php
  21. 20
      lib/Parser/XML/Entry.php
  22. 18
      lib/Parser/XML/Feed.php
  23. 20
      lib/Parser/XML/Primitives/Construct.php
  24. 4
      lib/Parser/XML/Primitives/Entry.php
  25. 4
      lib/Parser/XML/Primitives/Feed.php
  26. 2
      lib/Parser/XML/XPath.php
  27. 4
      lib/Person/Collection.php
  28. 2
      lib/Person/Person.php
  29. 2
      lib/Sanitizer.php
  30. 2
      lib/Schedule.php
  31. 2
      lib/Text.php
  32. 2
      lib/Url.php
  33. 2
      tests/bootstrap.php
  34. 34
      tests/cases/JSON/JSONTest.php
  35. 2
      tests/cases/Util/Url/AbstractUriTestCase.php
  36. 8
      tests/cases/Util/UrlTest.php
  37. 57
      vendor-bin/phpunit/composer.lock
  38. 52
      vendor-bin/robo/composer.lock

23
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/"
}
}
}

7
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"
}
}

2
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 = "";

4
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,

2
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 = [];

2
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 = [

4
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
*

2
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;

30
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() {

2
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 = [

28
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() {

2
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;

8
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 */

16
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 */

4
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 {
}

16
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;

14
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
*

30
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;

24
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 = [

12
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;

20
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();

18
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;

20
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

4
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

4
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

2
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 = [

4
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,

2
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;

2
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 */

2
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;

2
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;

2
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;

2
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);

34
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<extended>
* @covers JKingWeb\Lax\Parser\JSON\Feed<extended>
* @covers JKingWeb\Lax\Parser\JSON\Entry<extended>
* @covers MensBeam\Lax\Parser\Construct<extended>
* @covers MensBeam\Lax\Parser\JSON\Feed<extended>
* @covers MensBeam\Lax\Parser\JSON\Entry<extended>
*/
class JSONTest extends \PHPUnit\Framework\TestCase {
/** @dataProvider provideJSONFeedVersion1 */

2
tests/cases/Util/Url/AbstractUriTestCase.php

@ -1,6 +1,6 @@
<?php
namespace JKingWeb\Lax\TestCase\Util\Url;
namespace MensBeam\Lax\TestCase\Util\Url;
use Psr\Http\Message\UriInterface;
use PHPUnit\Framework\TestCase;

8
tests/cases/Util/UrlTest.php

@ -4,12 +4,12 @@
* See LICENSE and AUTHORS files for details */
declare(strict_types=1);
namespace JKingWeb\Lax\TestCase\Util;
namespace MensBeam\Lax\TestCase\Util;
use JKingWeb\Lax\Url;
use JKingWeb\Lax\TestCase\Util\Url\AbstractUriTestCase;
use MensBeam\Lax\Url;
use MensBeam\Lax\TestCase\Util\Url\AbstractUriTestCase;
/** @covers JKingWeb\Lax\Url<extended> */
/** @covers MensBeam\Lax\Url<extended> */
class UrlTest extends AbstractUriTestCase {
protected function createUri($uri = '') {
return new Url($uri);

57
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",

52
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": [],

Loading…
Cancel
Save