@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | { |
39 | 39 | $this->factory = new SocialFactory(); |
40 | 40 | |
41 | - foreach ($config as $adapterName => $adapterConfig){ |
|
41 | + foreach ($config as $adapterName => $adapterConfig) { |
|
42 | 42 | $name = strtolower($adapterName); |
43 | 43 | $this->adapters[$name] = $this->factory->create($adapterName, $adapterConfig); |
44 | 44 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param string $adapterName |
49 | 49 | * @return SocialAdapter|null |
50 | 50 | */ |
51 | - public function getAdapter($adapterName){ |
|
51 | + public function getAdapter($adapterName) { |
|
52 | 52 | $name = strtolower($adapterName); |
53 | 53 | return isset($this->adapters[$name]) ? $this->adapters[$name] : null; |
54 | 54 | } |
@@ -61,9 +61,9 @@ discard block |
||
61 | 61 | * @return array references of posts published |
62 | 62 | * @throws exception\SocialException |
63 | 63 | */ |
64 | - public function post($post){ |
|
64 | + public function post($post) { |
|
65 | 65 | $references = []; |
66 | - foreach ($this->adapters as $adapterName => $adapter){ |
|
66 | + foreach ($this->adapters as $adapterName => $adapter) { |
|
67 | 67 | $references[$adapterName] = $adapter->post($post); |
68 | 68 | } |
69 | 69 | return $references; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * @return string post reference |
79 | 79 | * @throws exception\SocialException |
80 | 80 | */ |
81 | - public static function postTo($post, $adapterName, $config){ |
|
81 | + public static function postTo($post, $adapterName, $config) { |
|
82 | 82 | $ms = new self([$adapterName => $config]); |
83 | 83 | $refs = $ms->post($post); |
84 | 84 | return array_shift($refs); |