Skip to content

Instantly share code, notes, and snippets.

@rexxars
Last active December 19, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexxars/5966465 to your computer and use it in GitHub Desktop.
Save rexxars/5966465 to your computer and use it in GitHub Desktop.
PHP array code standard
<?php
// Now:
$externalRelatedArticles = $relatedArticlesService->prepare(array('scope' => 'external',
'articleId' => $article->getId(),
'tagId' => $tagId,
'limitByDomain' => 2
));
// Suggested:
$externalRelatedArticles = $relatedArticlesService->prepare(array(
'scope' => 'external',
'tagId' => $tagId,
'articleId' => $article->getId(),
'limitByDomain' => 2
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment