@@ -133,9 +133,9 @@ |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * |
|
137 | - * @return Pagination |
|
138 | - */ |
|
136 | + * |
|
137 | + * @return Pagination |
|
138 | + */ |
|
139 | 139 | public function getPagination(): Pagination |
140 | 140 | { |
141 | 141 | return $this->pagination; |
@@ -46,8 +46,7 @@ |
||
46 | 46 | * @package Platine\Framework\Helper |
47 | 47 | * @template T |
48 | 48 | */ |
49 | -class ActionHelper |
|
50 | -{ |
|
49 | +class ActionHelper { |
|
51 | 50 | /** |
52 | 51 | * Create new instance |
53 | 52 | * @param Pagination $pagination |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | array $tables = [] |
63 | 63 | ): void { |
64 | 64 | $this->dbDump->setCompress($compress) |
65 | - ->setTables($tables) |
|
66 | - ->backup($filename); |
|
65 | + ->setTables($tables) |
|
66 | + ->backup($filename); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
@@ -75,6 +75,6 @@ discard block |
||
75 | 75 | public function restore(string $filename, bool $compress = false): void |
76 | 76 | { |
77 | 77 | $this->dbDump->setCompress($compress) |
78 | - ->restore($filename); |
|
78 | + ->restore($filename); |
|
79 | 79 | } |
80 | 80 | } |
@@ -39,14 +39,12 @@ |
||
39 | 39 | * @class DatabaseHelper |
40 | 40 | * @package Platine\Framework\Helper |
41 | 41 | */ |
42 | -class DatabaseHelper |
|
43 | -{ |
|
42 | +class DatabaseHelper { |
|
44 | 43 | /** |
45 | 44 | * Create new instance |
46 | 45 | * @param DatabaseDump $dbDump |
47 | 46 | */ |
48 | - public function __construct(protected DatabaseDump $dbDump) |
|
49 | - { |
|
47 | + public function __construct(protected DatabaseDump $dbDump) { |
|
50 | 48 | } |
51 | 49 | |
52 | 50 | /** |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | class FieldTag extends AbstractTag |
51 | 51 | { |
52 | 52 | /** |
53 | - * {@inheritdoc} |
|
54 | - */ |
|
53 | + * {@inheritdoc} |
|
54 | + */ |
|
55 | 55 | public function __construct(string $markup, &$tokens, Parser $parser) |
56 | 56 | { |
57 | 57 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
69 | - * {@inheritdoc} |
|
70 | - */ |
|
69 | + * {@inheritdoc} |
|
70 | + */ |
|
71 | 71 | public function render(Context $context): string |
72 | 72 | { |
73 | 73 | $attributes = $this->normalizeAttributes($context); |
@@ -47,13 +47,11 @@ |
||
47 | 47 | * @class FieldTag |
48 | 48 | * @package Platine\Framework\Template\Tag |
49 | 49 | */ |
50 | -class FieldTag extends AbstractTag |
|
51 | -{ |
|
50 | +class FieldTag extends AbstractTag { |
|
52 | 51 | /** |
53 | 52 | * {@inheritdoc} |
54 | 53 | */ |
55 | - public function __construct(string $markup, &$tokens, Parser $parser) |
|
56 | - { |
|
54 | + public function __construct(string $markup, &$tokens, Parser $parser) { |
|
57 | 55 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
58 | 56 | if ($lexer->match($markup)) { |
59 | 57 | $this->extractAttributes($markup); |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | class SelectTag extends FieldTag |
49 | 49 | { |
50 | 50 | /** |
51 | - * {@inheritdoc} |
|
52 | - */ |
|
51 | + * {@inheritdoc} |
|
52 | + */ |
|
53 | 53 | public function __construct(string $markup, &$tokens, Parser $parser) |
54 | 54 | { |
55 | 55 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * {@inheritdoc} |
|
68 | - */ |
|
67 | + * {@inheritdoc} |
|
68 | + */ |
|
69 | 69 | public function render(Context $context): string |
70 | 70 | { |
71 | 71 | $attributes = $this->normalizeAttributes($context); |
@@ -45,13 +45,11 @@ |
||
45 | 45 | * @class SelectTag |
46 | 46 | * @package Platine\Framework\Template\Tag |
47 | 47 | */ |
48 | -class SelectTag extends FieldTag |
|
49 | -{ |
|
48 | +class SelectTag extends FieldTag { |
|
50 | 49 | /** |
51 | 50 | * {@inheritdoc} |
52 | 51 | */ |
53 | - public function __construct(string $markup, &$tokens, Parser $parser) |
|
54 | - { |
|
52 | + public function __construct(string $markup, &$tokens, Parser $parser) { |
|
55 | 53 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
56 | 54 | if ($lexer->match($markup)) { |
57 | 55 | $this->extractAttributes($markup); |
@@ -26,8 +26,8 @@ |
||
26 | 26 | protected string $name; |
27 | 27 | |
28 | 28 | /** |
29 | - * {@inheritdoc} |
|
30 | - */ |
|
29 | + * {@inheritdoc} |
|
30 | + */ |
|
31 | 31 | public function __construct(string $markup, &$tokens, Parser $parser) |
32 | 32 | { |
33 | 33 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -48,8 +48,7 @@ discard block |
||
48 | 48 | * @class ImageTag |
49 | 49 | * @package Platine\Framework\Template\Tag |
50 | 50 | */ |
51 | -class ImageTag extends AbstractTag |
|
52 | -{ |
|
51 | +class ImageTag extends AbstractTag { |
|
53 | 52 | /** |
54 | 53 | * The name of the tag |
55 | 54 | * @var string |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | /** |
66 | 65 | * {@inheritdoc} |
67 | 66 | */ |
68 | - public function __construct(string $markup, &$tokens, Parser $parser) |
|
69 | - { |
|
67 | + public function __construct(string $markup, &$tokens, Parser $parser) { |
|
70 | 68 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
71 | 69 | if ($lexer->match($markup)) { |
72 | 70 | $this->name = $lexer->getStringMatch(0); |
@@ -43,8 +43,8 @@ |
||
43 | 43 | class PublicImageTag extends ImageTag |
44 | 44 | { |
45 | 45 | /** |
46 | - * {@inheritdoc} |
|
47 | - */ |
|
46 | + * {@inheritdoc} |
|
47 | + */ |
|
48 | 48 | protected string $tagName = 'public_image'; |
49 | 49 | |
50 | 50 |
@@ -40,8 +40,7 @@ |
||
40 | 40 | * @class PublicImageTag |
41 | 41 | * @package Platine\Framework\Template\Tag |
42 | 42 | */ |
43 | -class PublicImageTag extends ImageTag |
|
44 | -{ |
|
43 | +class PublicImageTag extends ImageTag { |
|
45 | 44 | /** |
46 | 45 | * {@inheritdoc} |
47 | 46 | */ |
@@ -39,6 +39,5 @@ |
||
39 | 39 | * @class ApplicationException |
40 | 40 | * @package Platine\Framework\Exception |
41 | 41 | */ |
42 | -class ApplicationException extends Exception |
|
43 | -{ |
|
42 | +class ApplicationException extends Exception { |
|
44 | 43 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | parent::__construct($application, $filesystem); |
62 | 62 | |
63 | 63 | $this->setName('make:filter') |
64 | - ->setDescription('Command to generate new filter class'); |
|
64 | + ->setDescription('Command to generate new filter class'); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -42,8 +42,7 @@ |
||
42 | 42 | * @class MakeFilterCommand |
43 | 43 | * @package Platine\Framework\Console\Command |
44 | 44 | */ |
45 | -class MakeFilterCommand extends MakeActionCommand |
|
46 | -{ |
|
45 | +class MakeFilterCommand extends MakeActionCommand { |
|
47 | 46 | /** |
48 | 47 | * {@inheritdoc} |
49 | 48 | */ |
@@ -44,8 +44,7 @@ |
||
44 | 44 | * @class MakeDatabaseConfigCommand |
45 | 45 | * @package Platine\Framework\Console\Command |
46 | 46 | */ |
47 | -class MakeDatabaseConfigCommand extends MakeCommand |
|
48 | -{ |
|
47 | +class MakeDatabaseConfigCommand extends MakeCommand { |
|
49 | 48 | /** |
50 | 49 | * {@inheritdoc} |
51 | 50 | */ |
@@ -66,7 +66,7 @@ |
||
66 | 66 | parent::__construct($application, $filesystem); |
67 | 67 | |
68 | 68 | $this->setName('make:dbconfig') |
69 | - ->setDescription('Command to generate class that hold database configuration value'); |
|
69 | + ->setDescription('Command to generate class that hold database configuration value'); |
|
70 | 70 | |
71 | 71 | $this->addOption('-c|--config-entity', 'The configuration entity class', Configuration::class, true); |
72 | 72 | } |