Docblocks / coding style improvement

This commit is contained in:
Flavio Copes
2016-01-10 17:17:04 +01:00
parent 68747cc4b8
commit 53bbbf9fc2
4 changed files with 27 additions and 11 deletions

View File

@@ -194,7 +194,8 @@ class AdminController
*
* @return bool True if multilang is active
*/
protected function isMultilang() {
protected function isMultilang()
{
return count($this->grav['config']->get('system.languages.supported', [])) > 1;
}
@@ -1353,7 +1354,8 @@ class AdminController
*
* @return bool True if the action was performed.
*/
protected function taskSwitchlanguage() {
protected function taskSwitchlanguage()
{
$data = $this->post;
if (isset($data['lang'])) {
@@ -1385,7 +1387,8 @@ class AdminController
*
* @return bool True if the action was performed.
*/
protected function taskSaveas() {
protected function taskSaveas()
{
if (!$this->authorizeTask('save', $this->dataPermissions())) {
return;
}