Passed
Pull Request — developer (#16684)
by Radosław
17:40
created
app/Module.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	{
77 77
 		$entity = static::getEntitiesInfo();
78 78
 		if ($sort) {
79
-			usort($entity, function ($a, $b) {
79
+			usort($entity, function($a, $b) {
80 80
 				return $a['sequence'] < $b['sequence'] ? -1 : 1;
81 81
 			});
82 82
 		}
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 */
139 139
 	public static function getDefaultModule(): string
140 140
 	{
141
-		$moduleName = \App\Config::main('default_module') ?:  'Home';
141
+		$moduleName = \App\Config::main('default_module') ?: 'Home';
142 142
 		if (!\App\Privilege::isPermitted($moduleName)) {
143 143
 			foreach (\vtlib\Functions::getAllModules(true, false, 0) as $module) {
144 144
 				if (\App\Privilege::isPermitted($module['name'])) {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 			Log::error("The file $filename does not exist");
304 304
 		}
305 305
 		static::initFromDb();
306
-		register_shutdown_function(function () {
306
+		register_shutdown_function(function() {
307 307
 			try {
308 308
 				YetiForce\Shop::generateCache();
309 309
 			} catch (\Throwable $e) {
Please login to merge, or discard this patch.