Skip to content

Commit 374fb4e

Browse files
committed
php-cs-fixer
1 parent a2b3f1b commit 374fb4e

File tree

7 files changed

+4
-7
lines changed

7 files changed

+4
-7
lines changed

demo/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function printCode($code, $asHtml = true)
141141
<h1>Result:</h1>
142142

143143
<?php
144-
try {
144+
try {
145145
$info = Embed\Embed::create(get('url'));
146146
} catch (Exception $exception) {
147147
echo '<p>'.$exception->getMessage().'</p>';

src/Adapters/Adapter.php

-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ public function getImage()
356356
}
357357

358358
$images = [$images];
359-
360359
} else {
361360
$images = Utils::sortByProviders($this->images);
362361
}

src/Adapters/Facebook.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function getCode()
145145
public function getWidth()
146146
{
147147
if ($this->isPost) {
148-
return 500;
148+
return 500;
149149
}
150150
}
151151

src/Adapters/Flickr.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Flickr extends Webpage implements AdapterInterface
1616
public static function check(Request $request)
1717
{
1818
return $request->match([
19-
'https://www.flickr.com/photos/*'
19+
'https://www.flickr.com/photos/*',
2020
]);
2121
}
2222

src/Adapters/Wikipedia.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function run()
6464
* Gets the page info from wikipedia api
6565
*
6666
* @param string $key
67-
*
67+
*
6868
* @return string|null
6969
*/
7070
private function getPageInfo($key)

src/Exceptions/EmbedException.php

-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55

66
class EmbedException extends Exception
77
{
8-
98
}

src/Exceptions/InvalidUrlException.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33

44
class InvalidUrlException extends EmbedException
55
{
6-
76
}

0 commit comments

Comments
 (0)