@@ -71,7 +71,7 @@ |
||
| 71 | 71 | ) { |
| 72 | 72 | parent::__construct($app, $repository, $config, $filesystem); |
| 73 | 73 | $this->setName('migration:reset') |
| 74 | - ->setDescription('Rollback all migration done before'); |
|
| 74 | + ->setDescription('Rollback all migration done before'); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | ) { |
| 73 | 73 | parent::__construct($app, $repository, $config, $filesystem); |
| 74 | 74 | $this->setName('migration:status') |
| 75 | - ->setDescription('Show current status of your migrations'); |
|
| 75 | + ->setDescription('Show current status of your migrations'); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -212,10 +212,10 @@ |
||
| 212 | 212 | return $this; |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | - /** |
|
| 216 | - * Return the application root path |
|
| 217 | - * @return string |
|
| 218 | - */ |
|
| 215 | + /** |
|
| 216 | + * Return the application root path |
|
| 217 | + * @return string |
|
| 218 | + */ |
|
| 219 | 219 | public function getAppPath(): string |
| 220 | 220 | { |
| 221 | 221 | return $this->appPath; |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $config = $app->get(Config::class); |
| 88 | 88 | |
| 89 | 89 | $pagination->setItemsPerPage($config->get('pagination.item_per_page', 10)) |
| 90 | - ->setMaxPages($config->get('pagination.max_pages', 5)); |
|
| 90 | + ->setMaxPages($config->get('pagination.max_pages', 5)); |
|
| 91 | 91 | |
| 92 | 92 | return $pagination; |
| 93 | 93 | }); |
@@ -79,8 +79,8 @@ |
||
| 79 | 79 | foreach ($pages as $page) { |
| 80 | 80 | if ($page->getUrl() !== null) { |
| 81 | 81 | $html .= '<li class = "page-item' . ($page->isCurrent() ? ' active"' : '"') |
| 82 | - . '><a href = "' . $page->getUrl() . '" class="page-link">' |
|
| 83 | - . $page->getNumber() . '</a></li>'; |
|
| 82 | + . '><a href = "' . $page->getUrl() . '" class="page-link">' |
|
| 83 | + . $page->getNumber() . '</a></li>'; |
|
| 84 | 84 | } else { |
| 85 | 85 | $html .= '<li class = "page-item disabled"><a href="#" class="page-link">' |
| 86 | 86 | . $page->getNumber() . '</a></li>'; |
@@ -162,14 +162,14 @@ |
||
| 162 | 162 | { |
| 163 | 163 | if ($this->isPreflight()) { |
| 164 | 164 | $this->setOrigin() |
| 165 | - ->setMaxAge() |
|
| 166 | - ->setAllowCredentials() |
|
| 167 | - ->setAllowMethods() |
|
| 168 | - ->setAllowHeaders(); |
|
| 165 | + ->setMaxAge() |
|
| 166 | + ->setAllowCredentials() |
|
| 167 | + ->setAllowMethods() |
|
| 168 | + ->setAllowHeaders(); |
|
| 169 | 169 | } else { |
| 170 | 170 | $this->setOrigin() |
| 171 | - ->setExposedHeaders() |
|
| 172 | - ->setAllowCredentials(); |
|
| 171 | + ->setExposedHeaders() |
|
| 172 | + ->setAllowCredentials(); |
|
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | if (!$this->hasParser($contentType)) { |
| 167 | - // If not, look for a media type with a structured syntax suffix (RFC 6839) |
|
| 167 | + // If not, look for a media type with a structured syntax suffix (RFC 6839) |
|
| 168 | 168 | $parts = explode('+', $contentType); |
| 169 | 169 | |
| 170 | 170 | if (count($parts) >= 2) { |
@@ -129,10 +129,10 @@ |
||
| 129 | 129 | $name = $results['key']; |
| 130 | 130 | |
| 131 | 131 | $config = $this->loader->loadConfig([ |
| 132 | - 'name' => $name, |
|
| 133 | - 'module' => $module, |
|
| 134 | - 'env' => $this->env |
|
| 135 | - ]); |
|
| 132 | + 'name' => $name, |
|
| 133 | + 'module' => $module, |
|
| 134 | + 'env' => $this->env |
|
| 135 | + ]); |
|
| 136 | 136 | |
| 137 | 137 | if ($config === null) { |
| 138 | 138 | $this->loader->insertConfig([ |
@@ -150,8 +150,8 @@ |
||
| 150 | 150 | $task->run(); |
| 151 | 151 | } catch (Throwable $e) { |
| 152 | 152 | $this->logger->error('Error occurred when execute task {task}, error: {error}', [ |
| 153 | - 'task' => $task->name(), |
|
| 154 | - 'error' => $e->getMessage() |
|
| 153 | + 'task' => $task->name(), |
|
| 154 | + 'error' => $e->getMessage() |
|
| 155 | 155 | ]); |
| 156 | 156 | } |
| 157 | 157 | } |