Passed
Push — develop ( acf7d3...ede307 )
by nguereza
10:23
created
src/Parser/Lexer.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 Lexer
56 56
  * @package Platine\Template\Parser
57 57
  */
58
-class Lexer implements Stringable
59
-{
58
+class Lexer implements Stringable {
60 59
     /**
61 60
      * The lexer pattern
62 61
      * @var string
@@ -73,8 +72,7 @@  discard block
 block discarded – undo
73 72
     * Create new instance
74 73
     * @param string $pattern
75 74
     */
76
-    public function __construct(string $pattern)
77
-    {
75
+    public function __construct(string $pattern) {
78 76
         $this->pattern = (substr($pattern, 0, 1) !== '/')
79 77
                           ? '/' . $this->quote($pattern) . '/'
80 78
                           : $pattern;
Please login to merge, or discard this patch.
src/Parser/Drop.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 block discarded – undo
63 63
  * If you would like to make data available to the web designers which you don't
64 64
  * want loaded unless needed then a drop is a great way to do that.
65 65
  */
66
-abstract class Drop implements Stringable
67
-{
66
+abstract class Drop implements Stringable {
68 67
     /**
69 68
      * The context instance to use
70 69
      * @var Context
Please login to merge, or discard this patch.
src/Util/Helper.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 Helper
54 54
  * @package Platine\Template\Util
55 55
  */
56
-class Helper
57
-{
56
+class Helper {
58 57
     /**
59 58
      * Normalize path
60 59
      * @param string $path
Please login to merge, or discard this patch.
src/Configuration.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class Configuration
56 56
  * @package Platine\Template
57 57
  */
58
-class Configuration extends AbstractConfiguration
59
-{
58
+class Configuration extends AbstractConfiguration {
60 59
     /**
61 60
      * {@inheritdoc}
62 61
      */
Please login to merge, or discard this patch.
src/Loader/StringLoader.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,14 +55,12 @@
 block discarded – undo
55 55
  * @class StringLoader
56 56
  * @package Platine\Template\Loader
57 57
  */
58
-class StringLoader implements LoaderInterface
59
-{
58
+class StringLoader implements LoaderInterface {
60 59
     /**
61 60
      * Create new instance
62 61
      * @param array<string, string> $data The string hash data
63 62
      */
64
-    public function __construct(protected array $data)
65
-    {
63
+    public function __construct(protected array $data) {
66 64
     }
67 65
 
68 66
     /**
Please login to merge, or discard this patch.
src/Loader/LoaderInterface.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 LoaderInterface
54 54
  * @package Platine\Template\Loader
55 55
  */
56
-interface LoaderInterface
57
-{
56
+interface LoaderInterface {
58 57
     /**
59 58
      * Return the template content to be use
60 59
      * for parse and rendering
Please login to merge, or discard this patch.
src/Loader/FileLoader.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 FileLoader
60 60
  * @package Platine\Template\Loader
61 61
  */
62
-class FileLoader implements LoaderInterface
63
-{
62
+class FileLoader implements LoaderInterface {
64 63
     /**
65 64
      * The configuration instance
66 65
      * @var Configuration
@@ -77,8 +76,7 @@  discard block
 block discarded – undo
77 76
      * Create new instance
78 77
      * @param Configuration|null $config
79 78
      */
80
-    public function __construct(?Configuration $config = null)
81
-    {
79
+    public function __construct(?Configuration $config = null) {
82 80
         $this->config = $config ?? new Configuration([]);
83 81
 
84 82
         $dir = $this->config->get('template_dir');
Please login to merge, or discard this patch.
src/Template.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * @class Template
62 62
  * @package Platine\Template
63 63
  */
64
-class Template
65
-{
64
+class Template {
66 65
     /**
67 66
      * The configuration instance
68 67
      * @var Configuration
Please login to merge, or discard this patch.
src/Exception/NotFoundException.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 NotFoundException
40 40
  * @package Platine\Template\Exception
41 41
  */
42
-class NotFoundException extends LoaderException
43
-{
42
+class NotFoundException extends LoaderException {
44 43
 }
Please login to merge, or discard this patch.