Skip to content

Commit 6905b1d

Browse files
committed
Fixed tasks naming
1 parent 9b1f514 commit 6905b1d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rregeer/gulp-php-dev-toolbox",
33
"description": "Php development toolbox using the gulp taskrunner",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"keywords": [
66
"Testing", "PHP", "phpunit", "Unittest", "Codestyle", "CI",
77
"Code complexity", "phpcs", "phpcbf", "phplint", "Gulp", "phpmd",

tasks/structure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ gulp.task('structure-duplication', 'Detection for duplicate code. Default scr/ d
4040
}
4141
});
4242

43-
gulp.task('structure-complexity', 'Check the complexity of the code. Default scr/ directory is checked.', function () {
43+
gulp.task('structure-complexity', 'Check the complexity of the code using phpmd. Default scr/ directory is checked.', function () {
4444
var projectRoot = gulp.task.configuration.projectRoot;
4545
var sources = 'scr/';
4646

tasks/style.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ gulp.task('syntax', 'Check the php syntax using php lint. Default scr/ and tests
5858

5959
if (commandLineOptions.source) {
6060
sources = _.split(commandLineOptions.source, ',');
61-
} else if (_.has(gulp.task.configuration, 'tasks.style-syntax.source')) {
62-
sources = gulp.task.configuration.tasks['style-syntax'].source;
61+
} else if (_.has(gulp.task.configuration, 'tasks.syntax.source')) {
62+
sources = gulp.task.configuration.tasks['syntax'].source;
6363
gutil.log(gutil.colors.blue('Read source from the configuration file: ' + sources));
6464
}
6565

@@ -97,7 +97,7 @@ gulp.task('watch-syntax', 'Watch for file changes and execute the syntax task. D
9797
});
9898

9999
gutil.log(gutil.colors.blue('Watch directory ' + sources + ' for changes and run the syntax checks on.'));
100-
gulp.watch(sources, ['style-syntax']);
100+
gulp.watch(sources, ['syntax']);
101101
}, {
102102
options: {
103103
'source': 'The directory to watch for file changes. To add multiple sources use a \',\'.Example gulp watch-syntax ' +
@@ -121,7 +121,7 @@ gulp.task('watch-codestyle', 'Watch for file changes and execute the codestyle t
121121
});
122122

123123
gutil.log(gutil.colors.blue('Watch directory ' + sources + ' for changes and run the codestyle checks on.'));
124-
gulp.watch(sources, ['style-codestyle']);
124+
gulp.watch(sources, ['codestyle']);
125125
}, {
126126
options: {
127127
'source': 'The directory to watch for file changes. To add multiple sources use a \',\'.Example gulp watch-codestyle ' +

0 commit comments

Comments
 (0)