| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function configMapping() |
||
| 41 | { |
||
| 42 | return array( |
||
| 43 | \RainLoop\Plugins\Property::NewInstance('vesta_host')->SetLabel('Vesta Host') |
||
| 44 | ->SetDefaultValue('') |
||
| 45 | ->SetDescription('Ex: localhost or domain.com'), |
||
| 46 | \RainLoop\Plugins\Property::NewInstance('Vesta_port')->SetLabel('Vesta Port') |
||
| 47 | ->SetType(\RainLoop\Enumerations\PluginPropertyType::INT) |
||
| 48 | ->SetDefaultValue(8083), |
||
| 49 | \RainLoop\Plugins\Property::NewInstance('allowed_emails')->SetLabel('Allowed emails') |
||
| 50 | ->SetType(\RainLoop\Enumerations\PluginPropertyType::STRING_TEXT) |
||
| 51 | ->SetDescription('Allowed emails, space as delimiter, wildcard supported. Example: [email protected] [email protected] *@domain2.net') |
||
| 52 | ->SetDefaultValue('*') |
||
| 53 | ); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
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.