@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | use HnrAzevedo\Datamanager\DatamanagerException; |
12 | 12 | use Model\User; |
13 | 13 | |
14 | -try{ |
|
14 | +try { |
|
15 | 15 | $entity = new User(); |
16 | 16 | |
17 | 17 | /* Set new info for insert in database */ |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /* Insert entity in database */ |
25 | 25 | $entity->persist(); |
26 | 26 | |
27 | -}catch(DatamanagerException $er){ |
|
27 | +} catch (DatamanagerException $er) { |
|
28 | 28 | |
29 | 29 | die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}."); |
30 | 30 |
@@ -5,13 +5,13 @@ |
||
5 | 5 | use HnrAzevedo\Datamanager\Model as Entity; |
6 | 6 | |
7 | 7 | /** |
8 | - * @property string $name |
|
9 | - * @property string $email |
|
10 | - * @property string $password |
|
11 | - * @property string $birth |
|
12 | - * @property string $register |
|
13 | - * @property string $weight |
|
14 | - */ |
|
8 | + * @property string $name |
|
9 | + * @property string $email |
|
10 | + * @property string $password |
|
11 | + * @property string $birth |
|
12 | + * @property string $register |
|
13 | + * @property string $weight |
|
14 | + */ |
|
15 | 15 | class User extends Entity{ |
16 | 16 | |
17 | 17 | public function __construct() |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * @property string $register |
13 | 13 | * @property string $weight |
14 | 14 | */ |
15 | -class User extends Entity{ |
|
15 | +class User extends Entity { |
|
16 | 16 | |
17 | 17 | public function __construct() |
18 | 18 | { |