@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | namespace SWP\Bundle\ContentBundle\Doctrine\ORM; |
| 18 | 18 | |
| 19 | 19 | use Doctrine\ORM\QueryBuilder; |
| 20 | -use Elastica\Query; |
|
| 21 | 20 | use SWP\Bundle\ContentBundle\Model\ArticleSourceReference; |
| 22 | 21 | use SWP\Component\Common\Criteria\Criteria; |
| 23 | 22 | use SWP\Bundle\ContentBundle\Doctrine\ArticleRepositoryInterface; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $items = $this->filterTextItems($package->getItems()); |
| 88 | 88 | |
| 89 | 89 | $map = $items->map( |
| 90 | - function (ItemInterface $item) { |
|
| 90 | + function(ItemInterface $item) { |
|
| 91 | 91 | return ' '.$item->getDescription(); |
| 92 | 92 | } |
| 93 | 93 | ); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | { |
| 108 | 108 | $items = $this->filterTextItems($package->getItems()); |
| 109 | 109 | |
| 110 | - $authors = array_filter(array_values(array_map(function (ItemInterface $item) { |
|
| 110 | + $authors = array_filter(array_values(array_map(function(ItemInterface $item) { |
|
| 111 | 111 | $metadata = $item->getMetadata(); |
| 112 | 112 | |
| 113 | 113 | return $metadata['byline']; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | private function filterTextItems(Collection $items) |
| 124 | 124 | { |
| 125 | 125 | return $items->filter( |
| 126 | - function (ItemInterface $item) { |
|
| 126 | + function(ItemInterface $item) { |
|
| 127 | 127 | $this->ensureTypeIsAllowed($item->getType()); |
| 128 | 128 | |
| 129 | 129 | return ItemInterface::TYPE_TEXT === $item->getType(); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | private function populateBody(PackageInterface $package) |
| 140 | 140 | { |
| 141 | - return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) { |
|
| 141 | + return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) { |
|
| 142 | 142 | $this->ensureTypeIsAllowed($item->getType()); |
| 143 | 143 | |
| 144 | 144 | return $item->getBody(); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher ElasticSearch Bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher ElasticSearch Bundle. |