Skip to content

Commit 7a27209

Browse files
committed
psr-1/2 fixes
1 parent f99fff0 commit 7a27209

File tree

6 files changed

+9
-16
lines changed

6 files changed

+9
-16
lines changed

src/Adapters/Giphy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function getCode()
2626
{
2727
if (($url = $this->providers['TwitterCards']->get('player'))) {
2828
$url = str_replace('/twitter/iframe', '?html5=true', $url);
29+
2930
return Viewers::iframe($url, $this->width.'px', $this->height.'px');
3031
}
3132
}

src/Adapters/Mit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function getCode()
2626
{
2727
$url = $this->getUrl();
2828
$url = preg_replace('|(/watch/[\w-]+)-([\d]+)|', '/embed/$2', $url);
29+
2930
return Viewers::iframe($url, $this->getWidth(), $this->getHeight());
3031
}
3132

src/Embed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Embed
66
/**
77
* Gets the info from an url
88
*
9-
* @param string|Request $request The url or a request with the url
9+
* @param string|Request $request The url or a request with the url
1010
* @param null|array $options Options passed to the adapter
1111
*
1212
* @return false|Adapters\AdapterInterface
@@ -50,7 +50,7 @@ public static function create($request, array $options = null)
5050
/**
5151
* Gets the info from a source (list of urls)
5252
*
53-
* @param string|Request $url The url or a request with the source url
53+
* @param string|Request $url The url or a request with the source url
5454
* @param null|array $options Options passed to the adapter
5555
*
5656
* @return false|Sources\SourceInterface

src/Providers/Facebook.php

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

99
class Facebook extends Provider
1010
{
11-
1211
/**
1312
* Constructor
1413
*
@@ -28,7 +27,6 @@ public function __construct(Request $request)
2827
}
2928
}
3029

31-
3230
/**
3331
* Gets the title
3432
*

src/Request.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
namespace Embed;
66

7-
use Embed\Url;
87

98
class Request
109
{
@@ -18,13 +17,12 @@ class Request
1817
private $jsonContent;
1918
private $htmlContent;
2019

21-
2220
/**
2321
* Constructor. Sets the url
2422
*
25-
* @param Url $url The Url instance
26-
* @param null|string $resolverClass The resolver classname
27-
* @param null|array $resolverConfig The resolver configuration
23+
* @param Url $url The Url instance
24+
* @param null|string $resolverClass The resolver classname
25+
* @param null|array $resolverConfig The resolver configuration
2826
*/
2927
public function __construct(Url $url, $resolverClass = null, array $resolverConfig = null)
3028
{
@@ -39,7 +37,6 @@ public function __construct(Url $url, $resolverClass = null, array $resolverConf
3937
$this->startingUrl = $url;
4038
}
4139

42-
4340
/**
4441
* Magic method to retrieve the resolver an url in lazy mode
4542
*/
@@ -56,18 +53,16 @@ public function __get($name)
5653
}
5754
}
5855

59-
6056
/**
6157
* Creates a new request with the same configuration than this
6258
*
63-
* @param string $url The url string
59+
* @param string $url The url string
6460
*/
6561
public function createRequest($url)
6662
{
6763
return new Request(new Url($url), $this->resolverClass, $this->resolverConfig);
6864
}
6965

70-
7166
/**
7267
* Set the url resolver class used for http requests
7368
*
@@ -98,7 +93,6 @@ public function setResolverConfig(array $config)
9893
$this->resolverConfig = $config;
9994
}
10095

101-
10296
/**
10397
* Clear the cache of the response
10498
*
@@ -132,7 +126,6 @@ public function getRequestInfo()
132126
return $this->resolver->getRequestInfo();
133127
}
134128

135-
136129
/**
137130
* Get the http code of the url
138131
*

src/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function getParameter($name)
224224
* Set a new GET parameter or modify an existing one
225225
*
226226
* @param string|array $name The parameter name or an array of parameters
227-
* @param string $value The parameter value
227+
* @param string $value The parameter value
228228
*/
229229
public function setParameter($name, $value = null)
230230
{

0 commit comments

Comments
 (0)