Skip to content

Commit e069dc9

Browse files
committed
code style fixes
1 parent 583fcec commit e069dc9

File tree

13 files changed

+44
-46
lines changed

13 files changed

+44
-46
lines changed

src/Adapters/Flickr.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
namespace Embed\Adapters;
66

7-
use Embed\Url;
87
use Embed\Request;
98
use Embed\Utils;
109

src/Adapters/Google.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getCode()
3232
if ($this->request->getHost() === 'drive.google.com') {
3333
return Utils::iframe($url->withDirectoryPosition(3, 'preview')->withQueryParameters([]));
3434
}
35-
35+
3636
return Utils::iframe($url->withQueryParameter('output', 'embed')->withQueryParameter('s', ''));
3737
}
3838

src/Adapters/Lavozdegalicia.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Embed\Adapters;
66

77
use Embed\Request;
8-
use Embed\Providers;
98

109
class Lavozdegalicia extends Webpage implements AdapterInterface
1110
{

src/Adapters/Line.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Embed\Utils;
88
use Embed\Request;
9-
use Embed\Url;
109

1110
class Line extends Webpage implements AdapterInterface
1211
{

src/Adapters/Spreaker.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Embed\Utils;
88
use Embed\Request;
9-
use Embed\Url;
109

1110
class Spreaker extends Webpage implements AdapterInterface
1211
{

src/Adapters/Youtube.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function run()
2626
{
2727
if ($this->request->getHttpCode() === 429) {
2828
$this->addProvider('oembed', new Providers\OEmbed());
29+
2930
return;
3031
}
3132

src/Providers/OEmbed.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ protected static function getEndPointFromRequest(Request $request, array $config
259259
*
260260
* @return string
261261
*/
262-
protected static function getClassFromRequest(Request $request) {
262+
protected static function getClassFromRequest(Request $request)
263+
{
263264
return 'Embed\\Providers\\OEmbed\\'.str_replace(' ', '', ucwords(strtolower(str_replace('-', ' ', $request->getDomain()))));
264265
}
265266

@@ -268,10 +269,11 @@ protected static function getClassFromRequest(Request $request) {
268269
*
269270
* @return bool
270271
*/
271-
protected static function providerEmbedInDomIsBroken(Request $request) {
272-
$class = self::getClassFromRequest( $request );
272+
protected static function providerEmbedInDomIsBroken(Request $request)
273+
{
274+
$class = self::getClassFromRequest($request);
273275

274-
if ( class_exists( $class ) && $request->match( $class::getPatterns() ) ) {
276+
if (class_exists($class) && $request->match($class::getPatterns())) {
275277
return $class::embedInDomIsBroken();
276278
}
277279

src/Providers/OEmbed/WordPress.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99
*/
1010
class WordPress extends OEmbedImplementation
1111
{
12-
/**
13-
* {@inheritdoc}
14-
*/
15-
public static function getEndPoint()
16-
{
17-
return 'https://wordpress.tv/oembed';
18-
}
12+
/**
13+
* {@inheritdoc}
14+
*/
15+
public static function getEndPoint()
16+
{
17+
return 'https://wordpress.tv/oembed';
18+
}
1919

20-
/**
21-
* {@inheritdoc}
22-
*/
23-
public static function getPatterns()
24-
{
25-
return ['https?://wordpress.tv/*'];
26-
}
20+
/**
21+
* {@inheritdoc}
22+
*/
23+
public static function getPatterns()
24+
{
25+
return ['https?://wordpress.tv/*'];
26+
}
2727

28-
/**
29-
* {@inheritdoc}
30-
*/
31-
public static function embedInDomIsBroken()
32-
{
33-
return true;
34-
}
28+
/**
29+
* {@inheritdoc}
30+
*/
31+
public static function embedInDomIsBroken()
32+
{
33+
return true;
34+
}
3535
}

src/Providers/OEmbed/Youtube.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ public static function getPatterns()
2020
'https?://*youtube.*',
2121
];
2222
}
23-
24-
}
23+
}

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function getXMLContent()
240240

241241
/**
242242
* Check if the response is valid or not
243-
*
243+
*
244244
* @param array $validCodes
245245
*
246246
* @return boolean True if it's valid, false if not

0 commit comments

Comments
 (0)