Code Duplication    Length = 8-9 lines in 2 locations

src/Actions/Model/EditModelAction.php 1 location

@@ 118-126 (lines=9) @@
115
     * @param $line
116
     * @return bool
117
     */
118
    private function startOfFillable($line): bool
119
    {
120
        $line = str_replace(' ', '', $line);
121
122
        return $line === '/**'
123
            || $line === '{'
124
            || $line === '];'
125
            || $line === '}';
126
    }
127
128
    /**
129
     * @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