Phpinspectionsea: Change automatic fixes to non-Yoda style

Created on 23 Aug 2019  路  2Comments  路  Source: kalessil/phpinspectionsea

I may be mistaken, but I don't think https://github.com/kalessil/phpinspectionsea/issues/963 is the same issue. Is it possible to have the automatic fixes use the non-Yoda style?

        strpos(
            $oProcess->getOutput(),
            "syntax is incorrect") !== false

Right now, whether Yoda is checked or not, I get this, which I do not like:

        false !== strpos(
            $oProcess->getOutput(),
            "syntax is incorrect")
bug / false-positive fixed

Most helpful comment

Fixed!

All 2 comments

That's a bug - inspection code generation is not checking the setting at all. I'll fix it!

Fixed!

Was this page helpful?
0 / 5 - 0 ratings