Passed
Push — master ( 4a4466...1554de )
by Mauro
03:16
created

src/Exception/TaskException.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace App\Exception;
4
5
/**
6
 * Task Exception.
7
 */
8 View Code Duplication
class TaskException extends BaseException
0 ignored issues
show
This class seems to be duplicated in your project.

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.

Loading history...
9
{
10
    const TASK_NOT_FOUND = 'La tarea solicitada no existe.';
11
    const TASK_NAME_NOT_FOUND = 'No se encontraron tareas con ese nombre.';
12
    const TASK_NAME_REQUIRED = 'Ingrese el nombre de la tarea.';
13
    const TASK_INFO_REQUIRED = 'Ingrese los datos a actualizar de la tarea.';
14
    const TASK_NAME_INVALID = 'La tarea ingresada es incorrecta.';
15
    const TASK_STATUS_INVALID = 'El estado ingresado es incorrecto.';
16
17
    /**
18
     * @param string $message
19
     * @param int $code
20
     * @param \Exception $previous
21
     */
22
    public function __construct($message = '', $code = 0, \Exception $previous = null)
23
    {
24
        parent::__construct($message, $code, $previous);
25
    }
26
}
27