Fix codestyle.

This commit is contained in:
Github Actions Bot 2020-07-03 01:48:42 +00:00
parent 86b656a25c
commit 714128f614
32 changed files with 7 additions and 67 deletions

View File

@ -149,8 +149,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -102,8 +102,6 @@ namespace controllers\internals;
* *
* @param int $id_user : User id * @param int $id_user : User id
* @param string $condition : Condition string to verify * @param string $condition : Condition string to verify
*
* @return array
*/ */
public function get_contacts_for_condition_and_user(int $id_user, string $condition): array public function get_contacts_for_condition_and_user(int $id_user, string $condition): array
{ {
@ -130,8 +128,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -343,8 +343,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -58,8 +58,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -129,8 +129,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -129,8 +129,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -99,8 +99,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -264,8 +264,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -13,9 +13,9 @@ namespace controllers\internals;
use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
/** /**
* Class to analyse rules used by conditional groups. * Class to analyse rules used by conditional groups.
*/ */
class Ruler extends \descartes\InternalController class Ruler extends \descartes\InternalController
{ {
private $expression_language; private $expression_language;

View File

@ -418,8 +418,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -210,8 +210,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -55,8 +55,6 @@ namespace controllers\internals;
* @param int $id_user : user id * @param int $id_user : user id
* @param string $name : setting name * @param string $name : setting name
* @param mixed $value : value of the setting * @param mixed $value : value of the setting
*
* @return bool
*/ */
public function create(int $id_user, string $name, $value): bool public function create(int $id_user, string $name, $value): bool
{ {
@ -90,8 +88,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -66,8 +66,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -137,8 +137,6 @@ namespace controllers\internals;
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
abstract protected function get_model(): \descartes\Model; abstract protected function get_model(): \descartes\Model;
} }

View File

@ -137,8 +137,6 @@ class Webhook extends StandardController
/** /**
* Get the model for the Controller. * Get the model for the Controller.
*
* @return \descartes\Model
*/ */
protected function get_model(): \descartes\Model protected function get_model(): \descartes\Model
{ {

View File

@ -14,9 +14,9 @@ namespace controllers\publics;
use Monolog\Handler\StreamHandler; use Monolog\Handler\StreamHandler;
use Monolog\Logger; use Monolog\Logger;
/** /**
* Controller of callback pages, like sms status update notification. * Controller of callback pages, like sms status update notification.
*/ */
class Callback extends \descartes\Controller class Callback extends \descartes\Controller
{ {
private $logger; private $logger;

View File

@ -66,7 +66,6 @@ abstract class AbstractDaemon
/** /**
* Used to handle properly SIGINT, SIGTERM, SIGCHLD and SIGHUP. * Used to handle properly SIGINT, SIGTERM, SIGCHLD and SIGHUP.
* *
* @param int $signal
* @param mixed $signinfo * @param mixed $signinfo
*/ */
protected function handle_signal(int $signal, $signinfo) protected function handle_signal(int $signal, $signinfo)

View File

@ -68,6 +68,7 @@ class Phone extends AbstractDaemon
if ((microtime(true) - $this->last_message_at) > $this->max_inactivity) if ((microtime(true) - $this->last_message_at) > $this->max_inactivity)
{ {
posix_kill(getmypid(), SIGTERM); //Send exit signal to the current process posix_kill(getmypid(), SIGTERM); //Send exit signal to the current process
return false; return false;
} }
} }

View File

@ -15,8 +15,6 @@ namespace models;
{ {
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -28,8 +28,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -41,8 +41,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -28,8 +28,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -75,8 +75,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -241,8 +241,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -40,8 +40,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -257,8 +257,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -248,8 +248,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -167,8 +167,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -29,8 +29,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -28,8 +28,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {

View File

@ -190,8 +190,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
abstract protected function get_table_name(): string; abstract protected function get_table_name(): string;
} }

View File

@ -31,8 +31,6 @@ namespace models;
/** /**
* Return table name. * Return table name.
*
* @return string
*/ */
protected function get_table_name(): string protected function get_table_name(): string
{ {