DiffRequest::compareText()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This class is generated using the package carono/codegen
5
 */
6
7
namespace carono\etxtru\request;
8
9
class DiffRequest extends \carono\etxtru\RequestAbstract
10
{
11
	/**
12
	 * Функция показывает степень схожести двух текстов
13
	 *
14
	 * @param string $source Исходный текст (длина от 30 до 20000 знаков)
15
	 * @param string $text Текст для сравнения (длина от 30 до 20000 знаков)
16
	 * @return \carono\etxtru\response\CompareTextResponse|\stdClass
17
	 */
18
	public function compareText($source, $text)
19
	{
20
		$params = [
21
			'source' => $source,
22
			'text' => $text
23
		];
24
		return $this->getClient()->getContent('diff.compareText', $params, 'carono\etxtru\response\CompareTextResponse');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getClient(...e\CompareTextResponse') also could return the type carono\etxtru\Response which is incompatible with the documented return type carono\etxtru\response\C...reTextResponse|stdClass.
Loading history...
25
	}
26
}
27