mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 21:56:31 +02:00
Fix CS
This commit is contained in:
@@ -56,7 +56,7 @@ class ElasticaFormatterTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
// Document parameters
|
||||
$this->assertEquals('my_index', $doc->getIndex());
|
||||
if(method_exists($doc, 'getType')) {
|
||||
if (method_exists($doc, 'getType')) {
|
||||
$this->assertEquals('doc_type', $doc->getType());
|
||||
}
|
||||
|
||||
|
@@ -263,7 +263,6 @@ class ElasticaHandlerTest extends TestCase
|
||||
$client->request("/{$this->options['index']}", Request::DELETE);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return last created document id from ES response
|
||||
* @param Response $response Elastica Response object
|
||||
@@ -279,15 +278,15 @@ class ElasticaHandlerTest extends TestCase
|
||||
|
||||
/**
|
||||
* Retrieve document by id from Elasticsearch
|
||||
* @param Client $client Elastica client
|
||||
* @param string $index
|
||||
* @param Client $client Elastica client
|
||||
* @param string $index
|
||||
* @param ?string $type
|
||||
* @param string $documentId
|
||||
* @param string $documentId
|
||||
* @return array
|
||||
*/
|
||||
protected function getDocSourceFromElastic(Client $client, $index, $type, $documentId)
|
||||
{
|
||||
if($type === null) {
|
||||
if ($type === null) {
|
||||
$path = "/{$index}/_doc/{$documentId}";
|
||||
} else {
|
||||
$path = "/{$index}/{$type}/{$documentId}";
|
||||
|
@@ -13,7 +13,6 @@ namespace Monolog\Handler;
|
||||
|
||||
use MongoDB\Driver\Manager;
|
||||
use Monolog\Test\TestCase;
|
||||
use Monolog\Formatter\NormalizerFormatter;
|
||||
|
||||
class MongoDBHandlerTest extends TestCase
|
||||
{
|
||||
|
@@ -41,8 +41,7 @@ class TelegramBotHandlerTest extends TestCase
|
||||
string $parseMode = 'Markdown',
|
||||
bool $disableWebPagePreview = false,
|
||||
bool $disableNotification = true
|
||||
): void
|
||||
{
|
||||
): void {
|
||||
$constructorArgs = [$apiKey, $channel, Logger::DEBUG, true, $parseMode, $disableWebPagePreview, $disableNotification];
|
||||
|
||||
$this->handler = $this->getMockBuilder(TelegramBotHandler::class)
|
||||
|
Reference in New Issue
Block a user