Passed
Push — develop ( acf7d3...ede307 )
by nguereza
10:23
created
src/Tag/CycleTag.php 1 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 CycleTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class CycleTag extends AbstractTag
64
-{
63
+class CycleTag extends AbstractTag {
65 64
     /**
66 65
      * The name of the cycle; if none is given one
67 66
      * is created using the value list
@@ -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
         $lexerSimple = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
84 82
         $lexerNamed = new Lexer('/(' . Token::QUOTED_FRAGMENT . ')\s*\:\s*(.*)/');
85 83
         if ($lexerNamed->match($markup)) {
Please login to merge, or discard this patch.
src/Tag/IncludeTag.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * @class IncludeTag
62 62
  * @package Platine\Template\Tag
63 63
  */
64
-class IncludeTag extends AbstractTag
65
-{
64
+class IncludeTag extends AbstractTag {
66 65
     /**
67 66
      * The name of the template
68 67
      * @var string
@@ -97,8 +96,7 @@  discard block
 block discarded – undo
97 96
     /**
98 97
     * {@inheritdoc}
99 98
     */
100
-    public function __construct(string $markup, array &$tokens, Parser $parser)
101
-    {
99
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
102 100
         $lexer = new Lexer(
103 101
             '/("[^"]+"|\'[^\']+\'|[^\'"\s]+)(\s+(with|for)\s+('
104 102
             . Token::QUOTED_FRAGMENT
Please login to merge, or discard this patch.
src/Tag/DebugTag.php 1 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, array &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, array &$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/ExtendsTag.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * @class ExtendsTag
62 62
  * @package Platine\Template\Tag
63 63
  */
64
-class ExtendsTag extends AbstractTag
65
-{
64
+class ExtendsTag extends AbstractTag {
66 65
     /**
67 66
      * The name of the template
68 67
      * @var string
@@ -84,8 +83,7 @@  discard block
 block discarded – undo
84 83
     /**
85 84
     * {@inheritdoc}
86 85
     */
87
-    public function __construct(string $markup, array &$tokens, Parser $parser)
88
-    {
86
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
89 87
         $lexer = new Lexer('/("[^"]+"|\'[^\']+\')?/');
90 88
         if ($lexer->match($markup) && $lexer->isMatchNotNull(1)) {
91 89
             $this->templateName = substr(
Please login to merge, or discard this patch.
src/Tag/CaptureTag.php 1 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 CaptureTag
60 60
  * @package Platine\Template\Tag
61 61
  */
62
-class CaptureTag extends AbstractBlock
63
-{
62
+class CaptureTag extends AbstractBlock {
64 63
     /**
65 64
      * The name of the variable
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('/(\w+)/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->variableName = $lexer->getStringMatch(1);
Please login to merge, or discard this patch.
src/Tag/IfchangedTag.php 1 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, array &$tokens, Parser $parser)
72
-    {
70
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
73 71
         parent::__construct($markup, $tokens, $parser);
74 72
     }
75 73
 
Please login to merge, or discard this patch.
src/Tag/ForTag.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
62 62
  * @class ForTag
63 63
  * @package Platine\Template\Tag
64 64
  */
65
-class ForTag extends AbstractBlock
66
-{
65
+class ForTag extends AbstractBlock {
67 66
     /**
68 67
      * Type digit
69 68
      */
@@ -108,8 +107,7 @@  discard block
 block discarded – undo
108 107
     /**
109 108
     * {@inheritdoc}
110 109
     */
111
-    public function __construct(string $markup, array &$tokens, Parser $parser)
112
-    {
110
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
113 111
         parent::__construct($markup, $tokens, $parser);
114 112
 
115 113
         $lexerCollection = new Lexer('/(\w+)\s+in\s+(' . Token::VARIABLE_NAME . ')/');
Please login to merge, or discard this patch.
src/Tag/BlockTag.php 1 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 1 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.