Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coder-3216641
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
coder-3216641
Commits
371168ab
Commit
371168ab
authored
Jan 30, 2013
by
Doug Green
Browse files
Options
Downloads
Patches
Plain Diff
yaff for drush plugin
parent
76677336
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
coder_review/coder_review.common.inc
+8
-2
8 additions, 2 deletions
coder_review/coder_review.common.inc
coder_review/coder_review.drush.inc
+2
-2
2 additions, 2 deletions
coder_review/coder_review.drush.inc
with
10 additions
and
4 deletions
coder_review/coder_review.common.inc
+
8
−
2
View file @
371168ab
...
...
@@ -29,7 +29,13 @@ define('SEVERITY_CRITICAL', 9);
function
_coder_review_reviews
()
{
static
$cache
=
array
();
if
(
!
$cache
)
{
$cache
=
function_exists
(
'module_invoke_all'
)
?
module_invoke_all
(
'reviews'
)
:
coder_review_reviews
();
// Always get the coder review.
$cache
=
coder_review_reviews
();
// When Drupal is bootstrapped, also get all reviews.
if
(
function_exists
(
'module_invoke_all'
))
{
$cache
=
array_merge
(
$cache
,
module_invoke_all
(
'reviews'
));
}
}
return
$cache
;
}
...
...
@@ -1430,7 +1436,7 @@ function _t($string, $args = array(), $options = array()) {
* @see l()
*/
function
_l
(
$text
,
$path
,
$options
=
array
())
{
return
function_exists
(
'l'
)
?
l
(
$text
,
$path
,
$options
)
:
"
$text
$path
"
;
return
_drush
(
)
?
"
$text
$path
"
:
l
(
$text
,
$path
,
$options
)
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
coder_review/coder_review.drush.inc
+
2
−
2
View file @
371168ab
...
...
@@ -258,8 +258,8 @@ function _drush_coder_git_path() {
*/
function
drush_coder_review
()
{
// Bootstrap Drupal if it is available.
if
(
drush_conf_path
(
_
DRUSH_BOOTSTRAP_SELECTED_URI
))
{
drush_bootstrap
(
DRUSH_BOOTSTRAP_DRUPAL_
FULL
);
if
(
drush_conf_path
(
_
drush_bootstrap_selected_uri
())
&&
!
function_exists
(
'drupal_goto'
))
{
drush_bootstrap
_to_phase
(
DRUSH_BOOTSTRAP_DRUPAL_
LOGIN
);
}
// Bootstrap enough of coder review to run.
...
...
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