Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request algolia#281 from iliyaZelenko/master
Browse files Browse the repository at this point in the history
Removed old arrays
  • Loading branch information
nunomaduro authored Jan 24, 2019
2 parents 8aea01a + 98549fb commit f9aba70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ return [
Add Algolia to your `app/Kernel.php`:

```php
$bundles = array(
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
// ... Other bundles ...
new Algolia\SearchBundle\AlgoliaSearchBundle(),
);
];
```

## Algolia credentials
Expand Down Expand Up @@ -637,7 +637,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class Post implements NormalizableInterface
{
public function normalize(NormalizerInterface $serializer, $format = null, array $context = array()): array
public function normalize(NormalizerInterface $serializer, $format = null, array $context = []): array
{
return [
'title' => $this->getTitle(),
Expand All @@ -661,7 +661,7 @@ In case you are already using this method for something else, like encoding enti
on the format to return different arrays.

```php
public function normalize(NormalizerInterface $serializer, $format = null, array $context = array()): array
public function normalize(NormalizerInterface $serializer, $format = null, array $context = []): array
{
if (\Algolia\SearchBundle\Searchable::NORMALIZATION_FORMAT === $format) {
return [
Expand Down Expand Up @@ -695,7 +695,7 @@ class UserNormalizer implements NormalizerInterface
/**
* Normalize a user into a set of arrays/scalars.
*/
public function normalize($object, $format = null, array $context = array())
public function normalize($object, $format = null, array $context = [])
{
return [
'id' => $object->getId(),
Expand Down

0 comments on commit f9aba70

Please sign in to comment.