Skip to content

Commit

Permalink
composer fix-style
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-debugbar authored and actions-user committed Dec 7, 2020
1 parent 618911a commit 66ce2a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DataCollector/LogsCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public function getLogsFile()
{
// default daily rotating logs (Laravel 5.0)
$path = storage_path() . '/logs/laravel-' . date('Y-m-d') . '.log';

// single file logs
if (!file_exists($path)) {
$path = storage_path() . '/logs/laravel.log';
}

return $path;
}

Expand Down
2 changes: 1 addition & 1 deletion src/DataCollector/ViewCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function addView(View $view)
{
$name = $view->getName();
$path = $view->getPath();

if (!is_object($path)) {
if ($path) {
$path = ltrim(str_replace(base_path(), '', realpath($path)), '/');
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function register()
{
$configPath = __DIR__ . '/../config/debugbar.php';
$this->mergeConfigFrom($configPath, 'debugbar');

$this->loadRoutesFrom(realpath(__DIR__ . '/debugbar-routes.php'));

$this->app->alias(
Expand Down

0 comments on commit 66ce2a7

Please sign in to comment.