@@ -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 | * @param SocialAdapter $adapter |
| 50 | 50 | */ |
| 51 | - public function addAdapter($adapterName, $adapter){ |
|
| 51 | + public function addAdapter($adapterName, $adapter) { |
|
| 52 | 52 | $this->adapters[$adapterName] = $adapter; |
| 53 | 53 | } |
| 54 | 54 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @param string $adapterName |
| 57 | 57 | * @return SocialAdapter|null |
| 58 | 58 | */ |
| 59 | - public function getAdapter($adapterName){ |
|
| 59 | + public function getAdapter($adapterName) { |
|
| 60 | 60 | $name = strtolower($adapterName); |
| 61 | 61 | return isset($this->adapters[$name]) ? $this->adapters[$name] : null; |
| 62 | 62 | } |
@@ -69,9 +69,9 @@ discard block |
||
| 69 | 69 | * @return array references of posts published |
| 70 | 70 | * @throws exception\SocialException |
| 71 | 71 | */ |
| 72 | - public function post($post){ |
|
| 72 | + public function post($post) { |
|
| 73 | 73 | $references = []; |
| 74 | - foreach ($this->adapters as $adapterName => $adapter){ |
|
| 74 | + foreach ($this->adapters as $adapterName => $adapter) { |
|
| 75 | 75 | $references[$adapterName] = $adapter->post($post); |
| 76 | 76 | } |
| 77 | 77 | return $references; |