Code Duplication    Length = 8-8 lines in 2 locations

src/Manager/Http/Controllers/LineController.php 1 location

@@ 127-134 (lines=8) @@
124
125
            $value = squantoCleanupHTML($value);
126
127
            if (is_null($value) || "" === $value) {
128
                $line->removeValue($locale);
129
            } else {
130
                $line->saveValue($locale, $value);
131
            }
132
        });
133
    }
134
}
135

src/Manager/Http/Controllers/TranslationController.php 1 location

@@ 61-68 (lines=8) @@
58
                    $value = squantoCleanupString($value);
59
                }
60
61
                if (is_null($value) || "" === $value) {
62
                    $line->removeValue($locale);
63
                } else {
64
                    $line->saveValue($locale, $value);
65
                }
66
            });
67
        });
68
    }
69
70
    /**
71
     * @param $page