@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $module = $bindModule; |
| 47 | 47 | } |
| 48 | 48 | $available = true; |
| 49 | - } elseif (!in_array($module, $this->rule->getConfig('deny_module_list')) && is_dir($this->app->getAppPath() . $module)) { |
|
| 49 | + } elseif (!in_array($module, $this->rule->getConfig('deny_module_list')) && is_dir($this->app->getAppPath().$module)) { |
|
| 50 | 50 | $available = true; |
| 51 | 51 | } elseif ($this->rule->getConfig('empty_module')) { |
| 52 | 52 | $module = $this->rule->getConfig('empty_module'); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $this->request->setModule($module); |
| 60 | 60 | $this->app->init($module); |
| 61 | 61 | } else { |
| 62 | - throw new HttpException(404, 'module not exists:' . $module); |
|
| 62 | + throw new HttpException(404, 'module not exists:'.$module); |
|
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | |
@@ -93,12 +93,12 @@ discard block |
||
| 93 | 93 | $this->rule->getConfig('controller_suffix'), |
| 94 | 94 | $this->rule->getConfig('empty_controller')); |
| 95 | 95 | } catch (ClassNotFoundException $e) { |
| 96 | - throw new HttpException(404, 'controller not exists:' . $e->getClass()); |
|
| 96 | + throw new HttpException(404, 'controller not exists:'.$e->getClass()); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | - $this->app['middleware']->controller(function (Request $request, $next) use ($instance) { |
|
| 99 | + $this->app['middleware']->controller(function(Request $request, $next) use ($instance) { |
|
| 100 | 100 | // 获取当前操作名 |
| 101 | - $action = $this->actionName . $this->rule->getConfig('action_suffix'); |
|
| 101 | + $action = $this->actionName.$this->rule->getConfig('action_suffix'); |
|
| 102 | 102 | |
| 103 | 103 | if (is_callable([$instance, $action])) { |
| 104 | 104 | // 执行操作方法 |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $reflect = new ReflectionMethod($instance, '_empty'); |
| 124 | 124 | } else { |
| 125 | 125 | // 操作不存在 |
| 126 | - throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()'); |
|
| 126 | + throw new HttpException(404, 'method not exists:'.get_class($instance).'->'.$action.'()'); |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | $this->app['hook']->listen('action_begin', $call); |