Passed
Push — develop ( e3e306...5da5fd )
by nguereza
04:19 queued 01:01
created
src/Http/Emitter/Exception/OutputAlreadySentException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
  * @class OutputAlreadySentException
41 41
  * @package Platine\Http\Framework\Emitter\Exception
42 42
  */
43
-class OutputAlreadySentException extends RuntimeException
44
-{
43
+class OutputAlreadySentException extends RuntimeException {
45 44
     /**
46 45
      * Create new instance
47 46
      * @return self
Please login to merge, or discard this patch.
src/Migration/AbstractMigration.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 AbstractMigration
54 54
  * @package Platine\Framework\Migration
55 55
  */
56
-abstract class AbstractMigration extends Schema
57
-{
56
+abstract class AbstractMigration extends Schema {
58 57
     /**
59 58
      * Execute when do migrate
60 59
      * @return void
Please login to merge, or discard this patch.
src/Template/Tag/SessionTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected string $name;
27 27
 
28 28
     /**
29
-    * {@inheritdoc}
30
-    */
29
+     * {@inheritdoc}
30
+     */
31 31
     public function __construct(string $markup, &$tokens, Parser $parser)
32 32
     {
33 33
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this 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 SessionTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class SessionTag extends AbstractTag
63
-{
62
+class SessionTag extends AbstractTag {
64 63
     /**
65 64
      * The key of the session
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, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/LangTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     protected string $value;
28 28
 
29 29
     /**
30
-    * {@inheritdoc}
31
-    */
30
+     * {@inheritdoc}
31
+     */
32 32
     public function __construct(string $markup, &$tokens, Parser $parser)
33 33
     {
34 34
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this 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 LangTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class LangTag extends AbstractTag
63
-{
62
+class LangTag extends AbstractTag {
64 63
     /**
65 64
      * Value to debug
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, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->value = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/StaticTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     protected string $path;
26 26
 
27 27
     /**
28
-    * {@inheritdoc}
29
-    */
28
+     * {@inheritdoc}
29
+     */
30 30
     public function __construct(string $markup, &$tokens, Parser $parser)
31 31
     {
32 32
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this 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 StaticTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class StaticTag extends AbstractTag
63
-{
62
+class StaticTag extends AbstractTag {
64 63
     /**
65 64
      * The static path
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, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->path = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/SessionFlashTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected string $name;
27 27
 
28 28
     /**
29
-    * {@inheritdoc}
30
-    */
29
+     * {@inheritdoc}
30
+     */
31 31
     public function __construct(string $markup, &$tokens, Parser $parser)
32 32
     {
33 33
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this 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 SessionFlashTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class SessionFlashTag extends AbstractTag
63
-{
62
+class SessionFlashTag extends AbstractTag {
64 63
     /**
65 64
      * The key of the session
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, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/RouteUrlTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected string $name;
27 27
 
28 28
     /**
29
-    * {@inheritdoc}
30
-    */
29
+     * {@inheritdoc}
30
+     */
31 31
     public function __construct(string $markup, &$tokens, Parser $parser)
32 32
     {
33 33
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this 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 RouteUrlTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class RouteUrlTag extends AbstractTag
63
-{
62
+class RouteUrlTag extends AbstractTag {
64 63
     /**
65 64
      * The name of the route
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, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/App/Application.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -212,10 +212,10 @@
 block discarded – undo
212 212
         return $this;
213 213
     }
214 214
 
215
-     /**
216
-     * Return the application root path
217
-     * @return string
218
-     */
215
+        /**
216
+         * Return the application root path
217
+         * @return string
218
+         */
219 219
     public function getAppPath(): string
220 220
     {
221 221
         return $this->appPath;
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@  discard block
 block discarded – undo
65 65
  * @class Application
66 66
  * @package Platine\Framework\App
67 67
  */
68
-class Application extends Container
69
-{
68
+class Application extends Container {
70 69
     /**
71 70
      * The application version
72 71
      */
@@ -148,8 +147,7 @@  discard block
 block discarded – undo
148 147
      * Create new instance
149 148
      * @param string $basePath
150 149
      */
151
-    public function __construct(string $basePath = '')
152
-    {
150
+    public function __construct(string $basePath = '') {
153 151
         parent::__construct();
154 152
 
155 153
         $this->basePath = $basePath;
@@ -244,8 +242,7 @@  discard block
 block discarded – undo
244 242
      * @param string $env
245 243
      * @return $this
246 244
      */
247
-    public function setEnvironment(string $env)
248
-    {
245
+    public function setEnvironment(string $env) {
249 246
         $this->env = $env;
250 247
 
251 248
         return $this;
Please login to merge, or discard this patch.
src/Service/Provider/PaginationServiceProvider.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             $config = $app->get(Config::class);
88 88
 
89 89
             $pagination->setItemsPerPage($config->get('pagination.item_per_page', 10))
90
-                      ->setMaxPages($config->get('pagination.max_pages', 5));
90
+                        ->setMaxPages($config->get('pagination.max_pages', 5));
91 91
 
92 92
             return $pagination;
93 93
         });
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function register(): void
71 71
     {
72
-        $this->app->bind(UrlGeneratorInterface::class, function (ContainerInterface $app) {
72
+        $this->app->bind(UrlGeneratorInterface::class, function(ContainerInterface $app) {
73 73
             return new ServerRequestUrlGenerator(
74 74
                 $app->get(ServerRequestInterface::class),
75 75
                 'page'
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $this->app->bind(RendererInterface::class, BootstrapRenderer::class);
80 80
 
81
-        $this->app->bind(Pagination::class, function (ContainerInterface $app) {
81
+        $this->app->bind(Pagination::class, function(ContainerInterface $app) {
82 82
             $pagination = new Pagination(
83 83
                 $app->get(UrlGeneratorInterface::class),
84 84
                 $app->get(RendererInterface::class)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * @class PaginationServiceProvider
62 62
  * @package Platine\Framework\Service\Provider
63 63
  */
64
-class PaginationServiceProvider extends ServiceProvider
65
-{
64
+class PaginationServiceProvider extends ServiceProvider {
66 65
     /**
67 66
      * {@inheritdoc}
68 67
      */
Please login to merge, or discard this patch.