Skip to content

Commit 83635f2

Browse files
authored
Master -> Development (#315)
* Release 4.1.0 * Add helper method to GetSessionResult getFaceComparisonChecks * Add several fixes, update php8.0 -> 8.1, guzzlehttp/guzzle -> 7.0, guzzlehttp/psr7 -> 2.4 * Update github actions php8.0 -> 8.1 * Update github actions for sonar check php8.0 -> 8.1 * Remove support of php7.1 * Modify sonar config for php8.1 * Add php7.4, php8.0 support * Add php7.4, php8.0 support * Update README.md (#306) * Updated dependencies * Fixed psr/log for php7.4 * Improve identity report view * Fix version to 4.2.0 (#314)
1 parent bbdefef commit 83635f2

File tree

6 files changed

+43
-12
lines changed

6 files changed

+43
-12
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "yoti/yoti-php-sdk",
33
"description": "Yoti SDK for quickly integrating your PHP backend with Yoti",
4-
"version": "4.1.0",
4+
"version": "4.2.0",
55
"keywords": [
66
"yoti",
77
"sdk"
@@ -32,7 +32,7 @@
3232
"phpstan/phpstan-strict-rules": "^0.12.1",
3333
"phpstan/extension-installer": "^1.0",
3434
"psr/log": "^1.1",
35-
"symfony/phpunit-bridge": "^5.1"
35+
"symfony/phpunit-bridge": "^6.2"
3636
},
3737
"autoload-dev": {
3838
"psr-4": {

examples/profile/resources/views/partial/report.blade.php

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,39 @@
1-
<table>
2-
@foreach ($report as $key => $value)
1+
@foreach ($report as $key => $value)
2+
<table>
3+
<thead>
34
<tr>
4-
<td>{{ $key }}</td>
55
<td>
6-
<pre>
7-
{{ $value }}
8-
</pre>
6+
<H2>{{ $key }}</H2>
97
</td>
108
</tr>
9+
</thead>
10+
<tbody>
11+
@foreach ($value as $name => $result)
12+
@if (is_array($result))
13+
@foreach ($result as $data => $view)
14+
@if (is_array($view))
15+
@foreach ($view as $key2 => $value2)
16+
@if (is_array($value2))
17+
{{json_encode($value2)}}
18+
@else
19+
<tr>
20+
<td><b>{{ $key2 }}</b><br>{{ $value2 }}</td>
21+
</tr>
22+
@endif
23+
@endforeach
24+
@else
25+
<tr>
26+
<td><b>{{ $data }}</b><br>{{ $view }}</td>
27+
</tr>
28+
@endif
29+
@endforeach
30+
@else
31+
<tr>
32+
<td><b>{{ $name }}</b><br>{{ $result }}</td>
33+
</tr>
34+
@endif
35+
@endforeach
36+
37+
</tbody>
38+
</table>
1139
@endforeach
12-
</table>

src/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Constants
2525
public const SDK_IDENTIFIER = 'PHP';
2626

2727
/** Default SDK version */
28-
public const SDK_VERSION = '4.1.0';
28+
public const SDK_VERSION = '4.2.0';
2929

3030
/** Base url for connect page (user will be redirected to this page eg. baseurl/app-id) */
3131
public const CONNECT_BASE_URL = 'https://www.yoti.com/connect';

src/DocScan/Session/Create/SdkConfigBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function withIdDocumentTextExtractionReclassificationRetries(int $reclass
172172
/**
173173
* @deprecated from 4.2.0, @see withIdDocumentTextExtractionGenericAttempts
174174
*/
175-
public function withIdDocumentTextExtractionGenericRetries(int $genericRetries)
175+
public function withIdDocumentTextExtractionGenericRetries(int $genericRetries): void
176176
{
177177
}
178178

src/DocScan/Session/Retrieve/IdentityProfilePreviewResponse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ class IdentityProfilePreviewResponse
66
{
77
private ?MediaResponse $media = null;
88

9+
/**
10+
* @param array<string, mixed> $sessionData
11+
* @throws \Yoti\Exception\DateTimeException
12+
*/
913
public function __construct(array $sessionData)
1014
{
1115
if (isset($sessionData['media'])) {

src/Util/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Logger extends AbstractLogger
2727
/**
2828
* @inheritDoc
2929
*/
30-
public function log($level, $message, array $context = [])
30+
public function log($level, $message, array $context = []): void
3131
{
3232
if (!in_array($level, self::LEVELS, true)) {
3333
throw new InvalidArgumentException(sprintf('"%s" level is not allowed', $level));

0 commit comments

Comments
 (0)