@@ -15,13 +15,13 @@ discard block |
||
| 15 | 15 | private static $cache; |
| 16 | 16 | |
| 17 | 17 | private static function cache() { |
| 18 | - if(isset(self::$cache) || ! Schema::hasTable('modules')) return; |
|
| 18 | + if (isset(self::$cache) || !Schema::hasTable('modules')) return; |
|
| 19 | 19 | |
| 20 | - self::$cache = Schema::hasTable('modules')? self::pluck('class', 'alias'): collect(); |
|
| 20 | + self::$cache = Schema::hasTable('modules') ? self::pluck('class', 'alias') : collect(); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | public static function isInstalled($classOrAlias) { |
| 24 | - return self::getClass($classOrAlias)? 1: 0; |
|
| 24 | + return self::getClass($classOrAlias) ? 1 : 0; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public static function getClass($classOrAlias) { |
@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $ret = []; |
| 50 | 50 | foreach (self::getInstalled() as $module) { |
| 51 | - if (! $list = $module::$method()) continue; |
|
| 51 | + if (!$list = $module::$method()) continue; |
|
| 52 | 52 | |
| 53 | - $ret = array_merge($ret, is_array($list)? $list: [$list]); |
|
| 53 | + $ret = array_merge($ret, is_array($list) ? $list : [$list]); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | return $ret; |