Skip to content

Commit 08f4286

Browse files
committed
use single line doc-blocks for properties
1 parent 9fa0ee8 commit 08f4286

File tree

17 files changed

+19
-57
lines changed

17 files changed

+19
-57
lines changed

src/Property.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@
44

55
class Property
66
{
7-
/**
8-
* @var string
9-
*/
7+
/** @var string */
108
protected $prefix = 'og';
119

12-
/**
13-
* @var string
14-
*/
10+
/** @var string */
1511
protected $property;
1612

17-
/**
18-
* @var string
19-
*/
13+
/** @var string */
2014
protected $content;
2115

2216
public function __construct(string $prefix, string $property, string $content)

src/Type.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
abstract class Type extends BaseObject
1010
{
11-
/**
12-
* @var string
13-
*/
11+
/** @var string */
1412
protected $type;
1513

1614
public function __construct(?string $title = null)

src/Types/Article.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class Article extends Type
99
{
1010
protected const PREFIX = 'article';
1111

12-
/**
13-
* @var string
14-
*/
12+
/** @var string */
1513
protected $type = 'article';
1614

1715
public function author(string $url)

src/Types/Book.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class Book extends Type
99
{
1010
protected const PREFIX = 'book';
1111

12-
/**
13-
* @var string
14-
*/
12+
/** @var string */
1513
protected $type = 'book';
1614

1715
public function author(string $url)

src/Types/Music/Album.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class Album extends Type
99
{
1010
protected const PREFIX = 'music';
1111

12-
/**
13-
* @var string
14-
*/
12+
/** @var string */
1513
protected $type = 'music.album';
1614

1715
public function musician(string $url)

src/Types/Music/Playlist.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ class Playlist extends Type
88
{
99
protected const PREFIX = 'music';
1010

11-
/**
12-
* @var string
13-
*/
11+
/** @var string */
1412
protected $type = 'music.playlist';
1513

1614
public function creator(string $url)

src/Types/Music/RadioStation.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ class RadioStation extends Type
88
{
99
protected const PREFIX = 'music';
1010

11-
/**
12-
* @var string
13-
*/
11+
/** @var string */
1412
protected $type = 'music.radio_station';
1513

1614
public function creator(string $url)

src/Types/Music/Song.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ class Song extends Type
88
{
99
protected const PREFIX = 'music';
1010

11-
/**
12-
* @var string
13-
*/
11+
/** @var string */
1412
protected $type = 'music.song';
1513

1614
public function duration(int $seconds)

src/Types/Profile.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ class Profile extends Type
88
{
99
protected const PREFIX = 'profile';
1010

11-
/**
12-
* @var string
13-
*/
11+
/** @var string */
1412
protected $type = 'profile';
1513

1614
public function firstName(string $firstName)

src/Types/Twitter/Player.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class Player extends TwitterType
88
{
9-
/**
10-
* @var string
11-
*/
9+
/** @var string */
1210
protected $type = 'player';
1311

1412
public function player(string $url, int $width, int $height)

0 commit comments

Comments
 (0)