Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-wpdesk-activation-reminder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
wp-wpdesk-activation-reminder
Merge requests
!6
Feature/no dev
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Feature/no dev
feature/no-dev
into
main
Overview
0
Commits
22
Pipelines
1
Changes
1
Merged
Krzysztof Dyszczyk
requested to merge
feature/no-dev
into
main
3 years ago
Overview
0
Commits
22
Pipelines
1
Changes
1
0
0
Merge request reports
Viewing commit
9d3f88ac
Prev
Next
Show latest version
1 file
+
13
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9d3f88ac
Merge branch 'main' into feature/no-dev
· 9d3f88ac
Grzegorz Rola
authored
3 years ago
# Conflicts: # CHANGELOG.md
src/ActivationReminder/Composer/PrepareActivationReminderCommand.php
+
13
−
0
View file @ 9d3f88ac
Edit in single-file editor
Open in Web IDE
Show full file
@@ -60,6 +60,19 @@ class PrepareActivationReminderCommand extends BaseCommand
$output
->
writeln
(
"Activation reminder created."
);
}
private
function
create_or_get_target_file_name
(
array
$class_map
,
$random_class
,
$random_letter
)
{
$target_file_store
=
'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file'
;
if
(
!
file_exists
(
$target_file_store
)
)
{
$target_file
=
$class_map
[
$random_class
];
$target_file
=
str_replace
(
'.php'
,
$random_letter
.
'.php'
,
$target_file
);
$target_file
=
str_replace
(
getcwd
()
.
'/vendor/composer/../../'
,
''
,
$target_file
);
file_put_contents
(
$target_file_store
,
$target_file
);
}
return
file_get_contents
(
$target_file_store
);
}
private
function
create_or_get_target_file_name
(
array
$class_map
,
$random_class
,
$random_letter
)
{
$target_file_store
=
'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file'
;
if
(
!
file_exists
(
$target_file_store
)
)
{
Loading