Passed
Push — develop ( c77ba7...d3c53a )
by nguereza
04:05
created
src/Template/Tag/StaticTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $path;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, array &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class StaticTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class StaticTag extends AbstractTag
63
-{
62
+class StaticTag extends AbstractTag {
64 63
     /**
65 64
      * The static path
66 65
      * @var string
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, array &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->path = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/PermissionTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
     protected string $permission;
68 68
 
69 69
     /**
70
-    * {@inheritdoc}
71
-    */
70
+     * {@inheritdoc}
71
+     */
72 72
     public function __construct(string $markup, array &$tokens, Parser $parser)
73 73
     {
74 74
         $lexer = new Lexer('/(\w+)/');
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     }
85 85
 
86 86
     /**
87
-    * {@inheritdoc}
88
-    */
87
+     * {@inheritdoc}
88
+     */
89 89
     public function render(Context $context): string
90 90
     {
91 91
         if ($context->hasKey($this->permission)) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * @class PermissionTag
59 59
  * @package Platine\Framework\Template\Tag
60 60
  */
61
-class PermissionTag extends AbstractBlock
62
-{
61
+class PermissionTag extends AbstractBlock {
63 62
     /**
64 63
      * The code of the permission
65 64
      * @var string
@@ -69,8 +68,7 @@  discard block
 block discarded – undo
69 68
     /**
70 69
     * {@inheritdoc}
71 70
     */
72
-    public function __construct(string $markup, array &$tokens, Parser $parser)
73
-    {
71
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
74 72
         $lexer = new Lexer('/(\w+)/');
75 73
         if ($lexer->match($markup)) {
76 74
             $this->permission = $lexer->getStringMatch(1);
Please login to merge, or discard this patch.
src/Template/Tag/RouteUrlTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $name;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, array &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class RouteUrlTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class RouteUrlTag extends AbstractTag
63
-{
62
+class RouteUrlTag extends AbstractTag {
64 63
     /**
65 64
      * The name of the route
66 65
      * @var string
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, array &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/SessionFlashTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $name;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, array &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class SessionFlashTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class SessionFlashTag extends AbstractTag
63
-{
62
+class SessionFlashTag extends AbstractTag {
64 63
     /**
65 64
      * The key of the session
66 65
      * @var string
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, array &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/LangTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $value;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, array &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class LangTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class LangTag extends AbstractTag
63
-{
62
+class LangTag extends AbstractTag {
64 63
     /**
65 64
      * Value to debug
66 65
      * @var string
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, array &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->value = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/CsrfTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
 class CsrfTag extends AbstractTag
62 62
 {
63 63
     /**
64
-    * {@inheritdoc}
65
-    */
64
+     * {@inheritdoc}
65
+     */
66 66
     public function __construct(string $markup, array &$tokens, Parser $parser)
67 67
     {
68 68
         parent::__construct($markup, $tokens, $parser);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,13 +58,11 @@
 block discarded – undo
58 58
  * @package Platine\Framework\Template\Tag
59 59
  * @template T
60 60
  */
61
-class CsrfTag extends AbstractTag
62
-{
61
+class CsrfTag extends AbstractTag {
63 62
     /**
64 63
     * {@inheritdoc}
65 64
     */
66
-    public function __construct(string $markup, array &$tokens, Parser $parser)
67
-    {
65
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
68 66
         parent::__construct($markup, $tokens, $parser);
69 67
         $this->extractAttributes($markup);
70 68
     }
Please login to merge, or discard this patch.
src/Template/Tag/SessionTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $name;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, array &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class SessionTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class SessionTag extends AbstractTag
63
-{
62
+class SessionTag extends AbstractTag {
64 63
     /**
65 64
      * The key of the session
66 65
      * @var string
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, array &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.