Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __construct($column, array $arguments = []) |
||
20 | { |
||
21 | parent::__construct($column, $arguments); |
||
22 | |||
23 | $this->options(['contentsLangDirection' => 'ltr']); |
||
24 | $this->options(['language' => config('app.locale', 'en')]); |
||
25 | //for jquery validation |
||
26 | $this->addElementClass(['validate','ckeditor']); |
||
27 | |||
28 | } |
||
29 | |||
64 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.