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
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
wp-wpdesk-activation-reminder
Commits
9d3f88ac
Commit
9d3f88ac
authored
3 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into feature/no-dev
# Conflicts: # CHANGELOG.md
parents
eff0fc10
e7d04ba7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Feature/no dev
Pipeline
#11558
canceled with stages
in 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ActivationReminder/Composer/PrepareActivationReminderCommand.php
+13
-0
13 additions, 0 deletions
...ionReminder/Composer/PrepareActivationReminderCommand.php
with
13 additions
and
0 deletions
src/ActivationReminder/Composer/PrepareActivationReminderCommand.php
+
13
−
0
View file @
9d3f88ac
...
@@ -60,6 +60,19 @@ class PrepareActivationReminderCommand extends BaseCommand
...
@@ -60,6 +60,19 @@ class PrepareActivationReminderCommand extends BaseCommand
$output
->
writeln
(
"Activation reminder created."
);
$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
)
{
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'
;
$target_file_store
=
'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file'
;
if
(
!
file_exists
(
$target_file_store
)
)
{
if
(
!
file_exists
(
$target_file_store
)
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment