Fix style and add config file to php-cs-fixer

This commit is contained in:
osaajani 2019-10-30 00:30:39 +01:00
parent 485a0cb6fd
commit fab9e256ab
40 changed files with 2360 additions and 1128 deletions

View file

@ -1,5 +1,16 @@
<?php
namespace controllers\internals;
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace controllers\internals;
class Setting extends \descartes\InternalController
{
@ -11,7 +22,8 @@
}
/**
* Return all settings
* Return all settings.
*
* @return array || false
*/
public function all()
@ -20,9 +32,11 @@
}
/**
* Update a setting by his name
* Update a setting by his name.
*
* @param mixed $value
*/
public function update(string $name, $value) : bool
public function update(string $name, $value): bool
{
return (bool) $this->model_setting->update($name, $value);
}