-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PhpStan) fix analyzer level = 1 issues (#14)
* (PhpStan) fix analyzer level = 1 issues * (Readability) rename classes according to what they are doing * (PhpStan) phpstan adjustments * (CodeQuality) imrpove quality by return types and improve readability. * (CodeQuality) php code sniffer not allowed to fail
- Loading branch information
Showing
121 changed files
with
601 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,21 +12,21 @@ | |
|
||
class CreateDummyCompanyWithData extends Command | ||
{ | ||
const SQL_DUMMY_DATA_FILE_NAME = 'dummy_data.sql'; | ||
const DUMMY_COMPANY_DATA = [ | ||
public const SQL_DUMMY_DATA_FILE_NAME = 'dummy_data.sql'; | ||
public const DUMMY_COMPANY_DATA = [ | ||
'name' => 'Dummy Company', | ||
'address' => 'Dummy Address', | ||
'phone' => '+255123456789', | ||
'country_id' => -1, | ||
'email' => '[email protected]', | ||
'protected_page_password' => '123123' | ||
]; | ||
const DUMMY_COMPANY_USER = [ | ||
public const DUMMY_COMPANY_USER = [ | ||
'password' => '123123', | ||
'email' => '[email protected]', | ||
'name' => 'Dummy User', | ||
]; | ||
const DUMMY_DATABASE_NAME = 'DummyCompany_1'; | ||
public const DUMMY_DATABASE_NAME = 'DummyCompany_1'; | ||
|
||
protected $signature = 'dummy:create-company-with-dummy-data'; | ||
protected $description = 'Create a dummy company with dummy data for development environment'; | ||
|
@@ -68,8 +68,10 @@ public function handle() | |
]; | ||
|
||
DatabaseProxy::query()->firstOrCreate($databaseProxyData, $databaseProxyData); | ||
$this->databaseProxyManagerService->runForCompany($company->getId(), | ||
fn() => $this->importSqlDump($path, $databaseName)); | ||
$this->databaseProxyManagerService->runForCompany( | ||
$company->getId(), | ||
fn() => $this->importSqlDump($path, $databaseName) | ||
); | ||
|
||
return 0; | ||
} catch (\Exception $e) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.