Declare strict types.

This commit is contained in:
James Cole 2016-05-20 08:57:45 +02:00
parent 782a6f289c
commit 66d7fd7d4c
146 changed files with 394 additions and 83 deletions

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* ConfigureLogging.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
@ -20,15 +22,6 @@ use Illuminate\Log\Writer;
*/
class ConfigureLogging extends IlluminateConfigureLogging
{
/**
* @param Application $app
* @param Writer $log
*/
protected function configureSingleHandler(Application $app, Writer $log)
{
$log->useFiles($app->storagePath() . '/logs/firefly-iii.log');
}
/**
* @param Application $app
* @param Writer $log
@ -40,4 +33,13 @@ class ConfigureLogging extends IlluminateConfigureLogging
$app->make('config')->get('app.log_max_files', 5)
);
}
/**
* @param Application $app
* @param Writer $log
*/
protected function configureSingleHandler(Application $app, Writer $log)
{
$log->useFiles($app->storagePath() . '/logs/firefly-iii.log');
}
}

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Console\Commands;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* Journal.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* JournalInterface.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* BudgetLimitStored.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
@ -7,8 +9,6 @@
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
namespace FireflyIII\Events;
use Carbon\Carbon;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* BudgetLimitUpdated.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
@ -7,8 +9,6 @@
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
namespace FireflyIII\Events;
use Carbon\Carbon;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* TransactionStored.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
@ -7,14 +9,6 @@
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
/**
* TransactionStored.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Events;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* EntryAccount.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* EntryBill.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* EntryBudget.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* EntryCategory.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -157,7 +157,7 @@ class Processor
foreach ($this->getFiles() as $entry) {
// is part of this job?
$zipFileName = str_replace($this->job->key . '-', '', $entry);
$result = $zip->addFromString($zipFileName, $disk->get($entry));
$zip->addFromString($zipFileName, $disk->get($entry));
}
$zip->close();

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* BudgetLimitEventHandler.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
/**
* ConnectTransactionToPiggyBank.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
@ -7,8 +10,6 @@
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
namespace FireflyIII\Handlers\Events;
use FireflyIII\Events\TransactionJournalStored;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Auth;
use Carbon\Carbon;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* HomeController.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* UserController.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use FireflyIII\Http\Requests\BillFormRequest;
use FireflyIII\Models\Bill;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Amount;
use Auth;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Auth;
use Carbon\Carbon;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Auth;
use Cache;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use FireflyIII\Helpers\Help\HelpInterface;
use Log;

View File

@ -1,4 +1,6 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Artisan;
use Carbon\Carbon;

View File

@ -1,4 +1,6 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Amount;
use Carbon\Carbon;

View File

@ -1,4 +1,6 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Auth;
use Carbon\Carbon;

View File

@ -1,4 +1,6 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Amount;
use Carbon\Carbon;

View File

@ -1,4 +1,6 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Auth;
use FireflyIII\Http\Requests\TokenFormRequest;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Auth;
use FireflyIII\Http\Requests\DeleteAccountFormRequest;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use Carbon\Carbon;
use FireflyIII\Exceptions\FireflyException;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Http\Controllers;
<?php
declare(strict_types = 1);
namespace FireflyIII\Http\Controllers;
use FireflyIII\Support\Search\SearchInterface;
use Input;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* SplitController.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
/**
* TransactionController.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
/**
* IsAdmin.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
@ -7,14 +10,7 @@
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
/**
* IsConfirmed.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* MassDeleteJournalRequest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
@ -7,15 +9,6 @@
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
/**
* MassJournalRequest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Http\Requests;
use Auth;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* MassEditJournalRequest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
@ -7,15 +9,6 @@
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
/**
* MassJournalRequest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Http\Requests;
use Auth;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/**
* SplitJournalFormRequest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Jobs;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Jobs;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Auth;
use Crypt;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Auth;
use Crypt;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Auth;
use Crypt;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Auth;
use Crypt;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Auth;
use Carbon\Carbon;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Auth;
use Crypt;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Crypt;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Auth;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Auth;
use Carbon\Carbon;

View File

@ -1,4 +1,7 @@
<?php namespace FireflyIII\Models;
<?php
declare(strict_types = 1);
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
/**
* CrudServiceProvider.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Providers;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
namespace FireflyIII\Repositories\Account;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
/**
* JournalList.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
/**
* UnfinishedJournal.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
/*
|--------------------------------------------------------------------------

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
define('LARAVEL_START', microtime(true));

View File

@ -45,7 +45,6 @@
"symfony/dom-crawler": "2.8.*|3.0.*",
"barryvdh/laravel-debugbar": "@stable",
"barryvdh/laravel-ide-helper": "~2.0",
"johnkary/phpunit-speedtrap": "^1.0",
"hamcrest/hamcrest-php": "^2.0@dev"
},
"autoload": {

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [
'specifix' => [
'RabobankDescription',

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
/**
* This file is part of Entrust,

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [
'chart' => 'chartjs',

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [
'twig' => [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
/**
* upgrade.php
* Copyright (C) 2016 thegrumpydictator@gmail.com

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
return [

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
$factory->define(
FireflyIII\User::class, function (Faker\Generator $faker) {

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types = 1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

Some files were not shown because too many files have changed in this diff Show More