Code Duplication    Length = 10-10 lines in 2 locations

src/Charcoal/Source/Order.php 1 location

@@ 83-92 (lines=10) @@
80
        }
81
82
        /** @deprecated */
83
        if (isset($data['table_name'])) {
84
            trigger_error(
85
                sprintf(
86
                    'Sort expression option "table_name" is deprecated in favour of "table": %s',
87
                    $data['table_name']
88
                ),
89
                E_USER_DEPRECATED
90
            );
91
            $this->setTable($data['table_name']);
92
        }
93
94
        if (isset($data['table'])) {
95
            $this->setTable($data['table']);

src/Charcoal/Source/Filter.php 1 location

@@ 95-104 (lines=10) @@
92
        }
93
94
        /** @deprecated */
95
        if (isset($data['table_name'])) {
96
            trigger_error(
97
                sprintf(
98
                    'Filter expression option "table_name" is deprecated in favour of "table": %s',
99
                    $data['table_name']
100
                ),
101
                E_USER_DEPRECATED
102
            );
103
            $this->setTable($data['table_name']);
104
        }
105
106
        /** @deprecated */
107
        if (isset($data['val'])) {