Fixed CS
This commit is contained in:
davidcallizaya
2017-08-09 15:48:00 -04:00
parent 21a0b9508e
commit 427d74f68e
6 changed files with 32 additions and 18 deletions

View File

@@ -1,5 +1,15 @@
<?php <?php
use Illuminate\Contracts\Console\Kernel as Kernel2;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Http\Kernel as Kernel4;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Console\Kernel;
use Illuminate\Foundation\Exceptions\Handler;
use Illuminate\Foundation\Http\Kernel as Kernel3;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\RotatingFileHandler;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Create The Application | Create The Application
@@ -11,7 +21,7 @@
| |
*/ */
$app = new Illuminate\Foundation\Application( $app = new Application(
realpath(__DIR__ . '/../') realpath(__DIR__ . '/../')
); );
@@ -27,28 +37,28 @@ $app = new Illuminate\Foundation\Application(
*/ */
$app->singleton( $app->singleton(
Illuminate\Contracts\Http\Kernel::class, Kernel4::class,
Illuminate\Foundation\Http\Kernel::class Kernel3::class
); );
$app->singleton( $app->singleton(
Illuminate\Contracts\Console\Kernel::class, Kernel2::class,
Illuminate\Foundation\Console\Kernel::class Kernel::class
); );
$app->singleton( $app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class, ExceptionHandler::class,
Illuminate\Foundation\Exceptions\Handler::class Handler::class
); );
$app->configureMonologUsing(function ($monolog) use ($app) { $app->configureMonologUsing(function ($monolog) use ($app) {
$monolog->pushHandler( $monolog->pushHandler(
(new Monolog\Handler\RotatingFileHandler( (new RotatingFileHandler(
// Set the log path // Set the log path
$app->storagePath() . '/logs/processmaker.log', $app->storagePath() . '/logs/processmaker.log',
// Set the number of daily files you want to keep // Set the number of daily files you want to keep
$app->make('config')->get('app.log_max_files', 5) $app->make('config')->get('app.log_max_files', 5)
))->setFormatter(new Monolog\Formatter\LineFormatter(null, null, true, true)) ))->setFormatter(new LineFormatter(null, null, true, true))
); );
}); });

View File

@@ -1,5 +1,9 @@
<?php <?php
use Illuminate\Cache\CacheServiceProvider;
use Illuminate\Filesystem\FilesystemServiceProvider;
use Illuminate\View\ViewServiceProvider;
return [ return [
'name' => env('APP_NAME', 'ProcessMaker'), 'name' => env('APP_NAME', 'ProcessMaker'),
'env' => env('APP_ENV', 'production'), 'env' => env('APP_ENV', 'production'),
@@ -8,9 +12,9 @@ return [
'log_level' => env('APP_LOG_LEVEL', 'debug'), 'log_level' => env('APP_LOG_LEVEL', 'debug'),
'providers' => [ 'providers' => [
Illuminate\Filesystem\FilesystemServiceProvider::class, FilesystemServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class, CacheServiceProvider::class,
Illuminate\View\ViewServiceProvider::class, ViewServiceProvider::class,
], ],
'aliases' => [ 'aliases' => [

View File

@@ -51,7 +51,7 @@ return [
'public' => [ 'public' => [
'driver' => 'local', 'driver' => 'local',
'root' => storage_path('app/public'), 'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage', 'url' => env('APP_URL') . '/storage',
'visibility' => 'public', 'visibility' => 'public',
], ],

View File

@@ -3,9 +3,9 @@
use Illuminate\Foundation\Console\Kernel; use Illuminate\Foundation\Console\Kernel;
// Because laravel has a __ helper function, it's important we include the class.g file to ensure our __ is used. // Because laravel has a __ helper function, it's important we include the class.g file to ensure our __ is used.
require_once __DIR__.'/gulliver/system/class.g.php'; require_once __DIR__ . '/gulliver/system/class.g.php';
require_once __DIR__.'/bootstrap/autoload.php'; require_once __DIR__ . '/bootstrap/autoload.php';
require_once __DIR__.'/bootstrap/app.php'; require_once __DIR__ . '/bootstrap/app.php';
$app->make(Kernel::class)->bootstrap(); $app->make(Kernel::class)->bootstrap();
$scriptDir = dirname(__FILE__).'/'; $scriptDir = dirname(__FILE__).'/';

View File

@@ -3913,7 +3913,7 @@ class workspaceTools
{ {
$paths = [ $paths = [
PATH_DATA.'framework' => 0770, PATH_DATA.'framework' => 0770,
PATH_DATA.'framework' . DIRECTORY_SEPARATOR.'cache' => 0770, PATH_DATA.'framework' . DIRECTORY_SEPARATOR . 'cache' => 0770,
]; ];
foreach ($paths as $path => $permission) { foreach ($paths as $path => $permission) {
if (!file_exists($path)) { if (!file_exists($path)) {