Skip to content

Commit fe8773a

Browse files
committed
class Sanity replaced by trait Strict
1 parent 9a9f7ab commit fe8773a

13 files changed

Lines changed: 43 additions & 25 deletions

File tree

src/Github/Api.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*
1313
* @author Miloslav Hůla (https://github.com/milo)
1414
*/
15-
class Api extends Sanity
15+
class Api
1616
{
17+
use Strict;
18+
1719
/** @var string */
1820
private $url = 'https://api.github.com';
1921

src/Github/Http/AbstractClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*
1313
* @author Miloslav Hůla (https://github.com/milo)
1414
*/
15-
abstract class AbstractClient extends Github\Sanity implements IClient
15+
abstract class AbstractClient implements IClient
1616
{
17+
use Github\Strict;
18+
1719
/** @var int[] will follow Location header on these response codes */
1820
public $redirectCodes = [
1921
Response::S301_MOVED_PERMANENTLY,

src/Github/Http/CachedClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
*
1414
* @author Miloslav Hůla (https://github.com/milo)
1515
*/
16-
class CachedClient extends Github\Sanity implements IClient
16+
class CachedClient implements IClient
1717
{
18+
use Github\Strict;
19+
1820
/** @var Storages\ICache|null */
1921
private $cache;
2022

src/Github/Http/Message.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*
1313
* @author Miloslav Hůla (https://github.com/milo)
1414
*/
15-
abstract class Message extends Github\Sanity
15+
abstract class Message
1616
{
17+
use Github\Strict;
18+
1719
/** @var array[name => value] */
1820
private $headers = [];
1921

src/Github/OAuth/Configuration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*
1313
* @author Miloslav Hůla (https://github.com/milo)
1414
*/
15-
class Configuration extends Github\Sanity
15+
class Configuration
1616
{
17+
use Github\Strict;
18+
1719
/** @var string */
1820
public $clientId;
1921

src/Github/OAuth/Login.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
*
1515
* @author Miloslav Hůla (https://github.com/milo)
1616
*/
17-
class Login extends Github\Sanity
17+
class Login
1818
{
19+
use Github\Strict;
20+
1921
/** @var string */
2022
private $authUrl = 'https://github.com/login/oauth/authorize';
2123

src/Github/OAuth/Token.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*
1313
* @author Miloslav Hůla (https://github.com/milo)
1414
*/
15-
class Token extends Github\Sanity
15+
class Token
1616
{
17+
use Github\Strict;
18+
1719
/** @var string */
1820
private $value;
1921

src/Github/Paginator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*
1313
* @author Miloslav Hůla (https://github.com/milo)
1414
*/
15-
class Paginator extends Sanity implements \Iterator
15+
class Paginator implements \Iterator
1616
{
17+
use Strict;
18+
1719
/** @var Api */
1820
private $api;
1921

src/Github/Storages/FileCache.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*
1313
* @author Miloslav Hůla (https://github.com/milo)
1414
*/
15-
class FileCache extends Github\Sanity implements ICache
15+
class FileCache implements ICache
1616
{
17+
use Github\Strict;
18+
1719
/** @var string */
1820
private $dir;
1921

src/Github/Storages/SessionStorage.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*
1313
* @author Miloslav Hůla (https://github.com/milo)
1414
*/
15-
class SessionStorage extends Github\Sanity implements ISessionStorage
15+
class SessionStorage implements ISessionStorage
1616
{
17+
use Github\Strict;
18+
1719
const SESSION_KEY = 'milo.github-api';
1820

1921
/** @var string */

0 commit comments

Comments
 (0)