Skip to content

Commit

Permalink
Merge pull request #7 from fourlabsldn/analysis-XleoyQ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
foaly-nr1 committed Nov 28, 2016
2 parents a5b2853 + e442a7b commit 8dbf747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Action/Auth/Clear.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class Clear

/**
* @param PageManagerStorageInterface $pageManagerStorage
* @param PageStorageInterface $pageStorage
* @param PageReviewStorageInterface $pageReviewStore
* @param string $redirectAfterAuthorization
* @param PageStorageInterface $pageStorage
* @param PageReviewStorageInterface $pageReviewStore
* @param string $redirectAfterAuthorization
*/
public function __construct(
PageManagerStorageInterface $pageManagerStorage,
Expand Down
6 changes: 3 additions & 3 deletions EventListener/OpenGraphStoryIdListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
use GuzzleHttp\Psr7\Stream;

/**
* This is quite a shameful workaround for quite a shameful bug: https://github.com/facebook/php-graph-sdk/issues/700
* This is quite a shameful workaround for quite a shameful bug: https://github.com/facebook/php-graph-sdk/issues/700.
*/
class OpenGraphStoryIdListener
{
public function onGuzzleBundlePostTransaction(PostTransactionEvent $event)
{
$body = json_decode((string)$event->getTransaction()->getBody());
$body = json_decode((string) $event->getTransaction()->getBody());

// Whatever this is, it's not our array of reviews. Maybe an error response.
if (!(isset($body->data) && is_array($body->data))) {
Expand All @@ -24,7 +24,7 @@ public function onGuzzleBundlePostTransaction(PostTransactionEvent $event)
return;
}

for ($n = 0; $n < count($body->data); $n++) {
for ($n = 0; $n < count($body->data); ++$n) {
$body->data[$n]->open_graph_story->data->id = $body->data[$n]->open_graph_story->id;
}

Expand Down

0 comments on commit 8dbf747

Please sign in to comment.