@@ -42,7 +42,7 @@ |
||
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 | ); |
@@ -13,10 +13,10 @@ |
||
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. |
@@ -68,7 +68,7 @@ discard block |
||
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 |
||
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 | } |
@@ -50,7 +50,7 @@ |
||
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 |
@@ -13,7 +13,6 @@ |
||
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; |
@@ -21,7 +21,6 @@ |
||
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; |
@@ -50,13 +50,13 @@ |
||
50 | 50 | return [ |
51 | 51 | 'activeMenu' => '', |
52 | 52 | 'categories' => [ |
53 | - ['url' => 'posts', 'title' => 'Posts', 'icon' => 'chrome_reader_mode', 'new' => 1], |
|
54 | - ['url' => 'useful', 'title' => 'Useful infos', 'icon' => 'perm_device_information', 'new' => 0], |
|
55 | - ['url' => 'events', 'title' => 'Events', 'icon' => 'event_note', 'new' => 0], |
|
56 | - ['url' => 'something', 'title' => 'Something', 'icon' => null, 'new' => 8], |
|
53 | + ['url' => 'posts', 'title' => 'Posts', 'icon' => 'chrome_reader_mode', 'new' => 1], |
|
54 | + ['url' => 'useful', 'title' => 'Useful infos', 'icon' => 'perm_device_information', 'new' => 0], |
|
55 | + ['url' => 'events', 'title' => 'Events', 'icon' => 'event_note', 'new' => 0], |
|
56 | + ['url' => 'something', 'title' => 'Something', 'icon' => null, 'new' => 8], |
|
57 | 57 | ], |
58 | 58 | 'tags' => [ |
59 | - ['url' => 'php', 'title' => 'PHP', 'total' => 132, 'new' => 1], |
|
59 | + ['url' => 'php', 'title' => 'PHP', 'total' => 132, 'new' => 1], |
|
60 | 60 | ['url' => 'coding', 'title' => 'Coding', 'total' => 132, 'new' => 0], |
61 | 61 | ['url' => 'munich', 'title' => 'Munich', 'total' => 132, 'new' => 85] |
62 | 62 | ], |
@@ -73,13 +73,13 @@ |
||
73 | 73 | 'title' => $title, |
74 | 74 | 'activeMenu' => $currentMenu, |
75 | 75 | 'categories' => [ |
76 | - ['url' => 'posts', 'title' => 'Posts', 'icon' => 'chrome_reader_mode', 'new' => 1], |
|
77 | - ['url' => 'useful', 'title' => 'Useful infos', 'icon' => 'perm_device_information', 'new' => 0], |
|
78 | - ['url' => 'events', 'title' => 'Events', 'icon' => 'event_note', 'new' => 0], |
|
79 | - ['url' => 'something', 'title' => 'Something', 'icon' => null, 'new' => 8], |
|
76 | + ['url' => 'posts', 'title' => 'Posts', 'icon' => 'chrome_reader_mode', 'new' => 1], |
|
77 | + ['url' => 'useful', 'title' => 'Useful infos', 'icon' => 'perm_device_information', 'new' => 0], |
|
78 | + ['url' => 'events', 'title' => 'Events', 'icon' => 'event_note', 'new' => 0], |
|
79 | + ['url' => 'something', 'title' => 'Something', 'icon' => null, 'new' => 8], |
|
80 | 80 | ], |
81 | 81 | 'tags' => [ |
82 | - ['url' => 'php', 'title' => 'PHP', 'total' => 132, 'new' => 1], |
|
82 | + ['url' => 'php', 'title' => 'PHP', 'total' => 132, 'new' => 1], |
|
83 | 83 | ['url' => 'coding', 'title' => 'Coding', 'total' => 132, 'new' => 0], |
84 | 84 | ['url' => 'munich', 'title' => 'Munich', 'total' => 132, 'new' => 85] |
85 | 85 | ], |
@@ -127,13 +127,13 @@ |
||
127 | 127 | return [ |
128 | 128 | 'activeMenu' => '', |
129 | 129 | 'categories' => [ |
130 | - ['url' => 'posts', 'title' => 'Posts', 'icon' => 'chrome_reader_mode', 'new' => 1], |
|
131 | - ['url' => 'useful', 'title' => 'Useful infos', 'icon' => 'perm_device_information', 'new' => 0], |
|
132 | - ['url' => 'events', 'title' => 'Events', 'icon' => 'event_note', 'new' => 0], |
|
133 | - ['url' => 'something', 'title' => 'Something', 'icon' => null, 'new' => 8], |
|
130 | + ['url' => 'posts', 'title' => 'Posts', 'icon' => 'chrome_reader_mode', 'new' => 1], |
|
131 | + ['url' => 'useful', 'title' => 'Useful infos', 'icon' => 'perm_device_information', 'new' => 0], |
|
132 | + ['url' => 'events', 'title' => 'Events', 'icon' => 'event_note', 'new' => 0], |
|
133 | + ['url' => 'something', 'title' => 'Something', 'icon' => null, 'new' => 8], |
|
134 | 134 | ], |
135 | 135 | 'tags' => [ |
136 | - ['url' => 'php', 'title' => 'PHP', 'total' => 132, 'new' => 1], |
|
136 | + ['url' => 'php', 'title' => 'PHP', 'total' => 132, 'new' => 1], |
|
137 | 137 | ['url' => 'coding', 'title' => 'Coding', 'total' => 132, 'new' => 0], |
138 | 138 | ['url' => 'munich', 'title' => 'Munich', 'total' => 132, 'new' => 85] |
139 | 139 | ], |