@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | protected function fromArray(array $data) |
| 21 | 21 | {
|
| 22 | - foreach($data as $key => $value) {
|
|
| 22 | + foreach ($data as $key => $value) {
|
|
| 23 | 23 | if (property_exists($this, $key)) {
|
| 24 | 24 | $this->{$key} = $value;
|
| 25 | 25 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | var_dump(($results[5])->toArray()); |
| 28 | 28 | |
| 29 | 29 | //Traversable |
| 30 | -foreach($results as $result){
|
|
| 30 | +foreach ($results as $result) {
|
|
| 31 | 31 | var_dump($result->toArray()); |
| 32 | 32 | } |
| 33 | 33 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | protected function getResponseMock($returnValue = null) |
| 41 | 41 | {
|
| 42 | 42 | if (is_null($returnValue)) {
|
| 43 | - $returnValue = (object)[ |
|
| 43 | + $returnValue = (object) [ |
|
| 44 | 44 | 'webPages' => [ |
| 45 | 45 | 'value' => [], |
| 46 | 46 | 'totalEstimatedMatches' => 0, |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | {
|
| 95 | 95 | $guzzleMock = $this->guzzleMockBuilder->setMethods(['request'])->getMock(); |
| 96 | 96 | |
| 97 | - $responseMock = $this->getResponseMock((object)[]); |
|
| 97 | + $responseMock = $this->getResponseMock((object) []); |
|
| 98 | 98 | |
| 99 | 99 | $guzzleMock->expects($this->once()) |
| 100 | 100 | ->method('request')
|
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function __construct(array $items = [], int $totalMatches = 0) |
| 21 | 21 | {
|
| 22 | - foreach($items as $item) {
|
|
| 22 | + foreach ($items as $item) {
|
|
| 23 | 23 | if (!$item instanceof IItem) {
|
| 24 | 24 | throw new InvalidArgumentException('Given items must implement Radowoj\Searcher\SearchResult\IItem interface');
|
| 25 | 25 | } |