projects
/
m6w6
/
seekat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
8f7bfbf
)
finalize classes
author
Michael Wallner
<mike@php.net>
Mon, 16 Jan 2017 08:35:24 +0000
(09:35 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 16 Jan 2017 08:35:24 +0000
(09:35 +0100)
lib/API/Call.php
patch
|
blob
|
history
lib/API/Call/Cache.php
patch
|
blob
|
history
lib/API/Call/Deferred.php
patch
|
blob
|
history
lib/API/Consumer.php
patch
|
blob
|
history
lib/API/ContentType.php
patch
|
blob
|
history
lib/API/Iterator.php
patch
|
blob
|
history
lib/API/Links.php
patch
|
blob
|
history
diff --git
a/lib/API/Call.php
b/lib/API/Call.php
index d84a24c673f71e438d2a5bb60cb14fceb28124aa..f10d6e81328f79373f168fe9e41616129b22d95e 100644
(file)
--- a/
lib/API/Call.php
+++ b/
lib/API/Call.php
@@
-7,7
+7,7
@@
use React\Promise\ExtendedPromiseInterface;
use seekat\API;
use seekat\Exception;
use seekat\API;
use seekat\Exception;
-class Call
+
final
class Call
{
/**
* @var API
{
/**
* @var API
@@
-29,7
+29,7
@@
class Call
/* fetch resource, unless already localized, and try for {$method}_url */
if (!$this->api->exists($this->call)) {
/* fetch resource, unless already localized, and try for {$method}_url */
if (!$this->api->exists($this->call)) {
- $promise = $promise->otherwise(function
($error) use($args) {
+ $promise = $promise->otherwise(function($error) use($args) {
if ($this->api->exists($this->call."_url", $url)) {
$url = new Url(uri_template($url, (array)current($args)));
return $this->api->withUrl($url)->get(...$args);
if ($this->api->exists($this->call."_url", $url)) {
$url = new Url(uri_template($url, (array)current($args)));
return $this->api->withUrl($url)->get(...$args);
diff --git
a/lib/API/Call/Cache.php
b/lib/API/Call/Cache.php
index b80217297e76130eaf176a30efc477c42221fcf3..b6d062c7a69810e0a09cd9229a1155b92add50f5 100644
(file)
--- a/
lib/API/Call/Cache.php
+++ b/
lib/API/Call/Cache.php
@@
-9,7
+9,7
@@
use seekat\API\Call\Cache\Service;
use seekat\API\Call\Cache\Service\Hollow;
use seekat\API\Call\Cache\Service\Hollow;
-class Cache
+
final
class Cache
{
/**
* @var Service
{
/**
* @var Service
diff --git
a/lib/API/Call/Deferred.php
b/lib/API/Call/Deferred.php
index a01891f56531f72f90501f85be235b115878845c..7fc44de1ba607c50c36e22c4ee9c39fae130b887 100644
(file)
--- a/
lib/API/Call/Deferred.php
+++ b/
lib/API/Call/Deferred.php
@@
-6,12
+6,11
@@
use Exception;
use http\{
Client, Client\Request, Client\Response
};
use http\{
Client, Client\Request, Client\Response
};
-use React\Promise\ExtendedPromiseInterface;
use seekat\API;
use SplObserver;
use SplSubject;
use seekat\API;
use SplObserver;
use SplSubject;
-class Deferred extends \React\Promise\Deferred implements SplObserver
+
final
class Deferred extends \React\Promise\Deferred implements SplObserver
{
/**
* The response importer
{
/**
* The response importer
diff --git
a/lib/API/Consumer.php
b/lib/API/Consumer.php
index 5e72ef2a0aa91f9e362e44c0dcf52c9af474dcfe..6e677fe0dde7e3e1dde39f1ac6a80f1aab47b608 100644
(file)
--- a/
lib/API/Consumer.php
+++ b/
lib/API/Consumer.php
@@
-11,7
+11,7
@@
use React\Promise\{
function all
};
function all
};
-class Consumer extends Deferred
+
final
class Consumer extends Deferred
{
/**
* The HTTP client
{
/**
* The HTTP client
diff --git
a/lib/API/ContentType.php
b/lib/API/ContentType.php
index 4fccb9f4367362f3cd625a4942a78cfe5c40c077..3ce123d1024e391dc30eea192c6956e463631eb6 100644
(file)
--- a/
lib/API/ContentType.php
+++ b/
lib/API/ContentType.php
@@
-9,7
+9,7
@@
use http\{
Header, Message\Body
};
Header, Message\Body
};
-class ContentType
+
final
class ContentType
{
/**
* API version
{
/**
* API version
diff --git
a/lib/API/Iterator.php
b/lib/API/Iterator.php
index b2187478e3e1eb8835d53fea62d58e525ff9d879..33d5132f09b8dacae2610c71951aef6c01dc2f8f 100644
(file)
--- a/
lib/API/Iterator.php
+++ b/
lib/API/Iterator.php
@@
-6,7
+6,7
@@
use http\Url;
use Iterator as BaseIterator;
use seekat\API;
use Iterator as BaseIterator;
use seekat\API;
-class Iterator implements BaseIterator
+
final
class Iterator implements BaseIterator
{
/**
* The endpoint
{
/**
* The endpoint
diff --git
a/lib/API/Links.php
b/lib/API/Links.php
index 7022cda2c9ea8c85d27ad6a58cfd58b99bbea2dc..85d24bd2afe441d5d70ea7071029e0060f170973 100644
(file)
--- a/
lib/API/Links.php
+++ b/
lib/API/Links.php
@@
-11,7
+11,7
@@
use http\ {
};
use Serializable;
};
use Serializable;
-class Links implements Serializable
+
final
class Links implements Serializable
{
/**
* Parsed "Link" relations
{
/**
* Parsed "Link" relations