@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare( strict_types=1 ); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace BotRiconferme; |
| 4 | 4 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * @param Logger $logger |
| 25 | 25 | * @param Controller $controller |
| 26 | 26 | */ |
| 27 | - public function __construct( Logger $logger, Controller $controller ) { |
|
| 27 | + public function __construct ( Logger $logger, Controller $controller ) { |
|
| 28 | 28 | $this->setLogger( $logger ); |
| 29 | 29 | $this->setConfig( Config::getInstance() ); |
| 30 | 30 | $this->setController( $controller ); |
@@ -33,14 +33,14 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @return LoggerInterface |
| 35 | 35 | */ |
| 36 | - protected function getLogger() : LoggerInterface { |
|
| 36 | + protected function getLogger () : LoggerInterface { |
|
| 37 | 37 | return $this->logger; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @inheritDoc |
| 42 | 42 | */ |
| 43 | - public function setLogger( LoggerInterface $logger ) { |
|
| 43 | + public function setLogger ( LoggerInterface $logger ) { |
|
| 44 | 44 | $this->logger = $logger; |
| 45 | 45 | } |
| 46 | 46 | |
@@ -50,35 +50,35 @@ discard block |
||
| 50 | 50 | * @param string $optname |
| 51 | 51 | * @return mixed |
| 52 | 52 | */ |
| 53 | - protected function getOpt( string $optname ) { |
|
| 53 | + protected function getOpt ( string $optname ) { |
|
| 54 | 54 | return $this->getConfig()->get( $optname ); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * @return Config |
| 59 | 59 | */ |
| 60 | - protected function getConfig() : Config { |
|
| 60 | + protected function getConfig () : Config { |
|
| 61 | 61 | return $this->config; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * @param Config $cfg |
| 66 | 66 | */ |
| 67 | - protected function setConfig( Config $cfg ) { |
|
| 67 | + protected function setConfig ( Config $cfg ) { |
|
| 68 | 68 | $this->config = $cfg; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * @return Controller |
| 73 | 73 | */ |
| 74 | - protected function getController() : Controller { |
|
| 74 | + protected function getController () : Controller { |
|
| 75 | 75 | return $this->controller; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * @param Controller $controller |
| 80 | 80 | */ |
| 81 | - protected function setController( Controller $controller ) { |
|
| 81 | + protected function setController ( Controller $controller ) { |
|
| 82 | 82 | $this->controller = $controller; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | * @param string $key |
| 89 | 89 | * @return Message |
| 90 | 90 | */ |
| 91 | - protected function msg( string $key ) : Message { |
|
| 91 | + protected function msg ( string $key ) : Message { |
|
| 92 | 92 | return new Message( $key ); |
| 93 | 93 | } |
| 94 | 94 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * @param string $title |
| 99 | 99 | * @return Page |
| 100 | 100 | */ |
| 101 | - protected function getPage( string $title ) : Page { |
|
| 101 | + protected function getPage ( string $title ) : Page { |
|
| 102 | 102 | return new Page( $title, $this->getController() ); |
| 103 | 103 | } |
| 104 | 104 | } |