Passed
Push — develop ( 076faf...acf7d3 )
by nguereza
02:27
created
src/Tag/BlockTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
67 67
     protected string $blockName;
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+)/');
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, 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->blockName = $lexer->getStringMatch(1);
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
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     protected string $name;
70 70
 
71 71
     /**
72
-    * {@inheritdoc}
73
-    */
72
+     * {@inheritdoc}
73
+     */
74 74
     public function __construct(string $markup, array &$tokens, Parser $parser)
75 75
     {
76 76
         $lexer = new Lexer('/(' . Token::VARIABLE_NAME . ')/');
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
     }
86 86
 
87 87
     /**
88
-    * {@inheritdoc}
89
-    */
88
+     * {@inheritdoc}
89
+     */
90 90
     public function render(Context $context): string
91 91
     {
92 92
         // 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, array &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, array &$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/SetTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
     protected string $variableName;
76 76
 
77 77
     /**
78
-    * {@inheritdoc}
79
-    */
78
+     * {@inheritdoc}
79
+     */
80 80
     public function __construct(string $markup, array &$tokens, Parser $parser)
81 81
     {
82 82
         $lexer = new Lexer('/(\w+)\s*=\s*(.*)\s*/');
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-    * {@inheritdoc}
96
-    */
95
+     * {@inheritdoc}
96
+     */
97 97
     public function render(Context $context): string
98 98
     {
99 99
         $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, array &$tokens, Parser $parser)
81
-    {
79
+    public function __construct(string $markup, array &$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/IfTag.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
     protected array $blocks = [];
77 77
 
78 78
     /**
79
-    * {@inheritdoc}
80
-    */
79
+     * {@inheritdoc}
80
+     */
81 81
     public function __construct(string $markup, array &$tokens, Parser $parser)
82 82
     {
83 83
         //Initialize
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
     }
90 90
 
91 91
     /**
92
-    * {@inheritdoc}
93
-    */
92
+     * {@inheritdoc}
93
+     */
94 94
     public function render(Context $context): string
95 95
     {
96 96
         $context->push();
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
     }
217 217
 
218 218
     /**
219
-    * {@inheritdoc}
220
-    */
219
+     * {@inheritdoc}
220
+     */
221 221
     protected function unknownTag(string $tag, string $param, array $tokens): void
222 222
     {
223 223
         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, array &$tokens, Parser $parser)
82
-    {
80
+    public function __construct(string $markup, array &$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.