Passed
Push — develop ( 95afae...cabd10 )
by nguereza
02:12
created
src/Tag/IfchangedTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,16 +67,16 @@
 block discarded – undo
67 67
     protected string $lastValue = '';
68 68
 
69 69
     /**
70
-    * {@inheritdoc}
71
-    */
70
+     * {@inheritdoc}
71
+     */
72 72
     public function __construct(string $markup, &$tokens, Parser $parser)
73 73
     {
74 74
         parent::__construct($markup, $tokens, $parser);
75 75
     }
76 76
 
77 77
     /**
78
-    * {@inheritdoc}
79
-    */
78
+     * {@inheritdoc}
79
+     */
80 80
     public function render(Context $context): string
81 81
     {
82 82
         $output = parent::render($context);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
  * @class IfchangedTag
58 58
  * @package Platine\Template\Tag
59 59
  */
60
-class IfchangedTag extends AbstractBlock
61
-{
60
+class IfchangedTag extends AbstractBlock {
62 61
     /**
63 62
      * The last value
64 63
      * @var string
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
     /**
69 68
     * {@inheritdoc}
70 69
     */
71
-    public function __construct(string $markup, &$tokens, Parser $parser)
72
-    {
70
+    public function __construct(string $markup, &$tokens, Parser $parser) {
73 71
         parent::__construct($markup, $tokens, $parser);
74 72
     }
75 73
 
Please login to merge, or discard this patch.
src/Tag/DecrementTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
     protected string $name;
71 71
 
72 72
     /**
73
-    * {@inheritdoc}
74
-    */
73
+     * {@inheritdoc}
74
+     */
75 75
     public function __construct(string $markup, &$tokens, Parser $parser)
76 76
     {
77 77
         $lexer = new Lexer('/(' . Token::VARIABLE_NAME . ')/');
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-    * {@inheritdoc}
90
-    */
89
+     * {@inheritdoc}
90
+     */
91 91
     public function render(Context $context): string
92 92
     {
93 93
         // if the value is not set in the environment check to see if it
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class DecrementTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class DecrementTag extends AbstractTag
64
-{
63
+class DecrementTag extends AbstractTag {
65 64
     /**
66 65
      * Name of the variable to decrement
67 66
      * @var string
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, &$tokens, Parser $parser) {
76 74
         $lexer = new Lexer('/(' . Token::VARIABLE_NAME . ')/');
77 75
         if ($lexer->match($markup)) {
78 76
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Tag/ContinueTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
 class ContinueTag extends AbstractTag
60 60
 {
61 61
     /**
62
-    * {@inheritdoc}
63
-    */
62
+     * {@inheritdoc}
63
+     */
64 64
     public function render(Context $context): string
65 65
     {
66 66
         $context->setRegister('continue', true);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class ContinueTag
57 57
  * @package Platine\Template\Tag
58 58
  */
59
-class ContinueTag extends AbstractTag
60
-{
59
+class ContinueTag extends AbstractTag {
61 60
     /**
62 61
     * {@inheritdoc}
63 62
     */
Please login to merge, or discard this patch.
src/Tag/BreakTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
 class BreakTag extends AbstractTag
60 60
 {
61 61
     /**
62
-    * {@inheritdoc}
63
-    */
62
+     * {@inheritdoc}
63
+     */
64 64
     public function render(Context $context): string
65 65
     {
66 66
         $context->setRegister('break', true);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class BreakTag
57 57
  * @package Platine\Template\Tag
58 58
  */
59
-class BreakTag extends AbstractTag
60
-{
59
+class BreakTag extends AbstractTag {
61 60
     /**
62 61
     * {@inheritdoc}
63 62
     */
Please login to merge, or discard this patch.
src/Tag/SetTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
     protected string $variableName;
77 77
 
78 78
     /**
79
-    * {@inheritdoc}
80
-    */
79
+     * {@inheritdoc}
80
+     */
81 81
     public function __construct(string $markup, &$tokens, Parser $parser)
82 82
     {
83 83
         $lexer = new Lexer('/(\w+)\s*=\s*(.*)\s*/');
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
     }
94 94
 
95 95
     /**
96
-    * {@inheritdoc}
97
-    */
96
+     * {@inheritdoc}
97
+     */
98 98
     public function render(Context $context): string
99 99
     {
100 100
         $output = $this->variable->render($context);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class SetTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class SetTag extends AbstractTag
64
-{
63
+class SetTag extends AbstractTag {
65 64
     /**
66 65
      * The variable instance to assign
67 66
      * @var Variable
@@ -77,8 +76,7 @@  discard block
 block discarded – undo
77 76
     /**
78 77
     * {@inheritdoc}
79 78
     */
80
-    public function __construct(string $markup, &$tokens, Parser $parser)
81
-    {
79
+    public function __construct(string $markup, &$tokens, Parser $parser) {
82 80
         $lexer = new Lexer('/(\w+)\s*=\s*(.*)\s*/');
83 81
         if ($lexer->match($markup)) {
84 82
             $this->variableName = $lexer->getStringMatch(1);
Please login to merge, or discard this patch.
src/Tag/BlockTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
     protected string $blockName;
70 70
 
71 71
     /**
72
-    * {@inheritdoc}
73
-    */
72
+     * {@inheritdoc}
73
+     */
74 74
     public function __construct(string $markup, &$tokens, Parser $parser)
75 75
     {
76 76
         $lexer = new Lexer('/(\w+)/');
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 BlockTag
59 59
  * @package Platine\Template\Tag
60 60
  */
61
-class BlockTag extends AbstractBlock
62
-{
61
+class BlockTag extends AbstractBlock {
63 62
     /**
64 63
      * The name of the block
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, &$tokens, Parser $parser)
73
-    {
71
+    public function __construct(string $markup, &$tokens, Parser $parser) {
74 72
         $lexer = new Lexer('/(\w+)/');
75 73
         if ($lexer->match($markup)) {
76 74
             $this->blockName = $lexer->getStringMatch(1);
Please login to merge, or discard this patch.
src/Tag/IfTag.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     protected array $blocks = [];
78 78
 
79 79
     /**
80
-    * {@inheritdoc}
81
-    */
80
+     * {@inheritdoc}
81
+     */
82 82
     public function __construct(string $markup, &$tokens, Parser $parser)
83 83
     {
84 84
         //Initialize
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-    * {@inheritdoc}
94
-    */
93
+     * {@inheritdoc}
94
+     */
95 95
     public function render(Context $context): string
96 96
     {
97 97
         $context->push();
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
     }
218 218
 
219 219
     /**
220
-    * {@inheritdoc}
221
-    */
220
+     * {@inheritdoc}
221
+     */
222 222
     protected function unknownTag(string $tag, string $param, array $tokens): void
223 223
     {
224 224
         if ($tag === 'else' || $tag === 'elseif') {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class IfTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class IfTag extends AbstractCondition
64
-{
63
+class IfTag extends AbstractCondition {
65 64
     /**
66 65
      * holding the nodes to render for each logical block
67 66
      * @var array<int, mixed>
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
     /**
79 78
     * {@inheritdoc}
80 79
     */
81
-    public function __construct(string $markup, &$tokens, Parser $parser)
82
-    {
80
+    public function __construct(string $markup, &$tokens, Parser $parser) {
83 81
         //Initialize
84 82
         $this->nodeListHolders[count($this->blocks)] = [];
85 83
         $this->nodeList = & $this->nodeListHolders[count($this->blocks)];
Please login to merge, or discard this patch.
src/Tag/DebugTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     protected string $value;
70 70
 
71 71
     /**
72
-    * {@inheritdoc}
73
-    */
72
+     * {@inheritdoc}
73
+     */
74 74
     public function __construct(string $markup, &$tokens, Parser $parser)
75 75
     {
76 76
         parent::__construct($markup, $tokens, $parser);
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
     }
88 88
 
89 89
     /**
90
-    * {@inheritdoc}
91
-    */
90
+     * {@inheritdoc}
91
+     */
92 92
     public function render(Context $context): string
93 93
     {
94 94
         $debugValue = $context->get($this->value);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class DebugTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class DebugTag extends AbstractTag
64
-{
63
+class DebugTag extends AbstractTag {
65 64
     /**
66 65
      * Value to debug
67 66
      * @var string
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, &$tokens, Parser $parser) {
76 74
         parent::__construct($markup, $tokens, $parser);
77 75
 
78 76
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
src/Tag/RawTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
60 60
 class RawTag extends AbstractBlock
61 61
 {
62 62
     /**
63
-    * {@inheritdoc}
64
-    */
63
+     * {@inheritdoc}
64
+     */
65 65
     public function parse(array &$tokens): void
66 66
     {
67 67
         $lexer = new Lexer(
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @class RawTag
58 58
  * @package Platine\Template\Tag
59 59
  */
60
-class RawTag extends AbstractBlock
61
-{
60
+class RawTag extends AbstractBlock {
62 61
     /**
63 62
     * {@inheritdoc}
64 63
     */
Please login to merge, or discard this patch.