Skip to content
This repository has been archived by the owner on Mar 21, 2018. It is now read-only.

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 15, 2013
1 parent f3fc2e8 commit 0dfbfc1
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 57 deletions.
2 changes: 1 addition & 1 deletion src/Kmd/Logviewer/Logviewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function log()
unset($headings);
unset($log_data);

if (strtolower(Config::get('logviewer::log_order')) == 'desc'){
if (strtolower(Config::get('logviewer::log_order')) == 'desc') {
$log = array_reverse($log);
}

Expand Down
106 changes: 53 additions & 53 deletions src/Kmd/Logviewer/LogviewerServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
<?php namespace Kmd\Logviewer;

use Illuminate\Support\ServiceProvider;

class LogviewerServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @access protected
* @var bool
*/
protected $defer = false;

/**
* Bootstrap the application events.
*
* @access public
* @return void
*/
public function boot()
{
$this->package('kmd/logviewer');

include __DIR__.'/../../routes.php';
include __DIR__.'/../../filters.php';
include __DIR__.'/../../macros.php';
}

/**
* Register the service provider.
*
* @access public
* @return void
*/
public function register()
{
$this->app['logviewer'] = $this->app->share(function ($app) {
return new Logviewer;
});
}

/**
* Get the services provided by the provider.
*
* @access public
* @return array
*/
public function provides()
{
return array('logviewer');
}
}
<?php namespace Kmd\Logviewer;

use Illuminate\Support\ServiceProvider;

class LogviewerServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @access protected
* @var bool
*/
protected $defer = false;

/**
* Bootstrap the application events.
*
* @access public
* @return void
*/
public function boot()
{
$this->package('kmd/logviewer');

include __DIR__.'/../../routes.php';
include __DIR__.'/../../filters.php';
include __DIR__.'/../../macros.php';
}

/**
* Register the service provider.
*
* @access public
* @return void
*/
public function register()
{
$this->app['logviewer'] = $this->app->share(function ($app) {
return new Logviewer;
});
}

/**
* Get the services provided by the provider.
*
* @access public
* @return array
*/
public function provides()
{
return array('logviewer');
}
}
5 changes: 2 additions & 3 deletions src/filters.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

Route::filter('logviewer.logs', function ()
{
Route::filter('logviewer.logs', function () {
$logs = array();
if (!Lang::has('logviewer::logviewer.sapi')) {
App::setLocale('en');
Expand Down Expand Up @@ -31,7 +30,7 @@
});

Route::filter('logviewer.messages', function () {
if (Session::has('success') OR Session::has('error') OR Session::has('info')) {
if (Session::has('success') || Session::has('error') || Session::has('info')) {
View::share('has_messages', true);
} else {
View::share('has_messages', false);
Expand Down

0 comments on commit 0dfbfc1

Please sign in to comment.