Skip to content

Commit db841d7

Browse files
committed
php codestyle fixer
1 parent e72cfce commit db841d7

File tree

129 files changed

+384
-259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+384
-259
lines changed

src/Adapters/Adapter.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
2+
23
namespace Embed\Adapters;
34

45
use Embed\Url;
56
use Embed\Utils;
67
use Embed\Request;
78
use Embed\Providers\ProviderInterface;
8-
use Embed\ImageInfo;
99

1010
/**
11-
* Base class extended by all adapters
11+
* Base class extended by all adapters.
1212
*
1313
* @property Request $request
1414
* @property null|string $title
@@ -17,11 +17,11 @@
1717
* @property null|string $type
1818
* @property array $images
1919
* @property null|string $image
20-
* @property null|integer $imageWidth
21-
* @property null|integer $imageHeight
20+
* @property null|int $imageWidth
21+
* @property null|int $imageHeight
2222
* @property null|string $code
23-
* @property null|integer $width
24-
* @property null|integer $height
23+
* @property null|int $width
24+
* @property null|int $height
2525
* @property null|float $aspectRatio
2626
* @property null|string $authorName
2727
* @property null|string $authorUrl
@@ -76,7 +76,7 @@ public function __construct(Request $request, array $config = null)
7676
}
7777

7878
/**
79-
* Init the adapter
79+
* Init the adapter.
8080
*/
8181
protected function init()
8282
{
@@ -96,7 +96,7 @@ protected function init()
9696
}
9797

9898
/**
99-
* Get the request
99+
* Get the request.
100100
*
101101
* @return Request
102102
*/
@@ -106,7 +106,7 @@ public function getRequest()
106106
}
107107

108108
/**
109-
* Adds a new provider
109+
* Adds a new provider.
110110
*
111111
* @param string $name
112112
* @param ProviderInterface $provider
@@ -122,7 +122,7 @@ protected function addProvider($name, ProviderInterface $provider)
122122
}
123123

124124
/**
125-
* Get a provider
125+
* Get a provider.
126126
*
127127
* @param string $name
128128
*
@@ -134,7 +134,7 @@ public function getProvider($name)
134134
}
135135

136136
/**
137-
* Get all providers
137+
* Get all providers.
138138
*
139139
* @return array
140140
*/
@@ -145,7 +145,7 @@ public function getAllProviders()
145145

146146
/**
147147
* Magic method to execute and save the url data.
148-
* For example, on call $this->title, executes $this->getTitle()
148+
* For example, on call $this->title, executes $this->getTitle().
149149
*
150150
* @param string $name
151151
*

src/Adapters/AdapterInterface.php

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Interface used by all adapters
4+
* Interface used by all adapters.
45
*/
56
namespace Embed\Adapters;
67

@@ -10,11 +11,11 @@
1011
interface AdapterInterface extends DataInterface
1112
{
1213
/**
13-
* Checks whether the request is valid to this Adapter
14+
* Checks whether the request is valid to this Adapter.
1415
*
1516
* @param Request $request
1617
*
17-
* @return boolean
18+
* @return bool
1819
*/
1920
public static function check(Request $request);
2021

@@ -27,13 +28,13 @@ public static function check(Request $request);
2728
public function __construct(Request $request, array $config = null);
2829

2930
/**
30-
* Run the provider
31+
* Run the provider.
3132
*/
3233
public function run();
3334

3435
/**
3536
* Gets all icon provider urls found
36-
* It returns also the width, height and mime-type
37+
* It returns also the width, height and mime-type.
3738
*
3839
* @return array
3940
*/
@@ -42,45 +43,45 @@ public function getProviderIcons();
4243
/**
4344
* Gets the best icon provider
4445
* if $config['getBiggerIcon'] is true, returns the bigger image found
45-
* else, returns the first found
46+
* else, returns the first found.
4647
*
4748
* @return string|null
4849
*/
4950
public function getProviderIcon();
5051

5152
/**
5253
* Gets all images found in the webpage
53-
* It returns also the width, height and mime-type
54+
* It returns also the width, height and mime-type.
5455
*
5556
* @return array
5657
*/
5758
public function getImages();
5859

5960
/**
6061
* Gets the best image
61-
* if $config['getBiggerImage'] is true, returns the biggest image
62+
* if $config['getBiggerImage'] is true, returns the biggest image.
6263
*
6364
* @return string|null
6465
*/
6566
public function getImage();
6667

6768
/**
68-
* Gets the image width
69+
* Gets the image width.
6970
*
70-
* @return integer|null
71+
* @return int|null
7172
*/
7273
public function getImageWidth();
7374

7475
/**
75-
* Gets the image height
76+
* Gets the image height.
7677
*
77-
* @return integer|null
78+
* @return int|null
7879
*/
7980
public function getImageHeight();
8081

8182
/**
8283
* Gets the aspect ratio of the embedded widget
83-
* (useful to make it flexible)
84+
* (useful to make it flexible).
8485
*
8586
* @return float|null
8687
*/

src/Adapters/Archive.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Adapter to provide information from archive.org API
4+
* Adapter to provide information from archive.org API.
45
*/
56
namespace Embed\Adapters;
67

src/Adapters/Facebook.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Adapter to provide information from any facebook page using its graph API
4+
* Adapter to provide information from any facebook page using its graph API.
45
*/
56
namespace Embed\Adapters;
67

src/Adapters/File.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Adapter to provide information from raw files
4+
* Adapter to provide information from raw files.
45
*/
56
namespace Embed\Adapters;
67

src/Adapters/Flickr.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Adapter provider more information from flickr
4+
* Adapter provider more information from flickr.
45
*/
56
namespace Embed\Adapters;
67

src/Adapters/Giphy.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Adapter to get the embed code from giphy.com
4+
* Adapter to get the embed code from giphy.com.
45
*/
56
namespace Embed\Adapters;
67

src/Adapters/Github.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Adapter to get the embed code from gist.github.com
4+
* Adapter to get the embed code from gist.github.com.
45
*/
56
namespace Embed\Adapters;
67

src/Adapters/Google.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Adapter provider more information from google maps
4+
* Adapter provider more information from google maps.
45
*/
56
namespace Embed\Adapters;
67

src/Adapters/Howcast.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
/**
3-
* Adapter to get the embed code from spreaker.com
4+
* Adapter to get the embed code from spreaker.com.
45
*/
56
namespace Embed\Adapters;
67

0 commit comments

Comments
 (0)