@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * Returns a Cache Item representing the specified key. |
| 48 | 48 | * |
| 49 | 49 | * @param string $key Cache ID |
| 50 | - * @param mixed $nameSpace |
|
| 50 | + * @param string $nameSpace |
|
| 51 | 51 | * |
| 52 | 52 | * @return mixed |
| 53 | 53 | */ |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * @param string $key Cache ID |
| 76 | 76 | * @param mixed $value Data to store, supports string, array, objects |
| 77 | 77 | * @param int $duration Cache TTL (in seconds) |
| 78 | - * @param mixed $nameSpace |
|
| 78 | + * @param string $nameSpace |
|
| 79 | 79 | * |
| 80 | 80 | * @return bool |
| 81 | 81 | */ |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * @param string $key Cache ID |
| 94 | 94 | * @param mixed $nameSpace |
| 95 | 95 | * |
| 96 | - * @return bool |
|
| 96 | + * @return boolean|null |
|
| 97 | 97 | */ |
| 98 | 98 | public static function delete($nameSpace, $key) |
| 99 | 99 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | /** |
| 104 | 104 | * Deletes all items in the cache. |
| 105 | 105 | * |
| 106 | - * @return bool |
|
| 106 | + * @return boolean|null |
|
| 107 | 107 | */ |
| 108 | 108 | public static function clear() |
| 109 | 109 | { |
@@ -142,7 +142,6 @@ discard block |
||
| 142 | 142 | * @param string $nameSpace |
| 143 | 143 | * @param string $key Cache ID |
| 144 | 144 | * @param mixed $value Data to store |
| 145 | - * @param int $duration Cache TTL (in seconds) |
|
| 146 | 145 | * |
| 147 | 146 | * @return bool |
| 148 | 147 | */ |
@@ -157,7 +156,7 @@ discard block |
||
| 157 | 156 | * @param string $nameSpace |
| 158 | 157 | * @param string $key Cache ID |
| 159 | 158 | * |
| 160 | - * @return bool |
|
| 159 | + * @return boolean|null |
|
| 161 | 160 | */ |
| 162 | 161 | public static function staticDelete($nameSpace, $key) |
| 163 | 162 | { |
@@ -167,7 +166,7 @@ discard block |
||
| 167 | 166 | /** |
| 168 | 167 | * Deletes all items in the static cache. |
| 169 | 168 | * |
| 170 | - * @return bool |
|
| 169 | + * @return boolean|null |
|
| 171 | 170 | */ |
| 172 | 171 | public static function staticClear() |
| 173 | 172 | { |
@@ -177,7 +176,7 @@ discard block |
||
| 177 | 176 | /** |
| 178 | 177 | * Clear the opcache after the script finishes. |
| 179 | 178 | * |
| 180 | - * @return bool |
|
| 179 | + * @return false|null |
|
| 181 | 180 | */ |
| 182 | 181 | public static function clearOpcache() |
| 183 | 182 | { |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | if (static::$clearOpcache) { |
| 185 | 185 | return false; |
| 186 | 186 | } |
| 187 | - register_shutdown_function(function () { |
|
| 187 | + register_shutdown_function(function() { |
|
| 188 | 188 | static::resetOpcache(); |
| 189 | 189 | }); |
| 190 | 190 | static::$clearOpcache = true; |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Returns a cache item representing the specified key. |
| 28 | 28 | * |
| 29 | - * @param string|array $key Cache ID |
|
| 29 | + * @param string $key Cache ID |
|
| 30 | 30 | * |
| 31 | 31 | * @return string|array |
| 32 | 32 | */ |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Confirms if the cache contains specified cache item. |
| 40 | 40 | * |
| 41 | - * @param string|array $key Cache ID |
|
| 41 | + * @param string $key Cache ID |
|
| 42 | 42 | * |
| 43 | 43 | * @return bool |
| 44 | 44 | */ |
@@ -66,9 +66,9 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * Removes the item from the cache. |
| 68 | 68 | * |
| 69 | - * @param string|array $key Cache ID |
|
| 69 | + * @param string $key Cache ID |
|
| 70 | 70 | * |
| 71 | - * @return bool |
|
| 71 | + * @return boolean|null |
|
| 72 | 72 | */ |
| 73 | 73 | public function delete($key) |
| 74 | 74 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * Deletes all items in the cache. |
| 80 | 80 | * |
| 81 | - * @return bool |
|
| 81 | + * @return boolean|null |
|
| 82 | 82 | */ |
| 83 | 83 | public function clear() |
| 84 | 84 | { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Get all js configuratin in json. |
| 54 | 54 | * |
| 55 | - * @return type |
|
| 55 | + * @return string |
|
| 56 | 56 | */ |
| 57 | 57 | public static function getJsEnv() |
| 58 | 58 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * Get integer config value. |
| 88 | 88 | * |
| 89 | 89 | * @param string $key |
| 90 | - * @param bool $default |
|
| 90 | + * @param integer $default |
|
| 91 | 91 | * |
| 92 | 92 | * @return int |
| 93 | 93 | */ |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | /** |
| 95 | 95 | * Error handler. |
| 96 | 96 | * |
| 97 | - * @param string $errno |
|
| 97 | + * @param integer $errno |
|
| 98 | 98 | * @param string $errstr |
| 99 | 99 | * @param string $errfile |
| 100 | 100 | * @param string $errline |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Add error to log. |
| 43 | 43 | * |
| 44 | - * @param mixed $value |
|
| 44 | + * @param string $value |
|
| 45 | 45 | * @param string $category |
| 46 | 46 | * |
| 47 | 47 | * @return void |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * Add warning to log. |
| 56 | 56 | * |
| 57 | - * @param mixed $value |
|
| 57 | + * @param string $value |
|
| 58 | 58 | * @param string $category |
| 59 | 59 | * |
| 60 | 60 | * @return void |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public static function init() |
| 35 | 35 | { |
| 36 | - register_shutdown_function(function () { |
|
| 36 | + register_shutdown_function(function() { |
|
| 37 | 37 | static::flush(); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -390,7 +390,7 @@ |
||
| 390 | 390 | * |
| 391 | 391 | * @param string $merchantParameters |
| 392 | 392 | * |
| 393 | - * @return array |
|
| 393 | + * @return string |
|
| 394 | 394 | */ |
| 395 | 395 | private function decodeMerchantParameters(string $merchantParameters): array |
| 396 | 396 | { |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * @param string $moduleName |
| 69 | 69 | * @param bool $fetch |
| 70 | 70 | * |
| 71 | - * @return string|true - html data |
|
| 71 | + * @return string|boolean - html data |
|
| 72 | 72 | */ |
| 73 | 73 | public function view(string $templateName, string $moduleName = '', bool $fetch = false) |
| 74 | 74 | { |
@@ -101,6 +101,9 @@ discard block |
||
| 101 | 101 | return '__API_PATH__' != Config::$apiUrl; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | + /** |
|
| 105 | + * @param Request $request |
|
| 106 | + */ |
|
| 104 | 107 | protected function triggerPreProcess($handler, $request) |
| 105 | 108 | { |
| 106 | 109 | if ($request->isAjax()) { |
@@ -110,6 +113,9 @@ discard block |
||
| 110 | 113 | $handler->preProcess(); |
| 111 | 114 | } |
| 112 | 115 | |
| 116 | + /** |
|
| 117 | + * @param Request $request |
|
| 118 | + */ |
|
| 113 | 119 | protected function triggerPostProcess($handler, $request) |
| 114 | 120 | { |
| 115 | 121 | if ($request->isAjax()) { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Function to get the view value. |
| 39 | 39 | * |
| 40 | - * @return string |
|
| 40 | + * @return boolean |
|
| 41 | 41 | */ |
| 42 | 42 | public function setIsNewRecord() |
| 43 | 43 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param string $value |
| 64 | 64 | * |
| 65 | - * @return Field |
|
| 65 | + * @return BaseField |
|
| 66 | 66 | */ |
| 67 | 67 | public function setDisplayValue($value): self |
| 68 | 68 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * |
| 76 | 76 | * @param string $value |
| 77 | 77 | * |
| 78 | - * @return \self |
|
| 78 | + * @return BaseField |
|
| 79 | 79 | */ |
| 80 | 80 | public function setModuleName($value) |
| 81 | 81 | { |
@@ -224,9 +224,8 @@ discard block |
||
| 224 | 224 | /** |
| 225 | 225 | * Gets value to edit. |
| 226 | 226 | * |
| 227 | - * @param mixed $value |
|
| 228 | 227 | * |
| 229 | - * @return mixed |
|
| 228 | + * @return string |
|
| 230 | 229 | */ |
| 231 | 230 | public function getEditViewDisplayValue() |
| 232 | 231 | { |
@@ -236,7 +235,7 @@ discard block |
||
| 236 | 235 | /** |
| 237 | 236 | * Function to get the raw value. |
| 238 | 237 | * |
| 239 | - * @return Value for the given key |
|
| 238 | + * @return string for the given key |
|
| 240 | 239 | */ |
| 241 | 240 | public function getRawValue() |
| 242 | 241 | { |
@@ -251,7 +250,7 @@ discard block |
||
| 251 | 250 | * |
| 252 | 251 | * @param string $value |
| 253 | 252 | * |
| 254 | - * @return Field |
|
| 253 | + * @return BaseField |
|
| 255 | 254 | */ |
| 256 | 255 | public function setRawValue($value) |
| 257 | 256 | { |
@@ -262,7 +261,7 @@ discard block |
||
| 262 | 261 | /** |
| 263 | 262 | * Validator. |
| 264 | 263 | * |
| 265 | - * @return mixed |
|
| 264 | + * @return string |
|
| 266 | 265 | */ |
| 267 | 266 | public function getValidator() |
| 268 | 267 | { |