@@ -128,7 +128,7 @@ |
||
| 128 | 128 | $this->view->assign('isDisabled', ($this->view->isDemo || $this->view->actionId === self::ACTION_NOT_USER_VIEW) ? 'disabled' : ''); |
| 129 | 129 | $this->view->assign('isReadonly', $this->view->isDisabled ? 'readonly' : ''); |
| 130 | 130 | |
| 131 | - if ($this->UserData->isUserIsAdminApp()){ |
|
| 131 | + if ($this->UserData->isUserIsAdminApp()) { |
|
| 132 | 132 | $this->view->assign('users', User::getItem()->getItemsForSelect()); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | AccountsSearchItem::$isDemoMode = Checks::demoIsEnabled(); |
| 185 | 185 | |
| 186 | 186 | if (AccountsSearchItem::$wikiEnabled) { |
| 187 | - $wikiFilter = array_map(function ($value) { |
|
| 187 | + $wikiFilter = array_map(function($value) { |
|
| 188 | 188 | return preg_quote($value, '/'); |
| 189 | 189 | }, Config::getConfig()->getWikiFilter()); |
| 190 | 190 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | $favorites = []; |
| 56 | 56 | |
| 57 | - foreach($queryRes as $favorite){ |
|
| 57 | + foreach ($queryRes as $favorite) { |
|
| 58 | 58 | $favorites[] = (int)$favorite->accfavorite_accountId; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -282,7 +282,7 @@ |
||
| 282 | 282 | if (!isset($_SESSION[$cacheName][$accountId]) |
| 283 | 283 | || $_SESSION[$cacheName][$accountId]['time'] < (int)strtotime($this->AccountSearchData->getAccountDateEdit()) |
| 284 | 284 | ) { |
| 285 | - $session =& $_SESSION[$cacheName][$accountId]; |
|
| 285 | + $session = & $_SESSION[$cacheName][$accountId]; |
|
| 286 | 286 | |
| 287 | 287 | $session['users'] = []; |
| 288 | 288 | $session['groups'] = []; |
@@ -110,9 +110,9 @@ |
||
| 110 | 110 | const ACTION_MGM_PLUGINS_NEW = 690; |
| 111 | 111 | const ACTION_MGM_PLUGINS_VIEW = 691; |
| 112 | 112 | const ACTION_MGM_PLUGINS_SEARCH = 695; |
| 113 | - const ACTION_MGM_PLUGINS_ENABLE= 696; |
|
| 114 | - const ACTION_MGM_PLUGINS_DISABLE= 697; |
|
| 115 | - const ACTION_MGM_PLUGINS_RESET= 698; |
|
| 113 | + const ACTION_MGM_PLUGINS_ENABLE = 696; |
|
| 114 | + const ACTION_MGM_PLUGINS_DISABLE = 697; |
|
| 115 | + const ACTION_MGM_PLUGINS_RESET = 698; |
|
| 116 | 116 | const ACTION_USR = 70; |
| 117 | 117 | const ACTION_USR_USERS = 71; |
| 118 | 118 | const ACTION_USR_USERS_VIEW = 710; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | try { |
| 55 | 55 | DB::beginTransaction(); |
| 56 | 56 | |
| 57 | - if ($groupId === 0){ |
|
| 57 | + if ($groupId === 0) { |
|
| 58 | 58 | $groupId = self::$orphanGroupId ?: self::createOrphanGroup(); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | DB::beginTransaction(); |
| 58 | 58 | |
| 59 | - if ($profileId === 0){ |
|
| 59 | + if ($profileId === 0) { |
|
| 60 | 60 | $profileId = self::$orphanProfileId ?: self::createOrphanProfile(); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -264,7 +264,7 @@ |
||
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | $archive = new \PharData($backupFile); |
| 267 | - $archive->buildFromDirectory(Init::$SERVERROOT,'/^(?!backup).*$/'); |
|
| 267 | + $archive->buildFromDirectory(Init::$SERVERROOT, '/^(?!backup).*$/'); |
|
| 268 | 268 | $archive->compress(\Phar::GZ); |
| 269 | 269 | |
| 270 | 270 | unlink($backupFile); |
@@ -218,7 +218,7 @@ |
||
| 218 | 218 | |
| 219 | 219 | if (count($this->details) > 1) { |
| 220 | 220 | if ($translate === true) { |
| 221 | - return implode(PHP_EOL, array_map(function ($detail) use ($translate) { |
|
| 221 | + return implode(PHP_EOL, array_map(function($detail) use ($translate) { |
|
| 222 | 222 | return $this->formatDetail($detail, $translate); |
| 223 | 223 | }, $this->details)); |
| 224 | 224 | } |