Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ PUSHER_APP_SECRET=
PUSHER_CLUSTER=
PUSHER_TLS=TRUE
PUSHER_DEBUG=FALSE
APP_TIMEZONE=UTC
DATE_FORMAT="m/d/Y H:i"
API_TIMEOUT=5000
DB_HOSTNAME=localhost
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
/public/js
/public/css
/storage/*.key
/storage/pail
/storage/*.index
/storage/tenant_*
/vendor
/.idea
/.nova
/.vscode
/.vagrant
npm-debug.log
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/AuthSetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$identifier = $this->ask("Enter the user's id or email address");

Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/BpmnTimer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BpmnTimer extends Command
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$scheduleManager = new TaskSchedulerManager();
$scheduleManager->scheduleTasks();
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/BuildScriptExecutors.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
if (env('PM_CI', false)) {
// Do not run in CI environment
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/CacheMetricsClearCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(RedisMetricsManager $metrics)
$this->metrics = $metrics;
}

public function handle()
public function handle(): int
{
if (!$this->confirm('Are you sure you want to clear all cache metrics? This action cannot be undone.')) {
$this->info('Operation cancelled.');
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/CacheMetricsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(RedisMetricsManager $metrics)
$this->metrics = $metrics;
}

public function handle()
public function handle(): int
{
$key = $this->option('key');
$type = $this->option('type');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(RedisMetricsManager $metrics)
$this->metrics = $metrics;
}

public function handle()
public function handle(): void
{
$numKeys = (int) $this->option('keys');
$type = $this->option('type');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(RedisMetricsManager $metrics)
$this->metrics = $metrics;
}

public function handle()
public function handle(): void
{
$days = (int) $this->option('days');
$type = $this->option('type');
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/CacheScreensClear.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CacheScreensClear extends Command
/**
* Execute the console command.
*/
public function handle()
public function handle(): void
{
$screenCache = ScreenCacheFactory::getScreenCache();
$screenCache->clearCompiledAssets();
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/CacheSettingClear.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CacheSettingClear extends Command
/**
* Execute the console command.
*/
public function handle()
public function handle(): void
{
\SettingCache::clear();

Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/CasesSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CasesSync extends Command
/**
* Execute the console command.
*/
public function handle()
public function handle(): void
{
$requestIds = $this->option('request_ids');
$requestIds = $requestIds ? explode(',', $requestIds) : [];
Expand Down
4 changes: 2 additions & 2 deletions ProcessMaker/Console/Commands/ChangeKeyEncryptedData.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Exception;
use Illuminate\Console\Command;
use ProcessMaker\Facades\EncryptedData;
use Illuminate\Support\Facades\Log;
use ProcessMaker\Facades\EncryptedData;

class ChangeKeyEncryptedData extends Command
{
Expand Down Expand Up @@ -38,7 +38,7 @@ public function __construct()
/**
* Execute the console command.
*/
public function handle()
public function handle(): void
{
try {
if ($this->confirm(self::message, false)) {
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$name = $this->argument('name');
$checker = new PackageChecker($name);
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct()
/**
* Execute the console command.
*/
public function handle()
public function handle(): void
{
try {
MessageBrokerService::worker();
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/CreateSamlCertificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CreateSamlCertificate extends CreateCertificate
{--keyname=key.pem : Full name of the certificate key file}
{--certname=cert.pem : Full name to the certificate file}
{--subject= : Set subject of request or cert '
. '(e.g. /C=US/ST=New York/L=New York City/O=Example Inc/CN=example.com)}';
. '(e.g. /C=US/ST=New York/L=New York City/O=Example Inc/CN=example.com)}';

/**
* The console command description.
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/CreateTestDBs.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$processes = env('PARALLEL_TEST_PROCESSES');
if (!$processes) {
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/DataSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DataSchema extends Command
*
* @return mixed
*/
public function handle()
public function handle(): int
{
$this->info(__('The ProcessMaker data tables will be installed.'));

Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/DockerExecutorPhpNayra.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DockerExecutorPhpNayra extends Command
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$exists = ScriptExecutor::where('language', Base::NAYRA_LANG)->exists();
if (!$exists) {
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/GarbageCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$this->writeln("Running Garbage Collector\n", 'info', true);

Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/GenerateSdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$jsonPath = storage_path('api-docs/api-docs.json');
$builder = new BuildSdk($jsonPath, $this->argument('output'));
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/IndexedSearchDisable.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
if ($this->interactive()) {
$confirmed = $this->confirm('Are you sure you wish to disable indexed search?');
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/IndexedSearchEnable.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private function promptForInput()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
if ($this->interactive()) {
$confirmed = $this->confirm(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class InitializeScriptMicroservice extends Command
/**
* Execute the console command.
*/
public function handle()
public function handle(): void
{
if (config('script-runner-microservice.enabled')) {
// Start with an array of all microservice languages
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Install extends Command
*
* @return mixed If the command succeeds, true
*/
public function handle()
public function handle(): int
{
// Setup our initial encryption key and set our running laravel app key to it
$this->key = 'base64:' . base64_encode(Encrypter::generateKey($this->laravel['config']['app.cipher']));
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/InstallPreCommitHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$coreHooksPath = base_path('.git/hooks');
if (!is_dir($coreHooksPath)) {
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/MissingFilesUploadId.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$this->writeln("Searching for request with calls to sub-process\n", 'info', true);
$aux = '';
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/PopulateAvatarColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct()
*
* @return int
*/
public function handle()
public function handle(): int
{
// Fetch all users
$users = User::cursor();
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/ProcessMakerActivateUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ProcessMakerActivateUser extends Command
/**
* Execute the console command.
*/
public function handle()
public function handle(): void
{
$username = $this->option('username');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ProcessMakerLicenseRemove extends Command
*
* @return int
*/
public function handle()
public function handle(): int
{
if (Storage::disk('local')->exists('license.json')) {
if ($this->option('force') || $this->confirm('Are you sure you want to remove the license.json file?')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ProcessMakerLicenseUpdate extends Command
*
* @return int
*/
public function handle()
public function handle(): int
{
$input = $this->argument('licenseFile');

Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/ProcessMakerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$this->test('DBConnection', [$this, 'testDBConnection']);
$this->test('Horizon', [$this, 'testHorizonService']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ProcessMakerValidateProcesses extends Command
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$this->info('Starting ProcessMaker Validate Processes...');
$processes = Process::nonSystem()->get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ProcessmakerClearRequests extends Command
*
* @return mixed
*/
public function handle()
public function handle(): void
{
if ($this->confirm(self::message, false)) {
ScheduledTask::query()->truncate();
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/RegenerateCss.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$this->info("\nStarting CSS compiling...");
(new CompileUI())->handle();
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/RetryScriptTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct()
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$tasks = $this->retrieveTaskList();

Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/ReviewCategoryNull.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct()
*
* @return int
*/
public function handle()
public function handle(): int
{
$table = 'screens';
$field = 'screen_category_id';
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/RevokeOauthAccessTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RevokeOauthAccessTokens extends Command
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$name = $this->option('name');
$after = $this->option('after');
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/SeedPerformanceData.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct()
*
* @return int
*/
public function handle()
public function handle(): int
{
$seeder = new RequestListingPerformanceData();
$seeder->requestCount = 100_000;
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/SyncDefaultTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct()
*
* @return int
*/
public function handle()
public function handle(): int
{
if ($this->option('queue')) {
$randomDelay = random_int(10, 120);
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/SyncPackageTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SyncPackageTranslations extends Command
*
* @return int
*/
public function handle()
public function handle(): int
{
$this->info('Synchronize translations of packages to CORE');
// get All packages installed
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/SyncScreenTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct()
*
* @return int
*/
public function handle()
public function handle(): int
{
if ($this->option('queue')) {
$randomDelay = random_int(10, 120);
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Console/Commands/SyncTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SyncTranslations extends Command
*
* @return int
*/
public function handle()
public function handle(): int
{
$this->info('Starting translation synchronization...');
$this->newLine();
Expand Down
Loading
Loading