Skip to content

Commit

Permalink
Remove declare(strict_types)
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Oct 7, 2023
1 parent 85dcef8 commit 4335563
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
11 changes: 5 additions & 6 deletions app/Services/Elasticsearch/Api.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php declare(strict_types=1);

<?php
namespace Coyote\Services\Elasticsearch;

use GuzzleHttp\Client;
Expand Down Expand Up @@ -46,12 +45,12 @@ public function search(SearchOptions $options)
protected function get(string $path, array $params = []): Hits
{
$response = $this->client->get($path, [
'base_uri' => sprintf('http://%s:%d', $this->host, $this->port),
'query' => $params,
'headers' => $this->jwtToken ? ['Authorization' => 'Bearer ' . $this->jwtToken] : []
'base_uri' => sprintf('http://%s:%d', $this->host, $this->port),
'query' => $params,
'headers' => $this->jwtToken ? ['Authorization' => 'Bearer ' . $this->jwtToken] : []
]);

$body = json_decode((string) $response->getBody(), true);
$body = json_decode((string)$response->getBody(), true);

return new Hits($body['hits'], $body['took'], $body['total']);
}
Expand Down
3 changes: 1 addition & 2 deletions app/Services/Elasticsearch/SearchOptions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php declare(strict_types=1);

<?php
namespace Coyote\Services\Elasticsearch;

use Coyote\Services\Arrayable\ToArray;
Expand Down
4 changes: 0 additions & 4 deletions app/Services/Parser/Extensions/InternalLinkExtension.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php

declare(strict_types=1);

namespace Coyote\Services\Parser\Extensions;

use Coyote\Repositories\Contracts\PageRepositoryInterface as PageRepository;
use League\CommonMark\Environment\EnvironmentBuilderInterface;
use League\CommonMark\Event\DocumentParsedEvent;
use League\CommonMark\Extension\ConfigurableExtensionInterface;
use League\CommonMark\Extension\ExternalLink\ExternalLinkProcessor;
use League\Config\ConfigurationBuilderInterface;
use Nette\Schema\Expect;

Expand Down

0 comments on commit 4335563

Please sign in to comment.