Passed
Push — master ( a48691...b214ed )
by Peter
02:45
created
asset-routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
  */
15 15
 $router->group(
16 16
     ['controllerNamespace' => 'AbterPhp\Framework\Http\Controllers'],
17
-    function (Router $router) {
17
+    function(Router $router) {
18 18
 
19 19
         /** @see \AbterPhp\Framework\Http\Controllers\Website\Assets::asset() */
20 20
         $router->get(
Please login to merge, or discard this patch.
src/Http/Middleware/EnvironmentWarning.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function getWarningHtml(string $environmentName): string
59 59
     {
60
-        $styles  = [
60
+        $styles = [
61 61
             'color'       => 'white',
62 62
             'line-height' => '1em',
63 63
             'font-weight' => 'bold',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $this->translator->translate('admin:environment', $environmentName)
69 69
         );
70 70
 
71
-        $styles  = [
71
+        $styles = [
72 72
             'position'   => 'fixed',
73 73
             'bottom'     => '10px',
74 74
             'right'      => '10px',
Please login to merge, or discard this patch.
src/Navigation/UserBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         array $attributes = [],
50 50
         ?string $tag = null
51 51
     ) {
52
-        $this->session      = $session;
52
+        $this->session = $session;
53 53
 
54 54
         if (!$this->session->has(Session::USERNAME)) {
55 55
             throw new \LogicException('session must be set');
Please login to merge, or discard this patch.
src/Bootstrappers/Views/ViewFunctionsBootstrapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         $transpiler->registerViewFunction(
30 30
             'metaName',
31
-            function (string $name, ...$contents) {
31
+            function(string $name, ...$contents) {
32 32
                 $realContent = '';
33 33
                 foreach ($contents as $content) {
34 34
                     if (empty($content)) {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $transpiler->registerViewFunction(
46 46
             'metaProp',
47
-            function (string $name, ...$contents) {
47
+            function(string $name, ...$contents) {
48 48
                 $realContent = '';
49 49
                 foreach ($contents as $content) {
50 50
                     if (empty($content)) {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $transpiler->registerViewFunction(
62 62
             'author',
63
-            function (string $author) {
63
+            function(string $author) {
64 64
                 if (empty($author)) {
65 65
                     return '';
66 66
                 }
Please login to merge, or discard this patch.
src/Bootstrappers/Authorization/EnforcerBootstrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
         $transpiler = $container->resolve(ITranspiler::class);
152 152
         $transpiler->registerViewFunction(
153 153
             'canView',
154
-            function (string $key) use ($username, $enforcer) {
154
+            function(string $key) use ($username, $enforcer) {
155 155
                 return $enforcer->enforce($username, 'admin_resource_' . $key, Role::READ);
156 156
             }
157 157
         );
Please login to merge, or discard this patch.
src/Bootstrappers/I18n/I18nBootstrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         $transpiler = $container->resolve(ITranspiler::class);
96 96
         $transpiler->registerViewFunction(
97 97
             'tr',
98
-            function (string $key, ...$args) use ($translator) {
98
+            function(string $key, ...$args) use ($translator) {
99 99
                 return $translator->translate($key, ...$args);
100 100
             }
101 101
         );
Please login to merge, or discard this patch.
fallback-routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
  */
15 15
 $router->group(
16 16
     ['controllerNamespace' => 'AbterPhp\Framework\Http\Controllers'],
17
-    function (Router $router) {
17
+    function(Router $router) {
18 18
 
19 19
         /** @see \AbterPhp\Framework\Http\Controllers\Website\Index::notFound() */
20 20
         $router->any(
Please login to merge, or discard this patch.
src/Bootstrappers/Http/Views/BuildersBootstrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         $viewFactory->registerBuilder(
26 26
             'layouts/default',
27
-            function (IView $view) {
27
+            function(IView $view) {
28 28
                 /** @see DefaultBuilder::build() */
29 29
                 return (new DefaultBuilder())->build($view);
30 30
             }
Please login to merge, or discard this patch.
src/Bootstrappers/Assets/AssetManagerBootstrapper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
         $transpiler = $container->resolve(ITranspiler::class);
74 74
         $transpiler->registerViewFunction(
75 75
             'assetJs',
76
-            function ($keys, $type = '') use ($assets) {
77
-                $callback = function ($key) use ($assets, $type) {
76
+            function($keys, $type = '') use ($assets) {
77
+                $callback = function($key) use ($assets, $type) {
78 78
                     $path = $assets->ensureJsWebPath($key);
79 79
                     if (empty($path)) {
80 80
                         return '';
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
         );
93 93
         $transpiler->registerViewFunction(
94 94
             'assetCss',
95
-            function ($keys) use ($assets) {
96
-                $callback = function ($key) use ($assets) {
95
+            function($keys) use ($assets) {
96
+                $callback = function($key) use ($assets) {
97 97
                     $path = $assets->ensureCssWebPath($key);
98 98
                     if (empty($path)) {
99 99
                         return '';
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         );
108 108
         $transpiler->registerViewFunction(
109 109
             'assetImg',
110
-            function ($key, $alt = '') use ($assets) {
110
+            function($key, $alt = '') use ($assets) {
111 111
                 $path = $assets->ensureImgWebPath($key);
112 112
                 if (empty($path)) {
113 113
                     return '';
Please login to merge, or discard this patch.