mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-17 17:08:40 +00:00
Automated formatting changes
This commit is contained in:
parent
e98d649876
commit
793efdfb45
|
|
@ -15,8 +15,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace phpOMS\Auth\OAuth2\OptionProvider;
|
||||
|
||||
use phpOMS\System\MimeType;
|
||||
use phpOMS\Message\Http\RequestMethod;
|
||||
use phpOMS\System\MimeType;
|
||||
|
||||
/**
|
||||
* Provider class.
|
||||
|
|
@ -31,7 +31,7 @@ class PostAuthOptionProvider implements OptionProviderInterface
|
|||
public function getAccessTokenOptions(string $method, array $params) : array
|
||||
{
|
||||
$options = [
|
||||
'headers' => ['content-type' => MimeType::M_POST]
|
||||
'headers' => ['content-type' => MimeType::M_POST],
|
||||
];
|
||||
|
||||
if ($method === RequestMethod::POST) {
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ abstract class ProviderAbstract
|
|||
];
|
||||
|
||||
if (\is_array($options['scope'])) {
|
||||
$options['scope'] = implode($this->getScopeSeparator(), $options['scope']);
|
||||
$options['scope'] = \implode($this->getScopeSeparator(), $options['scope']);
|
||||
}
|
||||
|
||||
$options['redirect_uri'] ??= $this->redirectUri;
|
||||
|
|
@ -162,7 +162,7 @@ abstract class ProviderAbstract
|
|||
}
|
||||
|
||||
// @codeCoverageIgnoreStart
|
||||
header('Location: ' . $url);
|
||||
\header('Location: ' . $url);
|
||||
exit;
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
|
@ -267,7 +267,9 @@ abstract class ProviderAbstract
|
|||
}
|
||||
}
|
||||
|
||||
abstract protected function checkResponse(HttpResponse $response, $data) : void; // todo: consider to make bool
|
||||
abstract protected function checkResponse(HttpResponse $response, $data) : void;
|
||||
|
||||
// todo: consider to make bool
|
||||
|
||||
protected function prepareAccessTokenResponse(array $result) : array
|
||||
{
|
||||
|
|
|
|||
|
|
@ -194,8 +194,6 @@ class Mail
|
|||
*/
|
||||
protected ?\DateTime $messageDate = null;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Should confirm reading
|
||||
*
|
||||
|
|
@ -1475,7 +1473,6 @@ class Mail
|
|||
|
||||
public function msgHtml(string $message, string $baseDir = '') : string
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ class CustomerValueTest extends \PHPUnit\Framework\TestCase
|
|||
self::assertEqualsWithDelta(30000, CustomerValue::getSimpleCLV($margin, $retention, 0.0), 0.1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @testdox The monthly recurring revenue (MRR) is correctly calculated
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace phpOMS\tests\Socket\Client;
|
||||
|
||||
use phpOMS\Socket\Client\NullClientConnection;
|
||||
use phpOMS\Socket\Client\ClientConnection;
|
||||
use phpOMS\Socket\Client\NullClientConnection;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ class GraphTest extends \PHPUnit\Framework\TestCase
|
|||
$this->graph->getEdge($node1->getId(), $node3->getId())->getNode2()->getId()
|
||||
);
|
||||
|
||||
self::assertEquals(null, $this->graph->getEdge('invalid1', 'invalid2'));
|
||||
self::assertNull($this->graph->getEdge('invalid1', 'invalid2'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,10 +14,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace phpOMS\tests\Stdlib\Graph;
|
||||
|
||||
use phpOMS\Stdlib\Graph\Node;
|
||||
use phpOMS\Stdlib\Graph\Edge;
|
||||
|
||||
use function PHPUnit\Framework\assertInstanceOf;
|
||||
use phpOMS\Stdlib\Graph\Node;
|
||||
|
||||
/**
|
||||
* @testdox phpOMS\tests\Stdlib\Graph\NodeTest: Node in a graph
|
||||
|
|
@ -121,7 +119,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase
|
|||
$node = new Node('A', 1);
|
||||
$node->setEdge(new Edge($node, new Node('B')), 3);
|
||||
|
||||
self::assertEquals(null, $node->getEdge(2));
|
||||
self::assertNull($node->getEdge(2));
|
||||
self::assertInstanceOf(Edge::class, $node->getEdge(3));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user