Skip to content

Commit bb54a2e

Browse files
authored
CS (#1584)
1 parent bb6f0c9 commit bb54a2e

5 files changed

Lines changed: 6 additions & 20 deletions

File tree

lib/Field/validate/type.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,7 @@ public function enterObject()
110110
$newString .= $movedCharArray[$k];
111111
}
112112

113-
if (function_exists('bcmod')) {
114-
$w = !(1 == bcmod($newString, '97'));
115-
} else {
116-
$x = $newString;
117-
$y = '97';
118-
$take = 5;
119-
$mod = '';
120-
121-
do {
122-
$a = (int) $mod . mb_substr($x, 0, $take);
123-
$x = mb_substr($x, $take);
124-
$mod = $a % $y;
125-
} while (mb_strlen($x));
126-
127-
$w = !(1 == (int) $mod);
128-
}
113+
$w = !(1 == bcmod($newString, '97'));
129114
}
130115

131116
break;

lib/Field/value/be_manager_relation.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
class rex_yform_value_be_manager_relation extends rex_yform_value_abstract
1111
{
1212
public static $yform_list_values = [];
13-
14-
protected $relation;
13+
public $relation;
1514

1615
public function enterObject()
1716
{

lib/manager/Importer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function import()
158158
// out of transaction, because database not always supports transactions with alter table
159159
$idColumn = null;
160160
while (false !== ($line_array = fgetcsv($fp, 30384, $this->getDelimiter()))) {
161-
if (0 == count($fieldarray)) {
161+
if (0 == count($fieldarray)) { /** @phpstan-ignore-line */
162162
$fieldarray = $line_array;
163163
$fieldarray = array_map('rex_string::normalize', $fieldarray);
164164

pages/manager.data_import.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
/** @var rex_yform_manager $this */
4+
35
use Redaxo\YForm\Manager\Importer;
46

57
$_csrf_key ??= '';

update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
rex_dir::delete(rex_path::addon('yform','plugins'),true);
3+
rex_dir::delete(rex_path::addon('yform', 'plugins'), true);
44

55
/** @var rex_addon $this */
66
$this->includeFile(__DIR__ . '/install.php');

0 commit comments

Comments
 (0)