| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 18 | 
| Code Lines | 5 | 
| Lines | 18 | 
| Ratio | 100 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 30 | 		protected function handle() { | 
            ||
| 31 | |||
| 32 | # Create form  | 
            ||
| 33 | |||
| 34 | $this->form = new Form;  | 
            ||
| 35 | |||
| 36 | # Handle form  | 
            ||
| 37 | |||
| 38 | if ($this->form->handle(new Controller)) Request::redirect(INSTALL_PATH . '/contact?submitted');  | 
            ||
| 39 | |||
| 40 | # Display success message  | 
            ||
| 41 | |||
| 42 | 			if (false !== Request::get('submitted')) Messages::set('success', Language::get('CONTACT_SUCCESS_SEND')); | 
            ||
| 43 | |||
| 44 | # ------------------------  | 
            ||
| 45 | |||
| 46 | return $this->getContents();  | 
            ||
| 47 | }  | 
            ||
| 48 | }  | 
            ||
| 50 | 
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.