Skip to content

Commit 04eb225

Browse files
authored
Merge pull request #5690 from ProcessMaker/epic/FOUR-11380
Epic/FOUR-11380: AI Search V2
2 parents dcf4b6b + 2befb68 commit 04eb225

File tree

13 files changed

+26
-10
lines changed

13 files changed

+26
-10
lines changed

ProcessMaker/Events/CommentsUpdated.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class CommentsUpdated implements ShouldBroadcastNow
1313
use Dispatchable;
1414
use InteractsWithSockets;
1515
use SerializesModels;
16+
1617
public $users;
1718

1819
/**
@@ -34,6 +35,7 @@ public function broadcastOn()
3435
foreach ($this->users as $user) {
3536
$channels[] = new PrivateChannel("ProcessMaker.Models.User.{$user->id}");
3637
}
38+
3739
return $channels;
3840
}
3941

ProcessMaker/Http/Controllers/Api/ScriptExecutorController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public function availableLanguages()
347347
{
348348
$languages = [];
349349
foreach (Script::scriptFormats() as $key => $config) {
350-
if (!array_key_exists( 'system', $config) || (array_key_exists( 'system', $config) && !$config['system'])) {
350+
if (!array_key_exists('system', $config) || (array_key_exists('system', $config) && !$config['system'])) {
351351
$languages[] = [
352352
'value' => $key,
353353
'text' => $config['name'],

ProcessMaker/Http/Controllers/HomeController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function index(Request $request)
2626

2727
return redirect($homePage);
2828
}
29+
2930
// Redirect to the default view
3031
return redirect('/requests');
3132
}

ProcessMaker/Http/Controllers/ProcessesCatalogueController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ public function index(Request $request)
1313
{
1414
return view('processes-catalogue.index');
1515
}
16+
1617
/**
1718
* @param Process $process
1819
* @param string $id
19-
*
20+
*
2021
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
2122
*/
2223
public function open(Process $process, $id)
2324
{
2425
return view('processes-catalogue.open', [
2526
'process' => $process,
26-
'processId' => $id
27+
'processId' => $id,
2728
]);
2829
}
2930
}

ProcessMaker/ImportExport/Exporters/TemplateExporter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function import() : bool
2929
}
3030
$this->model->setProcessCategoryIdAttribute($this->model->process_category_id);
3131
$this->model->save();
32+
3233
return true;
3334
}
3435
}

ProcessMaker/LicensedPackageManifest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class LicensedPackageManifest extends PackageManifest
1717
const DISCOVER_PACKAGES_LOCK_KEY = 'discover_package_lock_key';
1818

1919
const DISCOVER_PACKAGES = 'package:discover';
20+
2021
const LAST_PACKAGE_DISCOVERY = 0;
2122

2223
protected function packagesToIgnore()

ProcessMaker/Models/Permission.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ public function groups()
107107

108108
/**
109109
* This retrieves the users who have permissions in a list of groups.
110-
*
110+
*
111111
* @param array $groups
112112
* @return Collection
113113
*/
114-
public static function getUsersByGroup(array $groups)
114+
public static function getUsersByGroup(array $groups)
115115
{
116116
$users = DB::table('assignables')
117117
->join('permissions', function ($join) use ($groups) {
@@ -126,6 +126,7 @@ public static function getUsersByGroup(array $groups)
126126
->union(\ProcessMaker\Models\User::where('is_administrator', '=', true))
127127
->groupBy('users.id')
128128
->get();
129+
129130
return $users;
130131
}
131132
}

ProcessMaker/Nayra/Managers/WorkflowManagerRabbitMq.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ private function getEnvironmentVariables()
681681
$accessToken = Cache::remember('script-runner-' . $user->id, $expires, function () use ($user) {
682682
$user->removeOldRunScriptTokens();
683683
$token = new GenerateAccessToken($user);
684+
684685
return $token->getToken();
685686
});
686687
$environmentVariables['API_TOKEN'] = $accessToken;

ProcessMaker/Notifications/ProcessTranslationReady.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ public function toArray($notifiable)
4949
{
5050
$data = [
5151
'humanLanguage' => $this->targetLanguage['humanLanguage'],
52-
'processName' => $this->process->name
52+
'processName' => $this->process->name,
5353
];
5454
$message = __('Process translation to :humanLanguage completed for process: :processName', $data);
55+
5556
return [
5657
'message' => $message,
5758
'code' => $this->code,

ProcessMaker/Policies/ProcessPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private function isPmBlockImportedLocked(Process $process): bool
144144

145145
/**
146146
* This determine if user can view processes.
147-
*
147+
*
148148
* @param User $user
149149
* @param Process $process
150150
* @return bool

0 commit comments

Comments
 (0)