Passed
Push — master ( 5c25b8...502eee )
by Gabor
05:16
created
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/Data/Storage/User/UserMetaStorage.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
 
14 14
 namespace WebHemi\Data\Storage\User;
15 15
 
16
-use WebHemi\DateTime;
17 16
 use WebHemi\Data\EntityInterface;
18 17
 use WebHemi\Data\Entity\User\UserMetaEntity;
19 18
 use WebHemi\Data\Storage\AbstractStorage;
19
+use WebHemi\DateTime;
20 20
 
21 21
 /**
22 22
  * Class UserMetaStorage.
Please login to merge, or discard this patch.
src/WebHemi/Middleware/Action/Admin/ControlPanel/Themes/IndexAction.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         foreach ($this->configuration->getData('themes') as $themeName => $themeData) {
70 70
             $themeStaticPath = '/resources/'.
71
-                ($themeName == 'default' ? 'default_theme' : 'vendor_themes/' . $themeName)
71
+                ($themeName == 'default' ? 'default_theme' : 'vendor_themes/'.$themeName)
72 72
                 . '/static/';
73 73
 
74 74
 
@@ -82,19 +82,19 @@  discard block
 block discarded – undo
82 82
                 'license' => $themeData['legal']['license'] ?? '',
83 83
                 'read_only' => isset($usedThemes[$themeName]),
84 84
                 'feature_website' => isset($themeData['features']['website_support'])
85
-                    ? (bool)$themeData['features']['website_support']
85
+                    ? (bool) $themeData['features']['website_support']
86 86
                     : false,
87 87
                 'feature_login' => isset($themeData['features']['admin_login_support'])
88
-                    ? (bool)$themeData['features']['admin_login_support']
88
+                    ? (bool) $themeData['features']['admin_login_support']
89 89
                     : false,
90 90
                 'feature_admin' => isset($themeData['features']['admin_support'])
91
-                    ? (bool)$themeData['features']['admin_support']
91
+                    ? (bool) $themeData['features']['admin_support']
92 92
                     : false,
93 93
                 'logo' => isset($themeData['legal']['logo'])
94
-                    ? $themeStaticPath . $themeData['legal']['logo']
94
+                    ? $themeStaticPath.$themeData['legal']['logo']
95 95
                     : '',
96 96
                 'preview' => isset($themeData['legal']['preview'])
97
-                    ? $themeStaticPath . $themeData['legal']['preview']
97
+                    ? $themeStaticPath.$themeData['legal']['preview']
98 98
                     : '',
99 99
             ];
100 100
         }
Please login to merge, or discard this patch.
src/WebHemi/Router/ServiceAdapter/FastRoute/ServiceAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $this->result = $routeResult;
51 51
         $this->applicationPath = $environmentManager->getSelectedApplicationUri();
52 52
         $this->adapter = \FastRoute\simpleDispatcher(
53
-            function (RouteCollector $routeCollector) use ($routes) {
53
+            function(RouteCollector $routeCollector) use ($routes) {
54 54
                 foreach ($routes as $resource => $route) {
55 55
                     $resourceName = $route['resource_name'] ?? $resource;
56 56
 
Please login to merge, or discard this patch.
src/WebHemi/Middleware/Action/Admin/ControlPanel/Groups/ListAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 namespace WebHemi\Middleware\Action\Admin\ControlPanel\Groups;
15 15
 
16
-use RuntimeException;
17 16
 use WebHemi\Configuration\ServiceInterface as ConfigurationInterface;
18 17
 use WebHemi\Data\Entity\User\UserGroupEntity;
19 18
 use WebHemi\Data\Storage\User\UserGroupStorage;
Please login to merge, or discard this patch.
src/WebHemi/Validator/ValidatorInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
     /**
22 22
      * Validates data.
23 23
      *
24
-     * @param array $data
25 24
      * @return bool
26 25
      */
27 26
     public function validate(array $values) : bool;
Please login to merge, or discard this patch.