@@ -161,9 +161,9 @@ |
||
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | - * Boot the application |
|
| 165 | - * @return void |
|
| 166 | - */ |
|
| 164 | + * Boot the application |
|
| 165 | + * @return void |
|
| 166 | + */ |
|
| 167 | 167 | public function boot(): void |
| 168 | 168 | { |
| 169 | 169 | if ($this->booted) { |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | protected string $value; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * {@inheritdoc} |
|
| 31 | - */ |
|
| 30 | + * {@inheritdoc} |
|
| 31 | + */ |
|
| 32 | 32 | public function __construct(string $markup, &$tokens, Parser $parser) |
| 33 | 33 | { |
| 34 | 34 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $this->template, |
| 80 | 80 | 'user/login', |
| 81 | 81 | [ |
| 82 | - 'param' => $formParam |
|
| 82 | + 'param' => $formParam |
|
| 83 | 83 | ] |
| 84 | 84 | ); |
| 85 | 85 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $this->template, |
| 92 | 92 | 'user/login', |
| 93 | 93 | [ |
| 94 | - 'param' => $formParam |
|
| 94 | + 'param' => $formParam |
|
| 95 | 95 | ] |
| 96 | 96 | ); |
| 97 | 97 | } |
@@ -32,12 +32,12 @@ |
||
| 32 | 32 | public function setRules(): void |
| 33 | 33 | { |
| 34 | 34 | $this->validator->addRules('username', [ |
| 35 | - new NotEmpty(), |
|
| 36 | - new MinLength(3) |
|
| 35 | + new NotEmpty(), |
|
| 36 | + new MinLength(3) |
|
| 37 | 37 | ]); |
| 38 | 38 | |
| 39 | 39 | $this->validator->addRules('password', [ |
| 40 | - new NotEmpty(), |
|
| 40 | + new NotEmpty(), |
|
| 41 | 41 | ]); |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $this->template, |
| 80 | 80 | 'user/create', |
| 81 | 81 | [ |
| 82 | - 'param' => $formParam |
|
| 82 | + 'param' => $formParam |
|
| 83 | 83 | ] |
| 84 | 84 | ); |
| 85 | 85 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $this->template, |
| 108 | 108 | 'user/create', |
| 109 | 109 | [ |
| 110 | - 'param' => $formParam |
|
| 110 | + 'param' => $formParam |
|
| 111 | 111 | ] |
| 112 | 112 | ); |
| 113 | 113 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $this->template, |
| 88 | 88 | 'user/edit', |
| 89 | 89 | [ |
| 90 | - 'param' => $formParam |
|
| 90 | + 'param' => $formParam |
|
| 91 | 91 | ] |
| 92 | 92 | ); |
| 93 | 93 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $this->template, |
| 114 | 114 | 'user/edit', |
| 115 | 115 | [ |
| 116 | - 'param' => $formParam |
|
| 116 | + 'param' => $formParam |
|
| 117 | 117 | ] |
| 118 | 118 | ); |
| 119 | 119 | } |
@@ -39,30 +39,30 @@ |
||
| 39 | 39 | public function setRules(): void |
| 40 | 40 | { |
| 41 | 41 | $this->validator->addRules('username', [ |
| 42 | - new NotEmpty(), |
|
| 43 | - new MinLength(3), |
|
| 42 | + new NotEmpty(), |
|
| 43 | + new MinLength(3), |
|
| 44 | 44 | new AlphaDash() |
| 45 | 45 | ]); |
| 46 | 46 | |
| 47 | 47 | $this->validator->addRules('lastname', [ |
| 48 | - new NotEmpty(), |
|
| 49 | - new MinLength(3) |
|
| 48 | + new NotEmpty(), |
|
| 49 | + new MinLength(3) |
|
| 50 | 50 | ]); |
| 51 | 51 | |
| 52 | 52 | $this->validator->addRules('firstname', [ |
| 53 | - new NotEmpty(), |
|
| 54 | - new MinLength(3) |
|
| 53 | + new NotEmpty(), |
|
| 54 | + new MinLength(3) |
|
| 55 | 55 | ]); |
| 56 | 56 | |
| 57 | 57 | $this->validator->addRules('age', [ |
| 58 | - new NotEmpty(), |
|
| 59 | - new Number(), |
|
| 60 | - new Min(0), |
|
| 61 | - new Max(100), |
|
| 58 | + new NotEmpty(), |
|
| 59 | + new Number(), |
|
| 60 | + new Min(0), |
|
| 61 | + new Max(100), |
|
| 62 | 62 | ]); |
| 63 | 63 | |
| 64 | 64 | $this->validator->addRules('password', [ |
| 65 | - new MinLength(5), |
|
| 65 | + new MinLength(5), |
|
| 66 | 66 | ]); |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | ) { |
| 83 | 83 | parent::__construct($app, $repository, $schema, $config, $filesystem); |
| 84 | 84 | $this->setName('migration:create') |
| 85 | - ->setDescription('Create a new migration'); |
|
| 85 | + ->setDescription('Create a new migration'); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -159,26 +159,3 @@ discard block |
||
| 159 | 159 | private function getTemplateClass(): string |
| 160 | 160 | { |
| 161 | 161 | return <<<EOF |
| 162 | - <?php |
|
| 163 | - namespace Platine\Framework\Migration; |
|
| 164 | - |
|
| 165 | - use Platine\Framework\Migration\AbstractMigration; |
|
| 166 | - |
|
| 167 | - class %classname% extends AbstractMigration |
|
| 168 | - { |
|
| 169 | - |
|
| 170 | - public function up(): void |
|
| 171 | - { |
|
| 172 | - //Action when migrate up |
|
| 173 | - |
|
| 174 | - } |
|
| 175 | - |
|
| 176 | - public function down(): void |
|
| 177 | - { |
|
| 178 | - //Action when migrate down |
|
| 179 | - |
|
| 180 | - } |
|
| 181 | - } |
|
| 182 | - EOF; |
|
| 183 | - } |
|
| 184 | -} |
|
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | ) { |
| 75 | 75 | parent::__construct($app, $repository, $schema, $config, $filesystem); |
| 76 | 76 | $this->setName('migration:status') |
| 77 | - ->setDescription('Show current status of your migrations'); |
|
| 77 | + ->setDescription('Show current status of your migrations'); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |