Skip to content

Commit 34388fb

Browse files
authored
1 parent e89bc3a commit 34388fb

File tree

4 files changed

+1
-18
lines changed

4 files changed

+1
-18
lines changed

.phpstan.dist.baseline.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,18 +2622,6 @@ parameters:
26222622
count: 1
26232623
path: app/code/core/Mage/Core/Model/Encryption.php
26242624

2625-
-
2626-
rawMessage: Negated boolean expression is always false.
2627-
identifier: booleanNot.alwaysFalse
2628-
count: 2
2629-
path: app/code/core/Mage/Core/Model/File/Storage.php
2630-
2631-
-
2632-
rawMessage: Result of || is always false.
2633-
identifier: booleanOr.alwaysFalse
2634-
count: 1
2635-
path: app/code/core/Mage/Core/Model/File/Storage.php
2636-
26372625
-
26382626
rawMessage: 'Parameter #1 $params of method Mage_Core_Model_File_Storage_Database_Abstract::__construct() expects array, string|null given.'
26392627
identifier: argument.type

.rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
DeadCode\ClassMethod\RemoveNullTagValueNodeRector::class, # todo: TMP
8989
DeadCode\ClassMethod\RemoveUnusedPrivateMethodParameterRector::class, # todo: TMP (!?!)
9090
DeadCode\FunctionLike\RemoveDeadReturnRector::class, # todo: TMP
91-
DeadCode\If_\ReduceAlwaysFalseIfOrRector::class, # todo: TMP
9291
DeadCode\If_\RemoveAlwaysTrueIfConditionRector::class, # todo: TMP
9392
DeadCode\If_\SimplifyIfElseWithSameContentRector::class, # todo: TMP
9493
DeadCode\Plus\RemoveDeadZeroAndOneOperationRector::class, # todo: TMP (!?!)

app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ protected function &_applyDecorators($value, $decorators)
221221
}
222222
}
223223

224-
if ((!is_array($decorators)) || empty($decorators)) {
224+
if (empty($decorators)) {
225225
return $value;
226226
}
227227

app/code/core/Mage/Core/Model/File/Storage.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ protected function _synchronizeHasErrors(
5252
Mage_Core_Model_Abstract $sourceModel,
5353
Mage_Core_Model_Abstract $destinationModel
5454
) {
55-
if (!$sourceModel || !$destinationModel) {
56-
return true;
57-
}
58-
5955
return $sourceModel->hasErrors() || $destinationModel->hasErrors();
6056
}
6157

0 commit comments

Comments
 (0)