Passed
Push — master ( 0d72e8...44be60 )
by Gabor
04:58
created
src/WebHemi/Middleware/Security/AccessLogMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      * @param ResponseInterface      $response
60 60
      * @return void
61 61
      */
62
-    public function __invoke(ServerRequestInterface &$request, ResponseInterface&$response) : void
62
+    public function __invoke(ServerRequestInterface&$request, ResponseInterface&$response) : void
63 63
     {
64 64
         $identity = 'Unauthenticated user';
65 65
         $requestAttributes = $request->getAttributes();
Please login to merge, or discard this patch.
src/WebHemi/Renderer/Helper/IsAllowedHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
      * @param string $resourceName
142 142
      * @param string $applicationName
143 143
      */
144
-    private function checkResourceNameAgainstRouting(string &$resourceName, string $applicationName) : void
144
+    private function checkResourceNameAgainstRouting(string&$resourceName, string $applicationName) : void
145 145
     {
146 146
         $applicationConfig = $this->configuration
147 147
             ->getData('applications/'.$applicationName);
Please login to merge, or discard this patch.
src/WebHemi/Application/ServiceAdapter/Base/ServiceAdapter.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
 use WebHemi\Http\ResponseInterface;
21 21
 use WebHemi\Http\ServerRequestInterface;
22 22
 use WebHemi\Http\ServiceInterface as HttpInterface;
23
+use WebHemi\MiddlewarePipeline\ServiceInterface as PipelineInterface;
23 24
 use WebHemi\Middleware\Common as CommonMiddleware;
24 25
 use WebHemi\Middleware\MiddlewareInterface;
25
-use WebHemi\MiddlewarePipeline\ServiceInterface as PipelineInterface;
26 26
 use WebHemi\Session\ServiceInterface as SessionInterface;
27 27
 
28 28
 /**
Please login to merge, or discard this patch.
src/WebHemi/Environment/ServiceAdapter/Base/ServiceAdapter.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 namespace WebHemi\Environment\ServiceAdapter\Base;
15 15
 
16 16
 use InvalidArgumentException;
17
-use WebHemi\Environment\ServiceInterface;
18 17
 use WebHemi\Configuration\ServiceInterface as ConfigurationInterface;
18
+use WebHemi\Environment\ServiceInterface;
19 19
 
20 20
 /**
21 21
  * Class ServiceAdapter.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         array $filesData
69 69
     ) {
70 70
         $this->configuration = $configuration->getConfig('applications');
71
-        $this->documentRoot = realpath(__DIR__ . '/../../../../../');
71
+        $this->documentRoot = realpath(__DIR__.'/../../../../../');
72 72
 
73 73
         if (isset($serverData['HTTP_REFERER'])) {
74 74
             $serverData['HTTP_REFERER'] = urldecode($serverData['HTTP_REFERER']);
Please login to merge, or discard this patch.
src/WebHemi/Middleware/Action/Website/IndexAction.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 
14 14
 namespace WebHemi\Middleware\Action\Website;
15 15
 
16
-use WebHemi\Form\Element\Html\HtmlElement;
17 16
 use WebHemi\Form\Element\Html\Html5Element;
17
+use WebHemi\Form\Element\Html\HtmlElement;
18 18
 use WebHemi\Form\Element\Html\HtmlMultipleElement;
19 19
 use WebHemi\Form\ServiceAdapter\Base\ServiceAdapter as HtmlForm;
20 20
 use WebHemi\Middleware\Action\AbstractMiddlewareAction;
Please login to merge, or discard this patch.
src/WebHemi/StringLib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $parts = explode('#', $input);
43 43
         array_walk(
44 44
             $parts,
45
-            function (&$value) {
45
+            function(&$value) {
46 46
                 $value = ucfirst(strtolower($value));
47 47
             }
48 48
         );
Please login to merge, or discard this patch.
src/WebHemi/Renderer/Traits/GetSelectedThemeResourcePathTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      * @return string
36 36
      */
37 37
     protected function getSelectedThemeResourcePath(
38
-        string &$selectedTheme,
38
+        string&$selectedTheme,
39 39
         ConfigurationInterface $configuration,
40 40
         EnvironmentInterface $environmentManager
41 41
     ) : string {
Please login to merge, or discard this patch.
src/WebHemi/Renderer/ServiceAdapter/Twig/TwigExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         $config = [];
100 100
 
101 101
         if ($this->configuration->has('renderer/Global/'.$type)) {
102
-            $config = $this->configuration->getData('renderer/Global/' . $type);
102
+            $config = $this->configuration->getData('renderer/Global/'.$type);
103 103
         }
104 104
 
105 105
         if ($this->configuration->has('renderer/'.$module.'/'.$type)) {
Please login to merge, or discard this patch.
src/WebHemi/Middleware/Action/Auth/LoginAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         $form = $this->getLoginForm();
75 75
 
76 76
         if ($this->request->getMethod() == 'POST') {
77
-            $postData = $this->request->getParsedBody() ;
77
+            $postData = $this->request->getParsedBody();
78 78
             $this->authCredential->setCredential('username', $postData['login']['identification'] ?? '')
79 79
                 ->setCredential('password', $postData['login']['password'] ?? '');
80 80
 
Please login to merge, or discard this patch.