@@ -12,11 +12,10 @@ |
||
12 | 12 | |
13 | 13 | defined('PH7') or exit('Restricted access'); |
14 | 14 | |
15 | -use |
|
16 | -PH7\Framework\Url\Url, |
|
17 | -PH7\Framework\Geo\Misc\Country, |
|
18 | -PH7\Framework\Security\Validate\Validate, |
|
19 | -PH7\Framework\Ip\Ip; |
|
15 | +use PH7\Framework\Url\Url; |
|
16 | +use PH7\Framework\Geo\Misc\Country; |
|
17 | +use PH7\Framework\Security\Validate\Validate; |
|
18 | +use PH7\Framework\Ip\Ip; |
|
20 | 19 | |
21 | 20 | /** Reset the time limit and increase the memory **/ |
22 | 21 | @set_time_limit(0); |
@@ -9,11 +9,10 @@ |
||
9 | 9 | |
10 | 10 | defined('PH7') or exit('Restricted access'); |
11 | 11 | |
12 | -use |
|
13 | -PH7\Framework\Cache\Cache, |
|
14 | -PH7\Framework\Mvc\Request\Http, |
|
15 | -PH7\Framework\Mvc\Router\Uri, |
|
16 | -PH7\Framework\Url\Header; |
|
12 | +use PH7\Framework\Cache\Cache; |
|
13 | +use PH7\Framework\Mvc\Request\Http; |
|
14 | +use PH7\Framework\Mvc\Router\Uri; |
|
15 | +use PH7\Framework\Url\Header; |
|
17 | 16 | |
18 | 17 | class AdsFormProcess extends Form |
19 | 18 | { |
@@ -9,9 +9,8 @@ |
||
9 | 9 | |
10 | 10 | defined('PH7') or exit('Restricted access'); |
11 | 11 | |
12 | -use |
|
13 | -PH7\Framework\Cache\Cache, |
|
14 | -PH7\Framework\Mvc\Model\Module as ModuleModel; |
|
12 | +use PH7\Framework\Cache\Cache; |
|
13 | +use PH7\Framework\Mvc\Model\Module as ModuleModel; |
|
15 | 14 | |
16 | 15 | class DisableModuleFormProcess extends Form |
17 | 16 | { |
@@ -7,11 +7,9 @@ |
||
7 | 7 | */ |
8 | 8 | namespace PH7; |
9 | 9 | |
10 | -use |
|
11 | -PH7\Framework\Layout\Html\Design, |
|
12 | -PH7\Framework\Mvc\Model\DbConfig, |
|
13 | -PH7\Framework\Cache\Cache, |
|
14 | -PH7\Framework\Url\Header; |
|
10 | +use PH7\Framework\Layout\Html\Design; |
|
11 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
12 | +use PH7\Framework\Url\Header; |
|
15 | 13 | |
16 | 14 | class MainController extends Controller |
17 | 15 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * Set the default language name. |
49 | 49 | * |
50 | 50 | * @param string $sNewDefLang Prefix of the language. |
51 | - * @return object $this |
|
51 | + * @return Lang $this |
|
52 | 52 | */ |
53 | 53 | public function setDefaultLang($sNewDefLang) |
54 | 54 | { |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | /** |
61 | 61 | * Set the user language name. |
62 | 62 | * |
63 | - * @param string $sNewDefaultLang Prefix of the language. |
|
64 | - * @return object $this |
|
63 | + * @return Lang $this |
|
65 | 64 | */ |
66 | 65 | public function setUserLang($sNewUserLang) |
67 | 66 | { |
@@ -120,7 +119,7 @@ discard block |
||
120 | 119 | * |
121 | 120 | * @param string $sFileName The language filename (e.g., "global"). |
122 | 121 | * @param string $sPath If you want to change the default path (the path to the current module), you can specify the path. Default NULL |
123 | - * @return object $this |
|
122 | + * @return Lang $this |
|
124 | 123 | */ |
125 | 124 | public function load($sFileName, $sPath = null) |
126 | 125 | { |
@@ -134,7 +133,7 @@ discard block |
||
134 | 133 | /** |
135 | 134 | * Loading language files. |
136 | 135 | * |
137 | - * @return object $this |
|
136 | + * @return Lang $this |
|
138 | 137 | * @throws \PH7\Framework\Translate\Exception If the language file is not found. |
139 | 138 | */ |
140 | 139 | public function init() |
@@ -202,7 +201,6 @@ discard block |
||
202 | 201 | /** |
203 | 202 | * Language helper function. |
204 | 203 | * |
205 | - * @param string $sVar [, string $... ] |
|
206 | 204 | * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table). |
207 | 205 | */ |
208 | 206 | function t(...$aTokens) |