Skip to content

Commit

Permalink
Merge pull request #23423 from totten/5.50-mixin-since
Browse files Browse the repository at this point in the history
(NFC) mixin/**.php - Add @SInCE tags
  • Loading branch information
eileenmcnaughton authored May 10, 2022
2 parents c8f90da + 4c7f216 commit 4aa7d2e
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions mixin/afform-entity-php@1/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @mixinName afform-entity-php
* @mixinVersion 1.0.0
* @since 5.50
*
* @param CRM_Extension_MixInfo $mixInfo
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
Expand Down
1 change: 1 addition & 0 deletions mixin/ang-php@1/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @mixinName ang-php
* @mixinVersion 1.0.0
* @since 5.45
*
* @param CRM_Extension_MixInfo $mixInfo
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
Expand Down
1 change: 1 addition & 0 deletions mixin/case-xml@1/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @mixinName case-xml
* @mixinVersion 1.0.0
* @since 5.45
*
* @param CRM_Extension_MixInfo $mixInfo
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
Expand Down
1 change: 1 addition & 0 deletions mixin/menu-xml@1/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @mixinName menu-xml
* @mixinVersion 1.0.0
* @since 5.45
*
* @param CRM_Extension_MixInfo $mixInfo
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
Expand Down
1 change: 1 addition & 0 deletions mixin/mgd-php@1/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @mixinName mgd-php
* @mixinVersion 1.1.0
* @since 5.50
*
* @param CRM_Extension_MixInfo $mixInfo
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
Expand Down
1 change: 1 addition & 0 deletions mixin/setting-php@1/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @mixinName setting-php
* @mixinVersion 1.0.0
* @since 5.45
*
* @param CRM_Extension_MixInfo $mixInfo
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
Expand Down
1 change: 1 addition & 0 deletions mixin/theme-php@1/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @mixinName theme-php
* @mixinVersion 1.0.0
* @since 5.45
*
* @param CRM_Extension_MixInfo $mixInfo
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
Expand Down
8 changes: 7 additions & 1 deletion tools/mixin/bin/mixer
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,15 @@ function task_test(array $options, string $targetDir, ...$args) {

function task_list(array $options, ...$mixinNames) {
$mixinNames = resolve_mixin_names($mixinNames);
fprintf(STDOUT, "%-20s %-8s %-8s %s\n", "NAME", "VERSION", "SINCE", "DESCRIPTION");
fprintf(STDOUT, "%-20s %-8s %-8s %s\n", "----", "-------", "-----", "-----------");
foreach ($mixinNames as $mixinName) {
$mixin = mixlib()->get($mixinName);
fprintf(STDOUT, "%-20s %-10s %s\n", $mixin['mixinName'], $mixin['mixinVersion'] ?? '', $mixin['description'] ?? '');
fprintf(STDOUT, "%-20s %-8s %-8s %s\n",
$mixin['mixinName'],
$mixin['mixinVersion'] ?? '',
$mixin['since'] ?? '',
$mixin['description'] ?? '');
}
}

Expand Down

0 comments on commit 4aa7d2e

Please sign in to comment.