@@ -103,11 +103,11 @@ |
||
| 103 | 103 | $this->semver = $this->version; |
| 104 | 104 | |
| 105 | 105 | if ($this->pre_release) { |
| 106 | - $this->semver .= '-' . $this->pre_release; |
|
| 106 | + $this->semver .= '-'.$this->pre_release; |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | if ($this->meta) { |
| 110 | - $this->semver .= '+' . $this->meta; |
|
| 110 | + $this->semver .= '+'.$this->meta; |
|
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | 113 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | ], |
| 35 | 35 | function (Router $router) { |
| 36 | 36 | $router->get($this->app['config']->get('version.route.uri', 'version'), 'VersionController@version') |
| 37 | - ->name($this->app['config']->get('version.route.name', 'version')); |
|
| 37 | + ->name($this->app['config']->get('version.route.name', 'version')); |
|
| 38 | 38 | } |
| 39 | 39 | ); |
| 40 | 40 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | 'namespace' => 'Spinen\Version\Http\Controllers', |
| 33 | 33 | 'middleware' => $this->app['config']->get('version.route.middleware', 'web'), |
| 34 | 34 | ], |
| 35 | - function (Router $router) { |
|
| 35 | + function(Router $router) { |
|
| 36 | 36 | $router->get($this->app['config']->get('version.route.uri', 'version'), 'VersionController@version') |
| 37 | 37 | ->name($this->app['config']->get('version.route.name', 'version')); |
| 38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | if ($this->app['config']->get('version.view.enabled')) { |
| 43 | 43 | $this->app['view']->composer( |
| 44 | 44 | $this->app['config']->get('version.view.views', '*'), |
| 45 | - function ($view) { |
|
| 45 | + function($view) { |
|
| 46 | 46 | return $view->with( |
| 47 | 47 | $this->app['config']->get('version.view.variable', 'version'), |
| 48 | 48 | $this->app->make(Version::class) |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | { |
| 76 | 76 | $this->app->singleton( |
| 77 | 77 | Version::class, |
| 78 | - function () { |
|
| 78 | + function() { |
|
| 79 | 79 | return new Version(base_path($this->app['config']->get('version.file', 'VERSION'))); |
| 80 | 80 | } |
| 81 | 81 | ); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | if ($this->app->runningInConsole()) { |
| 84 | 84 | $this->publishes( |
| 85 | 85 | [ |
| 86 | - realpath(__DIR__ . '/../config/version.php') => config_path('version.php'), |
|
| 86 | + realpath(__DIR__.'/../config/version.php') => config_path('version.php'), |
|
| 87 | 87 | ], |
| 88 | 88 | 'version-config' |
| 89 | 89 | ); |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function version(Config $config, Version $version) |
| 25 | 25 | { |
| 26 | - return $version->{$config->get('version.route.expose', 'semver')} . " Hostname: " . gethostname(); |
|
| 26 | + return $version->{$config->get('version.route.expose', 'semver')}." Hostname: ".gethostname(); |
|
| 27 | 27 | } |
| 28 | 28 | } |