Code Duplication    Length = 5-5 lines in 2 locations

src/Cornford/Logical/Logical.php 2 locations

@@ 95-99 (lines=5) @@
92
                    ) {
93
                        $this->tempExpected = explode(', ', $this->tempExpected);
94
95
                        if (is_array($this->tempExpected)) {
96
                            foreach ($this->tempExpected as &$expected) {
97
                                $expected = trim(trim($expected, '\''), '"');
98
                            }
99
                        }
100
                    }
101
102
                    if (!is_array($this->tempExpected) &&
@@ 110-114 (lines=5) @@
107
                    ) {
108
                        $this->tempExpected = json_decode($this->tempExpected, false);
109
110
                        if (is_array($this->tempExpected)) {
111
                            foreach ($this->tempExpected as &$expected) {
112
                                $expected = trim(trim($expected, '\''), '"');
113
                            }
114
                        }
115
                    }
116
117
                    if (!is_array($this->tempExpected) &&