Skip to content

Commit

Permalink
psr-2 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Feb 4, 2021
1 parent fa04061 commit 669611a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tests/OutputTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ public function mockRfcOutputTable()
$flags->response = self::$responseRaw;
$expectedConfig = static::getSampleSapConfig();
static::mock('\SAPNWRFC\Connection::__construct', static function (array $config, array $options) use ($flags, $expectedConfig) {
if (
!is_array($config)
if (!is_array($config)
|| !array_key_exists('ashost', $config)
|| !array_key_exists('sysnr', $config)
|| !array_key_exists('client', $config)
Expand Down
12 changes: 4 additions & 8 deletions tests/SapRfcIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ protected function mockSuccessfulRfcPing()
$flags->func = null;
$expectedConfig = static::getSampleSapConfig();
static::mock('\SAPNWRFC\Connection::__construct', static function (array $config, array $options) use ($flags, $expectedConfig) {
if (
!is_array($config)
if (!is_array($config)
|| !array_key_exists('ashost', $config)
|| !array_key_exists('sysnr', $config)
|| !array_key_exists('client', $config)
Expand Down Expand Up @@ -591,8 +590,7 @@ protected function mockUnknownFunctionException()
$flags->conn = false;
$expectedConfig = static::getSampleSapConfig();
static::mock('\SAPNWRFC\Connection::__construct', static function (array $config, array $options) use ($flags, $expectedConfig) {
if (
!is_array($config)
if (!is_array($config)
|| !array_key_exists('ashost', $config)
|| !array_key_exists('sysnr', $config)
|| !array_key_exists('client', $config)
Expand Down Expand Up @@ -634,8 +632,7 @@ protected function mockRemoteFunctionCallWithParametersAndResults()
$flags->api = static::$rfcWalkThruTestApi;
$expectedConfig = static::getSampleSapConfig();
static::mock('\SAPNWRFC\Connection::__construct', static function (array $config, array $options) use ($flags, $expectedConfig) {
if (
!is_array($config)
if (!is_array($config)
|| !array_key_exists('ashost', $config)
|| !array_key_exists('sysnr', $config)
|| !array_key_exists('client', $config)
Expand Down Expand Up @@ -730,8 +727,7 @@ protected function mockFailedRemoteFunctionCallWithParameters()
$flags->api = static::$rfcReadTableApi;
$expectedConfig = static::getSampleSapConfig();
static::mock('\SAPNWRFC\Connection::__construct', static function (array $config, array $options) use ($flags, $expectedConfig) {
if (
!is_array($config)
if (!is_array($config)
|| !array_key_exists('ashost', $config)
|| !array_key_exists('sysnr', $config)
|| !array_key_exists('client', $config)
Expand Down

0 comments on commit 669611a

Please sign in to comment.