@@ -36,15 +36,15 @@ |
||
36 | 36 | * @param string $pageId Identifier of the page, on which the post will be published |
37 | 37 | */ |
38 | 38 | public function __construct(Facebook $facebook, string $pageId) |
39 | - { |
|
39 | + { |
|
40 | 40 | $this->facebook = $facebook; |
41 | 41 | $this->pageId = $pageId; |
42 | - } |
|
42 | + } |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * {@inheritdoc} |
46 | 46 | */ |
47 | - public function publish( |
|
47 | + public function publish( |
|
48 | 48 | string $message, |
49 | 49 | string $link = '', |
50 | 50 | string $pictureLink = '', |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @param SocialNetworkPublisher[] $publishers List of instantiated SocialNetworkPublisher's |
28 | 28 | */ |
29 | 29 | public function __construct(...$publishers) |
30 | - { |
|
30 | + { |
|
31 | 31 | foreach ($publishers as $publisher) { |
32 | 32 | if (!($publisher instanceof SocialNetworkPublisher)) { |
33 | 33 | throw new InvalidArgumentException(sprintf('At least one of the given publishers is not implementing %s', SocialNetworkPublisher::class)); |
@@ -35,12 +35,12 @@ discard block |
||
35 | 35 | |
36 | 36 | $this->publishers[] = $publisher; |
37 | 37 | } |
38 | - } |
|
38 | + } |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * {@inheritdoc} |
42 | 42 | */ |
43 | - public function publish( |
|
43 | + public function publish( |
|
44 | 44 | string $message, |
45 | 45 | string $link = '', |
46 | 46 | string $pictureLink = '', |
@@ -30,14 +30,14 @@ |
||
30 | 30 | * @param TwitterOAuth $twitter Ready to use instance of TwitterOAuth |
31 | 31 | */ |
32 | 32 | public function __construct(TwitterOAuth $twitter) |
33 | - { |
|
33 | + { |
|
34 | 34 | $this->twitter = $twitter; |
35 | - } |
|
35 | + } |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * {@inheritdoc} |
39 | 39 | */ |
40 | - public function publish( |
|
40 | + public function publish( |
|
41 | 41 | string $message, |
42 | 42 | string $link = '', |
43 | 43 | string $pictureLink = '', |