@@ -76,9 +76,9 @@ |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | - * @param mixed $model |
|
79 | + * @param \keeko\core\model\Group $model |
|
80 | 80 | * @param mixed $data |
81 | - * @return mixed The model |
|
81 | + * @return \keeko\core\model\Group The model |
|
82 | 82 | */ |
83 | 83 | public function hydrate($model, $data) { |
84 | 84 | // attributes |
@@ -85,9 +85,9 @@ |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
88 | - * @param mixed $model |
|
88 | + * @param Localization $model |
|
89 | 89 | * @param mixed $data |
90 | - * @return mixed The model |
|
90 | + * @return Localization The model |
|
91 | 91 | */ |
92 | 92 | public function hydrate($model, $data) { |
93 | 93 | // attributes |
@@ -62,9 +62,9 @@ |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
65 | - * @param mixed $model |
|
65 | + * @param \keeko\core\model\Module $model |
|
66 | 66 | * @param mixed $data |
67 | - * @return mixed The model |
|
67 | + * @return \keeko\core\model\Module The model |
|
68 | 68 | */ |
69 | 69 | public function hydrate($model, $data) { |
70 | 70 | // attributes |
@@ -55,9 +55,9 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @param mixed $model |
|
58 | + * @param \keeko\core\model\Preference $model |
|
59 | 59 | * @param mixed $data |
60 | - * @return mixed The model |
|
60 | + * @return \keeko\core\model\Preference The model |
|
61 | 61 | */ |
62 | 62 | public function hydrate($model, $data) { |
63 | 63 | // attributes |
@@ -66,9 +66,9 @@ |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
69 | - * @param mixed $model |
|
69 | + * @param \keeko\core\model\Session $model |
|
70 | 70 | * @param mixed $data |
71 | - * @return mixed The model |
|
71 | + * @return \keeko\core\model\Session The model |
|
72 | 72 | */ |
73 | 73 | public function hydrate($model, $data) { |
74 | 74 | // attributes |
@@ -78,9 +78,9 @@ |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * @param mixed $model |
|
81 | + * @param \keeko\core\model\User $model |
|
82 | 82 | * @param mixed $data |
83 | - * @return mixed The model |
|
83 | + * @return \keeko\core\model\User The model |
|
84 | 84 | */ |
85 | 85 | public function hydrate($model, $data) { |
86 | 86 | // attributes |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $attribs = isset($data['attributes']) ? $data['attributes'] : []; |
100 | 100 | |
101 | 101 | $service = $this->getServiceContainer(); |
102 | - $model = HydrateUtils::hydrate($attribs, $model, ['id', 'user-name', 'password' => function ($value) use ($service) { |
|
102 | + $model = HydrateUtils::hydrate($attribs, $model, ['id', 'user-name', 'password' => function($value) use ($service) { |
|
103 | 103 | if (class_exists('keeko\core\normalizer\PasswordNormalizer')) { |
104 | 104 | $normalizer = new keeko\core\normalizer\PasswordNormalizer(); |
105 | 105 | $normalizer->setServiceContainer($service); |
@@ -3,7 +3,7 @@ |
||
3 | 3 | $serviceContainer->checkVersion('2.0.0-dev'); |
4 | 4 | $serviceContainer->setAdapterClass('keeko', 'mysql'); |
5 | 5 | $manager = new \Propel\Runtime\Connection\ConnectionManagerSingle(); |
6 | -$manager->setConfiguration(array ( |
|
6 | +$manager->setConfiguration(array( |
|
7 | 7 | 'dsn' => 'mysql:host=localhost;dbname=keeko', |
8 | 8 | 'user' => 'root', |
9 | 9 | 'password' => '', |
@@ -8,6 +8,6 @@ |
||
8 | 8 | public $message = 'Username %username% is already been taken'; |
9 | 9 | |
10 | 10 | public function validatedBy() { |
11 | - return get_class($this).'Validator'; |
|
11 | + return get_class($this) . 'Validator'; |
|
12 | 12 | } |
13 | 13 | } |
14 | 14 | \ No newline at end of file |
@@ -8,6 +8,6 @@ |
||
8 | 8 | public $message = 'Username %username% is already been taken'; |
9 | 9 | |
10 | 10 | public function validatedBy() { |
11 | - return get_class($this).'Validator'; |
|
11 | + return get_class($this) . 'Validator'; |
|
12 | 12 | } |
13 | 13 | } |
14 | 14 | \ No newline at end of file |