UseMuffin / Obfuscate

@@ -41,7 +41,7 @@
Loading
41 41
     */
42 42
    public function obfuscate($str): string
43 43
    {
44 -
        /** @psalm-suppress InvalidArgument */
44 +
        /** @psalm-suppress InvalidArrayOffset */
45 45
        $record = $this->_table
46 46
            ->find()
47 47
            ->where([$this->_table->getPrimaryKey() => $str])

@@ -4,7 +4,7 @@
Loading
4 4
namespace Muffin\Obfuscate\Model\Behavior;
5 5
6 6
use ArrayObject;
7 -
use Cake\Database\Expression\Comparison;
7 +
use Cake\Database\Expression\ComparisonExpression;
8 8
use Cake\Datasource\EntityInterface;
9 9
use Cake\Event\EventInterface;
10 10
use Cake\ORM\Behavior;
@@ -105,7 +105,7 @@
Loading
105 105
            }
106 106
107 107
            if (
108 -
                $expression instanceof Comparison
108 +
                $expression instanceof ComparisonExpression
109 109
                && in_array($expression->getField(), [$pk, $this->_table->aliasField($pk)])
110 110
            ) {
111 111
                $expression->setValue($this->elucidate($expression->getValue()));
Files Complexity Coverage
src/Model/Behavior 39 93.55%
Project Totals (5 files) 39 93.55%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading