Skip to content

Commit d1941fb

Browse files
committed
some fixes
1 parent 9b12864 commit d1941fb

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

demo/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ini_set('display_errors', '1');
33
ini_set('display_startup_errors', '1');
44

5-
include('../Embed/autoloader.php');
5+
include('../src/autoloader.php');
66
?>
77

88
<!DOCTYPE html>

demo/sources.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
<?php include('../Embed/autoloader.php'); ?>
1+
<?php
2+
ini_set('display_errors', '1');
3+
ini_set('display_startup_errors', '1');
4+
5+
include('../src/autoloader.php');
6+
?>
27

38
<!DOCTYPE html>
49

src/Adapters/Github.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
class Github extends Webpage implements AdapterInterface
1111
{
12+
public $api;
13+
1214
/**
1315
* {@inheritDoc}
1416
*/

src/Providers/Provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public function set($name, $value = null)
2424
}
2525

2626
/**
27-
* Get a value or null if not exists
27+
* Get a value, all values or null if not exists
2828
*
2929
* @param null|string $name Value name
3030
* @param null|string $subname A subvalue name
3131
*
32-
* @return string|null
32+
* @return string|array|null
3333
*/
3434
public function get($name = null, $subname = null)
3535
{

src/Request.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function getHttpCode()
124124
/**
125125
* Get the content-type of the url
126126
*
127-
* @return string The content-type header or null
127+
* @return string|null The content-type header or null
128128
*/
129129
public function getMimeType()
130130
{
@@ -134,7 +134,7 @@ public function getMimeType()
134134
/**
135135
* Get the content of the url
136136
*
137-
* @return string The content or false
137+
* @return string|false The content or false
138138
*/
139139
public function getContent()
140140
{
@@ -144,7 +144,7 @@ public function getContent()
144144
/**
145145
* Get the content of the url as a DOMDocument object
146146
*
147-
* @return \DOMDocument The content or false
147+
* @return \DOMDocument|false
148148
*/
149149
public function getHtmlContent()
150150
{

0 commit comments

Comments
 (0)