Passed
Push — develop ( 95afae...cabd10 )
by nguereza
02:12
created
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, &$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/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, &$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/BreakTag.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 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 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 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/IfTag.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 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/Cache/ApcCache.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,14 +56,12 @@
 block discarded – undo
56 56
  * @class ApcCache
57 57
  * @package Platine\Template\Cache
58 58
  */
59
-class ApcCache extends AbstractCache
60
-{
59
+class ApcCache extends AbstractCache {
61 60
     /**
62 61
      * Create new instance
63 62
      * @param Configuration|null $config
64 63
      */
65
-    public function __construct(?Configuration $config = null)
66
-    {
64
+    public function __construct(?Configuration $config = null) {
67 65
         parent::__construct($config);
68 66
 
69 67
         if ((!extension_loaded('apcu')) || !((bool) ini_get('apc.enabled'))) {
Please login to merge, or discard this patch.
src/Cache/MemoryCache.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class MemoryCache
54 54
  * @package Platine\Template\Cache
55 55
  */
56
-class MemoryCache extends AbstractCache
57
-{
56
+class MemoryCache extends AbstractCache {
58 57
     /**
59 58
      * The cache data
60 59
      * @var array<string, mixed>
Please login to merge, or discard this patch.
src/Cache/AbstractCache.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * @class AbstractCache
56 56
  * @package Platine\Template\Cache
57 57
  */
58
-abstract class AbstractCache
59
-{
58
+abstract class AbstractCache {
60 59
     /**
61 60
      * The cache expiration in second
62 61
      * @var int
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
      * Create new instance
80 79
      * @param Configuration|null $config
81 80
      */
82
-    public function __construct(?Configuration $config = null)
83
-    {
81
+    public function __construct(?Configuration $config = null) {
84 82
         $this->config = $config ?? new Configuration([]);
85 83
 
86 84
         $this->expire = $this->config->get('cache_expire');
Please login to merge, or discard this patch.
src/Cache/FileCache.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 FileCache
58 58
  * @package Platine\Template\Cache
59 59
  */
60
-class FileCache extends AbstractCache
61
-{
60
+class FileCache extends AbstractCache {
62 61
     /**
63 62
      * The cache directory to use
64 63
      * @var string
@@ -69,8 +68,7 @@  discard block
 block discarded – undo
69 68
      * Create new instance
70 69
      * @param Configuration|null $config
71 70
      */
72
-    public function __construct(?Configuration $config = null)
73
-    {
71
+    public function __construct(?Configuration $config = null) {
74 72
         parent::__construct($config);
75 73
         $dir = $this->config->get('cache_dir');
76 74
         $path = Helper::normalizePath($dir);
Please login to merge, or discard this patch.