mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix style and add config file to php-cs-fixer
This commit is contained in:
parent
485a0cb6fd
commit
fab9e256ab
40 changed files with 2360 additions and 1128 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue