mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 06:28:40 +00:00
Fix switch catch spacing
This commit is contained in:
parent
6289761103
commit
7e11c3ede3
|
|
@ -75,7 +75,7 @@ class Backpack
|
||||||
|
|
||||||
public function pack(int $type)
|
public function pack(int $type)
|
||||||
{
|
{
|
||||||
switch($type) {
|
switch ($type) {
|
||||||
case AlgorithmType::BRUTEFORCE:
|
case AlgorithmType::BRUTEFORCE:
|
||||||
return $this->bruteforce();
|
return $this->bruteforce();
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ class L11nManager
|
||||||
if (!isset($this->language[$code][$module][$translation])) {
|
if (!isset($this->language[$code][$module][$translation])) {
|
||||||
return 'ERROR';
|
return 'ERROR';
|
||||||
}
|
}
|
||||||
} catch(\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
FileLogger::getInstance()->warning(FileLogger::MSG_FULL, [
|
FileLogger::getInstance()->warning(FileLogger::MSG_FULL, [
|
||||||
'message' => 'Undefined translation for \'' . $code . '/' . $module . '/' . $translation . '\'.',
|
'message' => 'Undefined translation for \'' . $code . '/' . $module . '/' . $translation . '\'.',
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ final class Storage
|
||||||
$env = $env::getInstance();
|
$env = $env::getInstance();
|
||||||
|
|
||||||
self::$registered[$stg] = $env;
|
self::$registered[$stg] = $env;
|
||||||
} catch(\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
throw new \Exception();
|
throw new \Exception();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ abstract class ViewAbstract implements \Serializable
|
||||||
if (is_array($includeData)) {
|
if (is_array($includeData)) {
|
||||||
return json_encode($includeData);
|
return json_encode($includeData);
|
||||||
}
|
}
|
||||||
} catch(\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$ob = '';
|
$ob = '';
|
||||||
} finally {
|
} finally {
|
||||||
return $ob;
|
return $ob;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user