@@ -55,6 +55,5 @@ |
||
55 | 55 | * @template TDbConfigurationEntity as \Platine\Orm\Entity |
56 | 56 | * @extends RepositoryInterface<TDbConfigurationEntity> |
57 | 57 | */ |
58 | -interface ConfigurationRepositoryInterface extends RepositoryInterface |
|
59 | -{ |
|
58 | +interface ConfigurationRepositoryInterface extends RepositoryInterface { |
|
60 | 59 | } |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class BaseCommand |
58 | 58 | * @package Platine\Framework\Console |
59 | 59 | */ |
60 | -abstract class BaseCommand extends Command |
|
61 | -{ |
|
60 | +abstract class BaseCommand extends Command { |
|
62 | 61 | /** |
63 | 62 | * The Application instance |
64 | 63 | * @var Application |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param string|object $fullClassName |
100 | 100 | * @return string |
101 | 101 | */ |
102 | - public function getClassBaseName(string|object $fullClassName): string |
|
102 | + public function getClassBaseName(string | object $fullClassName): string |
|
103 | 103 | { |
104 | 104 | if (is_object($fullClassName)) { |
105 | 105 | $fullClassName = get_class($fullClassName); |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * @param string|array<string> $data |
219 | 219 | * @return void |
220 | 220 | */ |
221 | - public function setReaderContent(Reader $reader, string $filename, string|array $data): void |
|
221 | + public function setReaderContent(Reader $reader, string $filename, string | array $data): void |
|
222 | 222 | { |
223 | 223 | if (is_array($data)) { |
224 | 224 | $data = implode(PHP_EOL, $data); |
@@ -142,10 +142,10 @@ |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * Get watch |
|
146 | - * @param string $name |
|
147 | - * @return Timer |
|
148 | - */ |
|
145 | + * Get watch |
|
146 | + * @param string $name |
|
147 | + * @return Timer |
|
148 | + */ |
|
149 | 149 | public function getWatch(string $name): Timer |
150 | 150 | { |
151 | 151 | if (array_key_exists($name, $this->timers) === false) { |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class Watch |
55 | 55 | * @package Platine\Framework\Helper\Timer |
56 | 56 | */ |
57 | -class Watch |
|
58 | -{ |
|
57 | +class Watch { |
|
59 | 58 | /** |
60 | 59 | * The default name to use if none is provided |
61 | 60 | */ |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class Timer |
55 | 55 | * @package Platine\Framework\Helper\Timer |
56 | 56 | */ |
57 | -class Timer |
|
58 | -{ |
|
57 | +class Timer { |
|
59 | 58 | public const NOT_STARTED = 0; |
60 | 59 | public const STARTED = 1; |
61 | 60 | public const PAUSED = 2; |
@@ -89,8 +88,7 @@ discard block |
||
89 | 88 | * Create new timer instance |
90 | 89 | * @param string $name |
91 | 90 | */ |
92 | - public function __construct(string $name) |
|
93 | - { |
|
91 | + public function __construct(string $name) { |
|
94 | 92 | $this->name = $name; |
95 | 93 | } |
96 | 94 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | public function register(): void |
67 | 67 | { |
68 | 68 | $this->app->bind(AdapterInterface::class, OpenSSL::class); |
69 | - $this->app->bind(Encryption::class, function (ContainerInterface $app) { |
|
69 | + $this->app->bind(Encryption::class, function(ContainerInterface $app) { |
|
70 | 70 | $e = new Encryption($app->get(AdapterInterface::class)); |
71 | 71 | $e->setSecret($app->get(Config::class)->get('security.encryption.key', '')); |
72 | 72 |
@@ -58,8 +58,7 @@ |
||
58 | 58 | * @class EncryptionServiceProvider |
59 | 59 | * @package Platine\Framework\Service\Provider |
60 | 60 | */ |
61 | -class EncryptionServiceProvider extends ServiceProvider |
|
62 | -{ |
|
61 | +class EncryptionServiceProvider extends ServiceProvider { |
|
63 | 62 | /** |
64 | 63 | * {@inheritdoc} |
65 | 64 | */ |
@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * @class ResponseEmitter |
59 | 59 | * @package Platine\Framework\Http\Emitter |
60 | 60 | */ |
61 | -class ResponseEmitter implements EmitterInterface |
|
62 | -{ |
|
61 | +class ResponseEmitter implements EmitterInterface { |
|
63 | 62 | /** |
64 | 63 | * The response buffer length |
65 | 64 | * @var int|null |
@@ -70,8 +69,7 @@ discard block |
||
70 | 69 | * Create new instance |
71 | 70 | * @param int|null $bufferLength |
72 | 71 | */ |
73 | - public function __construct(?int $bufferLength = null) |
|
74 | - { |
|
72 | + public function __construct(?int $bufferLength = null) { |
|
75 | 73 | if ($bufferLength !== null && $bufferLength < 1) { |
76 | 74 | throw new InvalidArgumentException(sprintf( |
77 | 75 | 'The response buffer length must be greater than zero; received [%d].', |
@@ -59,8 +59,7 @@ |
||
59 | 59 | * @class BaseMakeActionCommand |
60 | 60 | * @package Platine\Framework\Console |
61 | 61 | */ |
62 | -abstract class BaseMakeActionCommand extends MakeCommand |
|
63 | -{ |
|
62 | +abstract class BaseMakeActionCommand extends MakeCommand { |
|
64 | 63 | /** |
65 | 64 | * The form parameter class name |
66 | 65 | * @var class-string |
@@ -65,8 +65,7 @@ |
||
65 | 65 | * @class MakeResourceActionCommand |
66 | 66 | * @package Platine\Framework\Console\Command |
67 | 67 | */ |
68 | -class MakeResourceActionCommand extends BaseMakeActionCommand |
|
69 | -{ |
|
68 | +class MakeResourceActionCommand extends BaseMakeActionCommand { |
|
70 | 69 | /** |
71 | 70 | * {@inheritdoc} |
72 | 71 | */ |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | parent::__construct($application, $filesystem); |
84 | 84 | |
85 | 85 | $this->setName('make:resource') |
86 | - ->setDescription('Command to generate resource action'); |
|
86 | + ->setDescription('Command to generate resource action'); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | $this->addProperty($this->repositoryClass); |
103 | 103 | } |
104 | 104 | |
105 | - /** |
|
106 | - * {@inheritdoc} |
|
107 | - */ |
|
105 | + /** |
|
106 | + * {@inheritdoc} |
|
107 | + */ |
|
108 | 108 | public function getClassTemplate(): string |
109 | 109 | { |
110 | 110 | return <<<EOF |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class MakeCrudActionCommand |
57 | 57 | * @package Platine\Framework\Console\Command |
58 | 58 | */ |
59 | -class MakeCrudActionCommand extends BaseMakeActionCommand |
|
60 | -{ |
|
59 | +class MakeCrudActionCommand extends BaseMakeActionCommand { |
|
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
63 | 62 | */ |
@@ -75,12 +75,12 @@ |
||
75 | 75 | parent::__construct($application, $filesystem); |
76 | 76 | |
77 | 77 | $this->setName('make:crud') |
78 | - ->setDescription('Command to generate platine CRUD action'); |
|
78 | + ->setDescription('Command to generate platine CRUD action'); |
|
79 | 79 | } |
80 | 80 | |
81 | - /** |
|
82 | - * {@inheritdoc} |
|
83 | - */ |
|
81 | + /** |
|
82 | + * {@inheritdoc} |
|
83 | + */ |
|
84 | 84 | public function getClassTemplate(): string |
85 | 85 | { |
86 | 86 | return <<<EOF |