diff --git a/app/Console/Commands/Install.php b/app/Console/Commands/Install.php index 303d3eeb3..bac454ecb 100644 --- a/app/Console/Commands/Install.php +++ b/app/Console/Commands/Install.php @@ -49,13 +49,13 @@ class Install extends Command * @var array */ protected $modules = [ - 'pdo' => 0, - 'mcrypt' => 0, - 'openssl' => 0, - 'curl' => 0, - 'json' => 0, + 'pdo' => 0, + 'mcrypt' => 0, + 'openssl' => 0, + 'curl' => 0, + 'json' => 0, 'mbstring' => 0, - 'xml' => 0, + 'xml' => 0, ]; /** @@ -72,8 +72,8 @@ class Install extends Command */ protected $dbDrivers = [ 'pdo_sqlite' => 0, - 'pdo_mysql' => 0, - 'pdo_pgsql' => 0, + 'pdo_mysql' => 0, + 'pdo_pgsql' => 0, 'pdo_sqlsrv' => 0, ]; @@ -83,20 +83,20 @@ class Install extends Command * @var array */ protected $data = [ - 'key' => '', - 'timezone' => 'Pacific/Auckland', - 'dbHost' => 'localhost', - 'dbName' => 'tinyissue', - 'dbUser' => 'root', - 'dbPass' => self::EMPTY_VALUE, - 'dbDriver' => 'mysql', - 'dbPrefix' => '', - 'sysEmail' => '', - 'sysName' => '', - 'adminEmail' => '', + 'key' => '', + 'timezone' => 'Pacific/Auckland', + 'dbHost' => 'localhost', + 'dbName' => 'tinyissue', + 'dbUser' => 'root', + 'dbPass' => self::EMPTY_VALUE, + 'dbDriver' => 'mysql', + 'dbPrefix' => '', + 'sysEmail' => '', + 'sysName' => '', + 'adminEmail' => '', 'adminFirstName' => '', - 'adminLastName' => '', - 'adminPass' => '', + 'adminLastName' => '', + 'adminPass' => '', ]; /** @@ -321,13 +321,13 @@ protected function stageOne() $validDbDrivers = $this->getValidDbDrivers(); $this->askQuestions([ 'dbDriver' => ['choice', ['Select a database driver', $validDbDrivers, 0]], - 'dbHost' => 'Enter the database host', - 'dbName' => 'Enter the database name', - 'dbUser' => 'Enter the database username', - 'dbPass' => 'Enter the database password', + 'dbHost' => 'Enter the database host', + 'dbName' => 'Enter the database name', + 'dbUser' => 'Enter the database username', + 'dbPass' => 'Enter the database password', 'dbPrefix' => 'Enter the tables prefix', 'sysEmail' => 'Email address used by the Tiny Issue to send emails from', - 'sysName' => 'Email name used by the Tiny Issue for the email address above', + 'sysName' => 'Email name used by the Tiny Issue for the email address above', 'timezone' => 'The application timezone. Find your timezone from: http://php.net/manual/en/timezones.php)', ]); $this->data['key'] = md5(str_random(40)); @@ -434,20 +434,20 @@ protected function stageTwo() $this->section('Setting up the admin account:'); $this->askQuestions([ - 'adminEmail' => 'Email address', + 'adminEmail' => 'Email address', 'adminFirstName' => 'First Name', - 'adminLastName' => 'Last Name', - 'adminPass' => 'Password', + 'adminLastName' => 'Last Name', + 'adminPass' => 'Password', ]); Model\User::updateOrCreate(['email' => $this->data['adminEmail']], [ - 'email' => $this->data['adminEmail'], + 'email' => $this->data['adminEmail'], 'firstname' => $this->data['adminFirstName'], - 'lastname' => $this->data['adminLastName'], - 'password' => \Hash::make($this->data['adminPass']), - 'deleted' => Model\User::NOT_DELETED_USERS, - 'role_id' => 4, - 'language' => 'en', + 'lastname' => $this->data['adminLastName'], + 'password' => \Hash::make($this->data['adminPass']), + 'deleted' => Model\User::NOT_DELETED_USERS, + 'role_id' => 4, + 'language' => 'en', ]); $this->info('Admin account created successfully.'); @@ -457,6 +457,7 @@ protected function stageTwo() * Returns the actual value of user input * * @param $name + * * @return string */ protected function getInputValue($name) diff --git a/app/Export/Project/Issue/CsvHandler.php b/app/Export/Project/Issue/CsvHandler.php index 28091a25f..eb45c3506 100644 --- a/app/Export/Project/Issue/CsvHandler.php +++ b/app/Export/Project/Issue/CsvHandler.php @@ -28,14 +28,14 @@ class CsvHandler * @var array */ protected $columns = [ - 'tinyissue.id' => 'id', - 'tinyissue.project' => 'project', - 'tinyissue.title' => 'title', - 'tinyissue.time_quote' => 'time_quote', + 'tinyissue.id' => 'id', + 'tinyissue.project' => 'project', + 'tinyissue.title' => 'title', + 'tinyissue.time_quote' => 'time_quote', 'tinyissue.label_created' => 'created_at', - 'tinyissue.updated' => 'updated_at', - 'tinyissue.label_closed' => 'closed_at', - 'tinyissue.status' => 'status', + 'tinyissue.updated' => 'updated_at', + 'tinyissue.label_closed' => 'closed_at', + 'tinyissue.status' => 'status', ]; /** diff --git a/app/Export/Project/Issue/XlsHandler.php b/app/Export/Project/Issue/XlsHandler.php index 0b0284276..938b9c41a 100644 --- a/app/Export/Project/Issue/XlsHandler.php +++ b/app/Export/Project/Issue/XlsHandler.php @@ -43,13 +43,13 @@ class XlsHandler * @var array */ protected $columns = [ - 'id' => '', - 'title' => '', + 'id' => '', + 'title' => '', 'time_quote' => '', 'created_at' => '', 'updated_at' => '', - 'closed_at' => '', - 'status' => '', + 'closed_at' => '', + 'status' => '', ]; /** diff --git a/app/Extensions/Html/Traits/TabTrait.php b/app/Extensions/Html/Traits/TabTrait.php index edbe6077b..8f0d1fc2f 100644 --- a/app/Extensions/Html/Traits/TabTrait.php +++ b/app/Extensions/Html/Traits/TabTrait.php @@ -31,10 +31,10 @@ trait TabTrait public function tab(array $tabs, $active) { $defaultTab = [ - 'title' => '', + 'title' => '', 'prefix' => '', 'active' => false, - 'url' => '', + 'url' => '', ]; $output = '