Code Duplication    Length = 8-9 lines in 2 locations

src/Actions/Model/EditModelAction.php 1 location

@@ 120-128 (lines=9) @@
117
     * @param $line
118
     * @return bool
119
     */
120
    private function startOfFillable($line): bool
121
    {
122
        $line = str_replace(' ', '', $line);
123
124
        return $line === '/**'
125
            || $line === '{'
126
            || $line === '];'
127
            || $line === '}';
128
    }
129
130
    /**
131
     * @param array $fields

src/Actions/Relation/DeleteRelationAction.php 1 location

@@ 90-97 (lines=8) @@
87
     * @param $line
88
     * @return bool
89
     */
90
    private function startOfMethod($line): bool
91
    {
92
        $line = str_replace(' ', '', $line);
93
94
        return $line === '/**'
95
            || $line === '//'
96
            || $line === '}';
97
    }
98
}
99