Passed
Push — master ( 5f288c...c12552 )
by Gabor
07:41
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/Renderer/Helper/GetTagsHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         /* TODO: tbd */
86 86
 
87 87
         return [
88
-            ['url' => 'php',    'title' => 'PHP',    'total' => 132, 'new' =>  1],
88
+            ['url' => 'php', 'title' => 'PHP', 'total' => 132, 'new' =>  1],
89 89
             ['url' => 'coding', 'title' => 'Coding', 'total' => 132, 'new' =>  0],
90 90
             ['url' => 'munich', 'title' => 'Munich', 'total' => 132, 'new' => 85]
91 91
         ];
Please login to merge, or discard this patch.
src/WebHemi/Renderer/Helper/GetCategoriesHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,10 +85,10 @@
 block discarded – undo
85 85
         /* TODO: tbd */
86 86
 
87 87
         return [
88
-            ['url' => 'posts',      'title' => 'Posts',        'total' => 280, 'new' => 1],
89
-            ['url' => 'useful',     'title' => 'Useful infos', 'total' => 280, 'new' => 0],
90
-            ['url' => 'events',     'title' => 'Events',       'total' => 280, 'new' => 0],
91
-            ['url' => 'something',  'title' => 'Something',    'total' => 280, 'new' => 8],
88
+            ['url' => 'posts', 'title' => 'Posts', 'total' => 280, 'new' => 1],
89
+            ['url' => 'useful', 'title' => 'Useful infos', 'total' => 280, 'new' => 0],
90
+            ['url' => 'events', 'title' => 'Events', 'total' => 280, 'new' => 0],
91
+            ['url' => 'something', 'title' => 'Something', 'total' => 280, 'new' => 8],
92 92
         ];
93 93
     }
94 94
 }
Please login to merge, or discard this patch.
src/WebHemi/Renderer/Filter/TagParserFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      * @param string $text
109 109
      * @return TagParserFilter
110 110
      */
111
-    private function getCurrentUri(string &$text) : TagParserFilter
111
+    private function getCurrentUri(string&$text) : TagParserFilter
112 112
     {
113 113
         $uri = rtrim($this->environmentManager->getRequestUri(), '/');
114 114
         $text = str_replace('[URL]', $uri, $text);
Please login to merge, or discard this patch.