Passed
Push — develop ( 95afae...cabd10 )
by nguereza
02:12
created
src/Exception/ParseException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,5 @@
 block discarded – undo
39 39
  * @class ParseException
40 40
  * @package Platine\Template\Exception
41 41
  */
42
-class ParseException extends TemplateException
43
-{
42
+class ParseException extends TemplateException {
44 43
 }
Please login to merge, or discard this patch.
src/Exception/RenderException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,5 @@
 block discarded – undo
39 39
  * @class RenderException
40 40
  * @package Platine\Template\Exception
41 41
  */
42
-class RenderException extends TemplateException
43
-{
42
+class RenderException extends TemplateException {
44 43
 }
Please login to merge, or discard this patch.
src/Exception/LoaderException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,5 @@
 block discarded – undo
39 39
  * @class LoaderException
40 40
  * @package Platine\Template\Exception
41 41
  */
42
-class LoaderException extends TemplateException
43
-{
42
+class LoaderException extends TemplateException {
44 43
 }
Please login to merge, or discard this patch.
src/Filter/ArrayFilter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
  * @class ArrayFilter
59 59
  * @package Platine\Template\Filter
60 60
  */
61
-class ArrayFilter extends AbstractFilter
62
-{
61
+class ArrayFilter extends AbstractFilter {
63 62
     /**
64 63
      * Returns the first element of an array
65 64
      * @param array<mixed>|Iterator<mixed>|mixed $value
Please login to merge, or discard this patch.
src/Filter/NumberFilter.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * @class NumberFilter
56 56
  * @package Platine\Template\Filter
57 57
  */
58
-class NumberFilter extends AbstractFilter
59
-{
58
+class NumberFilter extends AbstractFilter {
60 59
     /**
61 60
      * Addition
62 61
      * @param float|int $variable
@@ -125,7 +124,8 @@  discard block
 block discarded – undo
125 124
      */
126 125
     public static function div(float|int $variable, float|int $operand): float|int
127 126
     {
128
-        if ($operand == 0) {// don't use ===
127
+        if ($operand == 0) {
128
+// don't use ===
129 129
             return $variable;
130 130
         }
131 131
 
Please login to merge, or discard this patch.
src/Filter/StringFilter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class StringFilter
57 57
  * @package Platine\Template\Filter
58 58
  */
59
-class StringFilter extends AbstractFilter
60
-{
59
+class StringFilter extends AbstractFilter {
61 60
     /**
62 61
      * Return the length of string or array
63 62
      * @param mixed $variable
Please login to merge, or discard this patch.
src/Filter/DatetimeFilter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class DatetimeFilter
57 57
  * @package Platine\Template\Filter
58 58
  */
59
-class DatetimeFilter extends AbstractFilter
60
-{
59
+class DatetimeFilter extends AbstractFilter {
61 60
     /**
62 61
      * Formats a date
63 62
      * @param string|DateTimeInterface|int $variable
Please login to merge, or discard this patch.
src/Tag/IncrementTag.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 IncrementTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class IncrementTag extends AbstractTag
64
-{
63
+class IncrementTag extends AbstractTag {
65 64
      /**
66 65
      * Name of the variable to increment
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/CommentTag.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class CommentTag
57 57
  * @package Platine\Template\Tag
58 58
  */
59
-class CommentTag extends AbstractBlock
60
-{
59
+class CommentTag extends AbstractBlock {
61 60
     /**
62 61
     * {@inheritdoc}
63 62
     */
Please login to merge, or discard this patch.