Fix formatting and interfaces in nearly every file

This commit is contained in:
Nabeel Shahzad
2018-03-19 20:50:40 -05:00
parent 04c5b9e7bf
commit ccf56ddec1
331 changed files with 3282 additions and 2492 deletions

View File

@@ -2,39 +2,48 @@
namespace Modules\Installer\Http\Controllers;
use App\Support\Countries;
use Log;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Database\QueryException;
use Illuminate\Support\Facades\Validator;
use App\Models\User;
use App\Repositories\AirlineRepository;
use App\Facades\Utils;
use App\Interfaces\Controller;
use App\Models\User;
use App\Repositories\AirlineRepository;
use App\Services\AnalyticsService;
use App\Services\UserService;
use App\Http\Controllers\Controller;
use Modules\Installer\Services\DatabaseService;
use App\Support\Countries;
use Illuminate\Database\QueryException;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Log;
use Modules\Installer\Services\ConfigService;
use Modules\Installer\Services\DatabaseService;
use Modules\Installer\Services\MigrationService;
use Modules\Installer\Services\RequirementsService;
use Symfony\Component\HttpFoundation\File\Exception\FileException;
/**
* Class InstallerController
* @package Modules\Installer\Http\Controllers
*/
class InstallerController extends Controller
{
protected $airlineRepo,
$analyticsSvc,
$dbService,
$envService,
$migrationSvc,
$reqService,
$userService;
private $airlineRepo,
$analyticsSvc,
$dbService,
$envService,
$migrationSvc,
$reqService,
$userService;
/**
* InstallerController constructor.
* @param AirlineRepository $airlineRepo
* @param AnalyticsService $analyticsSvc
* @param DatabaseService $dbService
* @param ConfigService $envService
* @param MigrationService $migrationSvc
* @param RequirementsService $reqService
* @param UserService $userService
*/
public function __construct(
AirlineRepository $airlineRepo,
AnalyticsService $analyticsSvc,

View File

@@ -2,17 +2,23 @@
namespace Modules\Installer\Http\Controllers;
use Log;
use App\Interfaces\Controller;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Log;
use Modules\Installer\Services\MigrationService;
/**
* Class UpdaterController
* @package Modules\Installer\Http\Controllers
*/
class UpdaterController extends Controller
{
protected $migrationSvc;
private $migrationSvc;
/**
* UpdaterController constructor.
* @param MigrationService $migrationSvc
*/
public function __construct(
MigrationService $migrationSvc
) {

View File

@@ -2,6 +2,7 @@
namespace Modules\Installer\Services;
use App\Interfaces\Service;
use Illuminate\Encryption\Encrypter;
use Log;
use Nwidart\Modules\Support\Stub;
@@ -12,7 +13,7 @@ use Symfony\Component\HttpFoundation\File\Exception\FileException;
* Class ConfigService
* @package Modules\Installer\Services
*/
class ConfigService
class ConfigService extends Service
{
/**
* Create the .env file

View File

@@ -2,11 +2,12 @@
namespace Modules\Installer\Services;
use App\Interfaces\Service;
use Log;
use PDO;
class DatabaseService {
class DatabaseService extends Service
{
/**
* Check the PHP version that it meets the minimum requirement
* @param $driver

View File

@@ -2,6 +2,7 @@
namespace Modules\Installer\Services;
use App\Interfaces\Service;
use Log;
use Nwidart\Modules\Facades\Module;
@@ -9,7 +10,7 @@ use Nwidart\Modules\Facades\Module;
* Class MigrationsService
* @package Modules\Installer\Services
*/
class MigrationService
class MigrationService extends Service
{
/**
* @return \Illuminate\Database\Migrations\Migrator

View File

@@ -3,7 +3,10 @@
namespace Modules\Installer\Services;
class RequirementsService {
use App\Interfaces\Service;
class RequirementsService extends Service
{
/**
* Check the PHP version that it meets the minimum requirement