Using worker: worker-linux-docker-15e07dec.prod.travis-ci.org:travis-linux-1 travis_fold:start:system_info Build system information Build language: php Build group: stable Build dist: precise Build image provisioning date and time Thu Feb 5 15:09:33 UTC 2015 Operating System Details Distributor ID: Ubuntu Description: Ubuntu 12.04.5 LTS Release: 12.04 Codename: precise Linux Version 3.13.0-29-generic Cookbooks Version a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e GCC version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. LLVM version clang version 3.4 (tags/RELEASE_34/final) Target: x86_64-unknown-linux-gnu Thread model: posix Pre-installed Ruby versions ruby-1.9.3-p551 Pre-installed Node.js versions v0.10.36 Pre-installed Go versions 1.4.1 Redis version redis-server 2.8.19 riak version 2.0.2 MongoDB version MongoDB 2.4.12 CouchDB version couchdb 1.6.1 Neo4j version 1.9.4 RabbitMQ Version 3.4.3 ElasticSearch version 1.4.0 Installed Sphinx versions 2.0.10 2.1.9 2.2.6 Default Sphinx version 2.2.6 Installed Firefox version firefox 31.0esr PhantomJS version 1.9.8 ant -version Apache Ant(TM) version 1.8.2 compiled on December 3 2011 mvn -version Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00) Maven home: /usr/local/maven Java version: 1.7.0_76, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-oracle/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix" travis_fold:end:system_info  travis_fold:start:git.checkout travis_time:start:083ebd9a $ git clone --depth=50 --branch=CONTRIB-5900_30 https://github.com/remotelearner/moodle-mod_questionnaire.git remotelearner/moodle-mod_questionnaire Cloning into 'remotelearner/moodle-mod_questionnaire'... remote: Counting objects: 605, done. remote: Compressing objects: 0% (1/322)  remote: Compressing objects: 1% (4/322)  remote: Compressing objects: 2% (7/322)  remote: Compressing objects: 3% (10/322)  remote: Compressing objects: 4% (13/322)  remote: Compressing objects: 5% (17/322)  remote: Compressing objects: 6% (20/322)  remote: Compressing objects: 7% (23/322)  remote: Compressing objects: 8% (26/322)  remote: Compressing objects: 9% (29/322)  remote: Compressing objects: 10% (33/322)  remote: Compressing objects: 11% (36/322)  remote: Compressing objects: 12% (39/322)  remote: Compressing objects: 13% (42/322)  remote: Compressing objects: 14% (46/322)  remote: Compressing objects: 15% (49/322)  remote: Compressing objects: 16% (52/322)  remote: Compressing objects: 17% (55/322)  remote: Compressing objects: 18% (58/322)  remote: Compressing objects: 19% (62/322)  remote: Compressing objects: 20% (65/322)  remote: Compressing objects: 21% (68/322)  remote: Compressing objects: 22% (71/322)  remote: Compressing objects: 23% (75/322)  remote: Compressing objects: 24% (78/322)  remote: Compressing objects: 25% (81/322)  remote: Compressing objects: 26% (84/322)  remote: Compressing objects: 27% (87/322)  remote: Compressing objects: 28% (91/322)  remote: Compressing objects: 29% (94/322)  remote: Compressing objects: 30% (97/322)  remote: Compressing objects: 31% (100/322)  remote: Compressing objects: 32% (104/322)  remote: Compressing objects: 33% (107/322)  remote: Compressing objects: 34% (110/322)  remote: Compressing objects: 35% (113/322)  remote: Compressing objects: 36% (116/322)  remote: Compressing objects: 37% (120/322)  remote: Compressing objects: 38% (123/322)  remote: Compressing objects: 39% (126/322)  remote: Compressing objects: 40% (129/322)  remote: Compressing objects: 41% (133/322)  remote: Compressing objects: 42% (136/322)  remote: Compressing objects: 43% (139/322)  remote: Compressing objects: 44% (142/322)  remote: Compressing objects: 45% (145/322)  remote: Compressing objects: 46% (149/322)  remote: Compressing objects: 47% (152/322)  remote: Compressing objects: 48% (155/322)  remote: Compressing objects: 49% (158/322)  remote: Compressing objects: 50% (161/322)  remote: Compressing objects: 51% (165/322)  remote: Compressing objects: 52% (168/322)  remote: Compressing objects: 53% (171/322)  remote: Compressing objects: 54% (174/322)  remote: Compressing objects: 55% (178/322)  remote: Compressing objects: 56% (181/322)  remote: Compressing objects: 57% (184/322)  remote: Compressing objects: 58% (187/322)  remote: Compressing objects: 59% (190/322)  remote: Compressing objects: 60% (194/322)  remote: Compressing objects: 61% (197/322)  remote: Compressing objects: 62% (200/322)  remote: Compressing objects: 63% (203/322)  remote: Compressing objects: 64% (207/322)  remote: Compressing objects: 65% (210/322)  remote: Compressing objects: 66% (213/322)  remote: Compressing objects: 67% (216/322)  remote: Compressing objects: 68% (219/322)  remote: Compressing objects: 69% (223/322)  remote: Compressing objects: 70% (226/322)  remote: Compressing objects: 71% (229/322)  remote: Compressing objects: 72% (232/322)  remote: Compressing objects: 73% (236/322)  remote: Compressing objects: 74% (239/322)  remote: Compressing objects: 75% (242/322)  remote: Compressing objects: 76% (245/322)  remote: Compressing objects: 77% (248/322)  remote: Compressing objects: 78% (252/322)  remote: Compressing objects: 79% (255/322)  remote: Compressing objects: 80% (258/322)  remote: Compressing objects: 81% (261/322)  remote: Compressing objects: 82% (265/322)  remote: Compressing objects: 83% (268/322)  remote: Compressing objects: 84% (271/322)  remote: Compressing objects: 85% (274/322)  remote: Compressing objects: 86% (277/322)  remote: Compressing objects: 87% (281/322)  remote: Compressing objects: 88% (284/322)  remote: Compressing objects: 89% (287/322)  remote: Compressing objects: 90% (290/322)  remote: Compressing objects: 91% (294/322)  remote: Compressing objects: 92% (297/322)  remote: Compressing objects: 93% (300/322)  remote: Compressing objects: 94% (303/322)  remote: Compressing objects: 95% (306/322)  remote: Compressing objects: 96% (310/322)  remote: Compressing objects: 97% (313/322)  remote: Compressing objects: 98% (316/322)  remote: Compressing objects: 99% (319/322)  remote: Compressing objects: 100% (322/322)  remote: Compressing objects: 100% (322/322), done. Receiving objects: 0% (1/605) Receiving objects: 1% (7/605) Receiving objects: 2% (13/605) Receiving objects: 3% (19/605) Receiving objects: 4% (25/605) Receiving objects: 5% (31/605) Receiving objects: 6% (37/605) Receiving objects: 7% (43/605) Receiving objects: 8% (49/605) Receiving objects: 9% (55/605) Receiving objects: 10% (61/605) Receiving objects: 11% (67/605) Receiving objects: 12% (73/605) Receiving objects: 13% (79/605) Receiving objects: 14% (85/605) Receiving objects: 15% (91/605) Receiving objects: 16% (97/605) Receiving objects: 17% (103/605) Receiving objects: 18% (109/605) Receiving objects: 19% (115/605) Receiving objects: 20% (121/605) Receiving objects: 21% (128/605) Receiving objects: 22% (134/605) Receiving objects: 23% (140/605) Receiving objects: 24% (146/605) Receiving objects: 25% (152/605) Receiving objects: 26% (158/605) Receiving objects: 27% (164/605) Receiving objects: 28% (170/605) Receiving objects: 29% (176/605) Receiving objects: 30% (182/605) Receiving objects: 31% (188/605) Receiving objects: 32% (194/605) Receiving objects: 33% (200/605) Receiving objects: 34% (206/605) Receiving objects: 35% (212/605) Receiving objects: 36% (218/605) Receiving objects: 37% (224/605) Receiving objects: 38% (230/605) Receiving objects: 39% (236/605) Receiving objects: 40% (242/605) Receiving objects: 41% (249/605) Receiving objects: 42% (255/605) Receiving objects: 43% (261/605) Receiving objects: 44% (267/605) Receiving objects: 45% (273/605) Receiving objects: 46% (279/605) Receiving objects: 47% (285/605) Receiving objects: 48% (291/605) Receiving objects: 49% (297/605) Receiving objects: 50% (303/605) Receiving objects: 51% (309/605) Receiving objects: 52% (315/605) Receiving objects: 53% (321/605) Receiving objects: 54% (327/605) Receiving objects: 55% (333/605) Receiving objects: 56% (339/605) Receiving objects: 57% (345/605) Receiving objects: 58% (351/605) Receiving objects: 59% (357/605) Receiving objects: 60% (363/605) Receiving objects: 61% (370/605) Receiving objects: 62% (376/605) Receiving objects: 63% (382/605) Receiving objects: 64% (388/605) Receiving objects: 65% (394/605) Receiving objects: 66% (400/605) Receiving objects: 67% (406/605) Receiving objects: 68% (412/605) Receiving objects: 69% (418/605) Receiving objects: 70% (424/605) Receiving objects: 71% (430/605) Receiving objects: 72% (436/605) Receiving objects: 73% (442/605) Receiving objects: 74% (448/605) Receiving objects: 75% (454/605) Receiving objects: 76% (460/605) Receiving objects: 77% (466/605) Receiving objects: 78% (472/605) Receiving objects: 79% (478/605) Receiving objects: 80% (484/605) Receiving objects: 81% (491/605) Receiving objects: 82% (497/605) Receiving objects: 83% (503/605) Receiving objects: 84% (509/605) Receiving objects: 85% (515/605) Receiving objects: 86% (521/605) Receiving objects: 87% (527/605) Receiving objects: 88% (533/605) Receiving objects: 89% (539/605) Receiving objects: 90% (545/605) remote: Total 605 (delta 344), reused 495 (delta 249), pack-reused 0 Receiving objects: 91% (551/605) Receiving objects: 92% (557/605) Receiving objects: 93% (563/605) Receiving objects: 94% (569/605) Receiving objects: 95% (575/605) Receiving objects: 96% (581/605) Receiving objects: 97% (587/605) Receiving objects: 98% (593/605) Receiving objects: 99% (599/605) Receiving objects: 100% (605/605) Receiving objects: 100% (605/605), 411.95 KiB | 0 bytes/s, done. Resolving deltas: 0% (0/344) Resolving deltas: 1% (4/344) Resolving deltas: 2% (10/344) Resolving deltas: 7% (26/344) Resolving deltas: 11% (41/344) Resolving deltas: 15% (53/344) Resolving deltas: 17% (60/344) Resolving deltas: 19% (66/344) Resolving deltas: 22% (76/344) Resolving deltas: 28% (97/344) Resolving deltas: 29% (100/344) Resolving deltas: 34% (119/344) Resolving deltas: 35% (122/344) Resolving deltas: 36% (126/344) Resolving deltas: 37% (128/344) Resolving deltas: 39% (136/344) Resolving deltas: 40% (138/344) Resolving deltas: 42% (145/344) Resolving deltas: 45% (156/344) Resolving deltas: 50% (172/344) Resolving deltas: 51% (177/344) Resolving deltas: 52% (182/344) Resolving deltas: 53% (185/344) Resolving deltas: 54% (186/344) Resolving deltas: 58% (202/344) Resolving deltas: 59% (204/344) Resolving deltas: 60% (209/344) Resolving deltas: 62% (216/344) Resolving deltas: 65% (225/344) Resolving deltas: 67% (232/344) Resolving deltas: 70% (242/344) Resolving deltas: 75% (261/344) Resolving deltas: 77% (266/344) Resolving deltas: 80% (277/344) Resolving deltas: 81% (282/344) Resolving deltas: 82% (285/344) Resolving deltas: 84% (289/344) Resolving deltas: 85% (293/344) Resolving deltas: 86% (296/344) Resolving deltas: 88% (303/344) Resolving deltas: 89% (309/344) Resolving deltas: 90% (310/344) Resolving deltas: 92% (318/344) Resolving deltas: 93% (320/344) Resolving deltas: 95% (328/344) Resolving deltas: 100% (344/344) Resolving deltas: 100% (344/344), done. Checking connectivity... done. travis_time:end:083ebd9a:start=1449160890323755239,finish=1449160893104119447,duration=2780364208 $ cd remotelearner/moodle-mod_questionnaire $ git checkout -qf 4228bd1ad9b532e9f667f501e9ef13cc480985e7 travis_fold:end:git.checkout  This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables. If you require sudo, add 'sudo: required' to your .travis.yml See http://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details. Setting environment variables from .travis.yml $ export MOODLE_BRANCH=MOODLE_30_STABLE $ export IGNORE_PATHS=javascript/RGraph $ export DB=mysqli travis_fold:start:cache.1 Setting up build cache $ export CASHER_DIR=$HOME/.casher travis_time:start:069c374d $ Installing caching utilities travis_time:end:069c374d:start=1449160897298032596,finish=1449160897357897197,duration=59864601 travis_time:start:141ee0f2 travis_time:end:141ee0f2:start=1449160897364138485,finish=1449160897367573554,duration=3435069 travis_time:start:15f75a48 attempting to download cache archive fetching CONTRIB-5900_30/cache--php-5.4.tgz found cache travis_time:end:15f75a48:start=1449160897372168237,finish=1449160897935016133,duration=562847896 travis_time:start:1b02e35a travis_time:end:1b02e35a:start=1449160897940025844,finish=1449160897944270916,duration=4245072 travis_time:start:1dbb1266 adding /home/travis/.composer/cache to cache travis_time:end:1dbb1266:start=1449160897948982251,finish=1449160899544980886,duration=1595998635 travis_fold:end:cache.1 travis_time:start:07d1f76a $ phpenv global 5.4 2>/dev/null travis_time:end:07d1f76a:start=1449160899549655696,finish=1449160899569212735,duration=19557039 $ php --version PHP 5.4.37 (cli) (built: Feb 12 2015 01:06:06) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with Xdebug v2.2.7, Copyright (c) 2002-2015, by Derick Rethans $ composer --version Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/home/travis/.phpenv/versions/5.4/bin/composer self-update" to get the latest version. Composer version 1.0-dev (1d8f05f1dd0e390f253f79ea86cd505178360019) 2015-02-11 11:31:57  travis_fold:start:before_install.1 travis_time:start:008eefb4 $ cd ../.. travis_time:end:008eefb4:start=1449160899874730349,finish=1449160899877779417,duration=3049068 travis_fold:end:before_install.1 travis_fold:start:before_install.2 travis_time:start:1a334024 $ composer selfupdate Updating to version feefd51565bb8ead38e355b9e501685b5254d0d5. Downloading: connection... Downloading: 100%  Use composer self-update --rollback to return to version 1d8f05f1dd0e390f253f79ea86cd505178360019 travis_time:end:1a334024:start=1449160899881635627,finish=1449160901303001762,duration=1421366135 travis_fold:end:before_install.2 travis_fold:start:before_install.3 travis_time:start:098beca0 $ composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1 You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug Installing moodlerooms/moodle-plugin-ci (1.1.0) - Installing moodlerooms/moodle-plugin-ci (1.1.0) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Created project in ci Loading composer repositories with package information Installing dependencies from lock file - Installing jakub-onderka/php-console-color (0.1) Downloading: Connecting... Downloading: 0%  Downloading: 50% Downloading: 100% - Installing jakub-onderka/php-console-highlighter (v0.3.2) Downloading: Connecting... Downloading: 0%  Downloading: 65% Downloading: 90% Downloading: 100% - Installing jakub-onderka/php-parallel-lint (v0.9) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% - Installing squizlabs/php_codesniffer (2.3.3) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Downloading: 100% - Installing moodlerooms/moodle-coding-standard (1.0.0) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% - Installing nikic/php-parser (v1.4.0) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Downloading: 100% - Installing symfony/filesystem (v2.7.4) Downloading: Connecting... Downloading: 0%  Downloading: 15% Downloading: 65% Downloading: 80% Downloading: 100% - Installing symfony/dependency-injection (v2.7.4) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Downloading: 100% - Installing symfony/config (v2.7.4) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 100% - Installing pdepend/pdepend (2.1.0) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Downloading: 100% - Installing phpmd/phpmd (2.2.3) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Downloading: 100% - Installing psr/log (1.0.0) Downloading: Connecting... Downloading: 0%  Downloading: 15% Downloading: 30% Downloading: 45% Downloading: 60% Downloading: 75% Downloading: 100% - Installing theseer/fdomdocument (1.6.1) Downloading: Connecting... Downloading: 0%  Downloading: 20% Downloading: 40% Downloading: 55% Downloading: 60% Downloading: 75% Downloading: 80% Downloading: 95% Downloading: 100% - Installing symfony/console (v2.7.4) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Downloading: 100% - Installing sebastian/version (1.0.6) Downloading: Connecting... Downloading: 0%  Downloading: 100% - Installing symfony/finder (v2.7.4) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 100% - Installing sebastian/finder-facade (1.2.0) Downloading: Connecting... Downloading: 0%  Downloading: 100% - Installing phpunit/php-timer (1.0.7) Downloading: Connecting... Downloading: 0%  Downloading: 25% Downloading: 100% - Installing sebastian/phpcpd (2.0.2) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 55% Downloading: 60% Downloading: 100% - Installing stecman/symfony-console-completion (0.6.0) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 50% Downloading: 55% Downloading: 100% - Installing symfony/process (v2.7.4) Downloading: Connecting... Downloading: 0%  Downloading: 25% Downloading: 35% Downloading: 40% Downloading: 60% Downloading: 65% Downloading: 85% Downloading: 90% Downloading: 100% - Installing symfony/yaml (v2.7.4) Downloading: Connecting... Downloading: 0%  Downloading: 5% Downloading: 10% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 100% - Installing vlucas/phpdotenv (v2.0.1) Downloading: Connecting... Downloading: 0%  Downloading: 100% Generating autoload files travis_time:end:098beca0:start=1449160901306899425,finish=1449160909059189383,duration=7752289958 travis_fold:end:before_install.3 travis_fold:start:before_install.4 travis_time:start:001c5d86 $ export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" travis_time:end:001c5d86:start=1449160909063245745,finish=1449160909068012335,duration=4766590 travis_fold:end:before_install.4 travis_fold:start:install travis_time:start:0992d034 $ moodle-plugin-ci install 0/7 [>---------------------------] 0% 1 sec [Starting install] 1/7 [====>-----------------------] 14% 1 sec [Cloning Moodle] 2/7 [========>-------------------] 28% 9 secs [Moodle assets] 3/7 [============>---------------] 42% 9 secs [Install mod_questionnaire] 4/7 [================>-----------] 57% 9 secs [Install dependencies] 5/7 [====================>-------] 71% 34 secs [Initialize test suite] 6/7 [========================>---] 85% 3 mins [Building configs] 7/7 [============================] 100% 3 mins [Install completed] travis_time:end:0992d034:start=1449160909072147916,finish=1449161054589474454,duration=145517326538 travis_fold:end:install travis_time:start:0185cda4 $ moodle-plugin-ci phplint  RUN  PHP Lint on mod_questionnaire PHP 5.4.37 | 10 parallel jobs ....................................................... 55/55 (100 %) Checked 55 files in 1 second No syntax error found travis_time:end:0185cda4:start=1449161054593635513,finish=1449161055729529882,duration=1135894369  The command "moodle-plugin-ci phplint" exited with 0. travis_time:start:1747d34f $ moodle-plugin-ci phpcpd  RUN  PHP Copy/Paste Detector on mod_questionnaire Found 6 exact clones with 187 duplicated lines in 7 files: - /home/travis/build/moodle/mod/questionnaire/questions.php:282-298 /home/travis/build/moodle/mod/questionnaire/questions.php:546-562 - /home/travis/build/moodle/mod/questionnaire/questiontypes/questiontypes.class.php:720-739 /home/travis/build/moodle/mod/questionnaire/questiontypes/questiontypes.class.php:749-768 - /home/travis/build/moodle/mod/questionnaire/report.php:394-419 /home/travis/build/moodle/mod/questionnaire/report.php:711-736 - /home/travis/build/moodle/mod/questionnaire/tests/generator_test.php:109-131 /home/travis/build/moodle/mod/questionnaire/tests/generator_test.php:176-198 /home/travis/build/moodle/mod/questionnaire/tests/generator_test.php:298-320 /home/travis/build/moodle/mod/questionnaire/tests/generator_test.php:337-359 - /home/travis/build/moodle/mod/questionnaire/complete.php:32-62 /home/travis/build/moodle/mod/questionnaire/view.php:29-59 - /home/travis/build/moodle/mod/questionnaire/lib.php:609-640 /home/travis/build/moodle/mod/questionnaire/view.php:203-234 1.03% duplicated lines out of 18146 total lines of code. Time: 1.68 seconds, Memory: 42.25Mb travis_time:end:1747d34f:start=1449161055735338704,finish=1449161057540588428,duration=1805249724  The command "moodle-plugin-ci phpcpd" exited with 1. travis_time:start:17925ec1 $ moodle-plugin-ci phpmd  RUN  PHP Mess Detector on mod_questionnaire FILE: mod/questionnaire/backup/moodle2/backup_questionnaire_stepslib.php FOUND 0 ERRORS AND 1 VIOLATIONS ==== =========== ================================================================================================================== 33 VIOLATION The method define_structure() has 176 lines of code. Current threshold is set to 100. Avoid really long methods. ==== =========== ================================================================================================================== FILE: mod/questionnaire/backup/moodle2/restore_questionnaire_stepslib.php FOUND 0 ERRORS AND 20 VIOLATIONS ===== =========== ================================================================================================================================================================================ 31 VIOLATION The class restore_questionnaire_activity_structure_step has 17 methods. Consider refactoring restore_questionnaire_activity_structure_step to keep number of methods under 10. 77 VIOLATION Avoid unused local variables such as '$oldid'. 116 VIOLATION Avoid unused local variables such as '$fields'. 140 VIOLATION Avoid unused local variables such as '$qid'. 175 VIOLATION Avoid unused local variables such as '$pos'. 190 VIOLATION Avoid unused local variables such as '$fields'. 237 VIOLATION Avoid unused local variables such as '$oldid'. 242 VIOLATION Avoid unused local variables such as '$newitemid'. 249 VIOLATION Avoid unused local variables such as '$oldid'. 254 VIOLATION Avoid unused local variables such as '$newitemid'. 261 VIOLATION Avoid unused local variables such as '$oldid'. 267 VIOLATION Avoid unused local variables such as '$newitemid'. 274 VIOLATION Avoid unused local variables such as '$oldid'. 280 VIOLATION Avoid unused local variables such as '$newitemid'. 287 VIOLATION Avoid unused local variables such as '$oldid'. 293 VIOLATION Avoid unused local variables such as '$newitemid'. 300 VIOLATION Avoid unused local variables such as '$oldid'. 306 VIOLATION Avoid unused local variables such as '$newitemid'. 313 VIOLATION Avoid unused local variables such as '$oldid'. 318 VIOLATION Avoid unused local variables such as '$newitemid'. ===== =========== ================================================================================================================================================================================ FILE: mod/questionnaire/db/install.php FOUND 0 ERRORS AND 2 VIOLATIONS ==== =========== =============================================== 30 VIOLATION Avoid unused local variables such as '$CFG'. 30 VIOLATION Avoid unused local variables such as '$SITE'. ==== =========== =============================================== FILE: mod/questionnaire/db/upgrade.php FOUND 0 ERRORS AND 6 VIOLATIONS ===== =========== ====================================================================================================================================== 17 VIOLATION The function xmldb_questionnaire_upgrade() has a Cyclomatic Complexity of 48. The configured cyclomatic complexity threshold is 10. 17 VIOLATION The function xmldb_questionnaire_upgrade() has an NPath complexity of 73604505600. The configured NPath complexity threshold is 200. 17 VIOLATION The function xmldb_questionnaire_upgrade() has 520 lines of code. Current threshold is set to 100. Avoid really long methods. 33 VIOLATION Avoid unused local variables such as '$enumvals'. 393 VIOLATION Avoid unused local variables such as '$conditions'. 402 VIOLATION Avoid unused local variables such as '$pos'. ===== =========== ====================================================================================================================================== FILE: mod/questionnaire/drawchart.php FOUND 0 ERRORS AND 5 VIOLATIONS ==== =========== ==================================================================================================================== 17 VIOLATION The function draw_chart() has a Cyclomatic Complexity of 79. The configured cyclomatic complexity threshold is 10. 17 VIOLATION The function draw_chart() has an NPath complexity of 13568768. The configured NPath complexity threshold is 200. 17 VIOLATION The function draw_chart() has 544 lines of code. Current threshold is set to 100. Avoid really long methods. 19 VIOLATION Avoid unused local variables such as '$CFG'. 44 VIOLATION Avoid unused local variables such as '$chartcolorsgradient2'. ==== =========== ==================================================================================================================== FILE: mod/questionnaire/fbsettings_form.php FOUND 0 ERRORS AND 4 VIOLATIONS ===== =========== ================================================================================================================== 32 VIOLATION The method definition() has 102 lines of code. Current threshold is set to 100. Avoid really long methods. 60 VIOLATION Avoid unused local variables such as '$key'. 160 VIOLATION The method validation() has a Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10. 160 VIOLATION The method validation() has an NPath complexity of 980. The configured NPath complexity threshold is 200. ===== =========== ================================================================================================================== FILE: mod/questionnaire/lib.php FOUND 0 ERRORS AND 55 VIOLATIONS ====== =========== ========================================================================================================================================================= 22 VIOLATION The function questionnaire_supports() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. 57 VIOLATION The function questionnaire_add_instance() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 226 VIOLATION Avoid unused parameters such as '$course'. 226 VIOLATION Avoid unused parameters such as '$mod'. 231 VIOLATION Avoid unused local variables such as '$complete'. 248 VIOLATION Avoid unused parameters such as '$course'. 248 VIOLATION Avoid unused parameters such as '$mod'. 252 VIOLATION Avoid unused local variables such as '$complete'. 270 VIOLATION Avoid unused parameters such as '$course'. 270 VIOLATION Avoid unused parameters such as '$isteacher'. 270 VIOLATION Avoid unused parameters such as '$timestart'. 278 VIOLATION Avoid unused parameters such as '$questionnaireid'. 310 VIOLATION The function questionnaire_update_grades() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. 310 VIOLATION Avoid unused parameters such as '$nullifnone'. 310 VIOLATION The method questionnaire_update_grades has a boolean flag argument $nullifnone, which is a certain sign of a Single Responsibility Principle violation. 413 VIOLATION Avoid unused parameters such as '$bookid'. 413 VIOLATION Avoid unused parameters such as '$scaleid'. 424 VIOLATION Avoid unused parameters such as '$scaleid'. 439 VIOLATION Avoid unused parameters such as '$forcedownload'. 456 VIOLATION Avoid unused local variables such as '$survey'. 460 VIOLATION Avoid unused local variables such as '$question'. 465 VIOLATION Avoid unused local variables such as '$questionnaire'. 485 VIOLATION The function questionnaire_extend_settings_navigation() has a Cyclomatic Complexity of 44. The configured cyclomatic complexity threshold is 10. 485 VIOLATION The function questionnaire_extend_settings_navigation() has an NPath complexity of 7188480. The configured NPath complexity threshold is 200. 485 VIOLATION The function questionnaire_extend_settings_navigation() has 214 lines of code. Current threshold is set to 100. Avoid really long methods. 485 VIOLATION Avoid unused parameters such as '$settings'. 581 VIOLATION Avoid unused local variables such as '$summary'. 589 VIOLATION Avoid unused local variables such as '$allmyresponsesnode'. 594 VIOLATION Avoid unused local variables such as '$downloadmyresponsesnode'. 594 VIOLATION Avoid excessively long variable names like $downloadmyresponsesnode. Keep variable name length under 20. 652 VIOLATION Avoid unused local variables such as '$defaultordernode'. 655 VIOLATION Avoid unused local variables such as '$ascendingordernode'. 658 VIOLATION Avoid unused local variables such as '$descendingordernode'. 663 VIOLATION Avoid unused local variables such as '$deleteallnode'. 669 VIOLATION Avoid unused local variables such as '$downloadresponsesnode'. 669 VIOLATION Avoid excessively long variable names like $downloadresponsesnode. Keep variable name length under 20. 678 VIOLATION Avoid unused local variables such as '$viewindividualresponsenode'. 678 VIOLATION Avoid excessively long variable names like $viewindividualresponsenode. Keep variable name length under 20. 683 VIOLATION Avoid unused local variables such as '$deleteindividualresponsenode'. 683 VIOLATION Avoid excessively long variable names like $deleteindividualresponsenode. Keep variable name length under 20. 695 VIOLATION Avoid unused local variables such as '$nonrespondentsnode'. 711 VIOLATION The function questionnaire_get_recent_mod_activity() has a Cyclomatic Complexity of 27. The configured cyclomatic complexity threshold is 10. 711 VIOLATION The function questionnaire_get_recent_mod_activity() has an NPath complexity of 313536. The configured NPath complexity threshold is 200. 711 VIOLATION The function questionnaire_get_recent_mod_activity() has 163 lines of code. Current threshold is set to 100. Avoid really long methods. 737 VIOLATION Avoid excessively long variable names like $originalquestionnaire. Keep variable name length under 20. 885 VIOLATION Avoid unused parameters such as '$detail'. 885 VIOLATION Avoid unused parameters such as '$modnames'. 886 VIOLATION Avoid unused local variables such as '$CFG'. 960 VIOLATION The function questionnaire_print_overview() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10. 973 VIOLATION Avoid excessively long variable names like $strsavedbutnotsubmitted. Keep variable name length under 20. 1010 VIOLATION Avoid unused local variables such as '$complete'. 1051 VIOLATION Avoid unused parameters such as '$course'. 1072 VIOLATION Avoid unused local variables such as '$type'. 1121 VIOLATION Avoid unused parameters such as '$course'. 1122 VIOLATION Avoid unused local variables such as '$CFG'. ====== =========== ========================================================================================================================================================= FILE: mod/questionnaire/locallib.php FOUND 0 ERRORS AND 28 VIOLATIONS ===== =========== =============================================================================================================================================================== 82 VIOLATION The function questionnaire_check_date() has a Cyclomatic Complexity of 32. The configured cyclomatic complexity threshold is 10. 82 VIOLATION The function questionnaire_check_date() has an NPath complexity of 3538993. The configured NPath complexity threshold is 200. 82 VIOLATION The function questionnaire_check_date() has 108 lines of code. Current threshold is set to 100. Avoid really long methods. 82 VIOLATION The method questionnaire_check_date has a boolean flag argument $insert, which is a certain sign of a Single Responsibility Principle violation. 212 VIOLATION Avoid unused local variables such as '$count'. 254 VIOLATION Avoid unused local variables such as '$PAGE'. 274 VIOLATION The method questionnaire_get_user_responses has a boolean flag argument $complete, which is a certain sign of a Single Responsibility Principle violation. 370 VIOLATION The function questionnaire_delete_survey() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. 508 VIOLATION Avoid unused parameters such as '$instance'. 508 VIOLATION Avoid unused parameters such as '$sid'. 544 VIOLATION The function questionnaire_get_type() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. 637 VIOLATION The method questionnaire_get_incomplete_users has a boolean flag argument $group, which is a certain sign of a Single Responsibility Principle violation. 639 VIOLATION The method questionnaire_get_incomplete_users has a boolean flag argument $startpage, which is a certain sign of a Single Responsibility Principle violation. 640 VIOLATION The method questionnaire_get_incomplete_users has a boolean flag argument $pagecount, which is a certain sign of a Single Responsibility Principle violation. 663 VIOLATION Avoid unused local variables such as '$params'. 697 VIOLATION Avoid excessively long variable names like $questionsinquestionnaire. Keep variable name length under 20. 727 VIOLATION The function questionnaire_get_dependencies() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. 807 VIOLATION Avoid unused local variables such as '$DB'. 822 VIOLATION Avoid unused local variables such as '$DB'. 850 VIOLATION The function questionnaire_check_page_breaks() has a Cyclomatic Complexity of 23. The configured cyclomatic complexity threshold is 10. 850 VIOLATION The function questionnaire_check_page_breaks() has an NPath complexity of 1440. The configured NPath complexity threshold is 200. 900 VIOLATION Avoid unused local variables such as '$qname'. 906 VIOLATION Avoid unused local variables such as '$prevdependquestionname'. 906 VIOLATION Avoid excessively long variable names like $prevdependquestionname. Keep variable name length under 20. 907 VIOLATION Avoid unused local variables such as '$prevqname'. 949 VIOLATION Avoid unused local variables such as '$DB'. 972 VIOLATION Avoid unused local variables such as '$DB'. 979 VIOLATION Avoid unused local variables such as '$qpos'. ===== =========== =============================================================================================================================================================== FILE: mod/questionnaire/mod_form.php FOUND 0 ERRORS AND 5 VIOLATIONS ==== =========== ================================================================================================================== 31 VIOLATION The method definition() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 31 VIOLATION The method definition() has 119 lines of code. Current threshold is set to 100. Avoid really long methods. 62 VIOLATION Avoid unused local variables such as '$questionnairerealms'. 62 VIOLATION Avoid excessively long variable names like $questionnairerespondents. Keep variable name length under 20. 62 VIOLATION Avoid excessively long variable names like $questionnaireresponseviewers. Keep variable name length under 20. ==== =========== ================================================================================================================== FILE: mod/questionnaire/questionnaire.class.php FOUND 0 ERRORS AND 116 VIOLATIONS ====== =========== ========================================================================================================================================================= 19 VIOLATION The class questionnaire has 3350 lines of code. Current threshold is 1000. Avoid really long classes. 19 VIOLATION The class questionnaire has 44 methods. Consider refactoring questionnaire to keep number of methods under 10. 19 VIOLATION The class questionnaire has an overall complexity of 699 which is very high. The configured complexity threshold is 50. 19 VIOLATION The class questionnaire has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13. 34 VIOLATION The method __construct() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 34 VIOLATION The method __construct() has an NPath complexity of 216. The configured NPath complexity threshold is 200. 34 VIOLATION The method __construct has a boolean flag argument $addquestions, which is a certain sign of a Single Responsibility Principle violation. 88 VIOLATION Avoid unused parameters such as '$section'. 88 VIOLATION The method add_questions has a boolean flag argument $sid, which is a certain sign of a Single Responsibility Principle violation. 88 VIOLATION The method add_questions has a boolean flag argument $section, which is a certain sign of a Single Responsibility Principle violation. 120 VIOLATION The method view() has a Cyclomatic Complexity of 26. The configured cyclomatic complexity threshold is 10. 120 VIOLATION The method view() has an NPath complexity of 1200. The configured NPath complexity threshold is 200. 120 VIOLATION The method view() has 135 lines of code. Current threshold is set to 100. Avoid really long methods. 142 VIOLATION The method view() contains an exit expression. 164 VIOLATION Avoid unused local variables such as '$sid'. 170 VIOLATION The method view() contains an exit expression. 260 VIOLATION Avoid unused parameters such as '$blankquestionnaire'. 260 VIOLATION The method view_response has a boolean flag argument $blankquestionnaire, which is a certain sign of a Single Responsibility Principle violation. 260 VIOLATION The method view_response has a boolean flag argument $compare, which is a certain sign of a Single Responsibility Principle violation. 261 VIOLATION The method view_response has a boolean flag argument $isgroupmember, which is a certain sign of a Single Responsibility Principle violation. 261 VIOLATION The method view_response has a boolean flag argument $allresponses, which is a certain sign of a Single Responsibility Principle violation. 301 VIOLATION The method view_all_responses() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. 327 VIOLATION Avoid unused local variables such as '$value'. 378 VIOLATION Avoid unused parameters such as '$userid'. 382 VIOLATION The method user_time_for_new_attempt() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. 442 VIOLATION The method can_view_response() has a Cyclomatic Complexity of 23. The configured cyclomatic complexity threshold is 10. 442 VIOLATION The method can_view_response() has an NPath complexity of 266. The configured NPath complexity threshold is 200. 498 VIOLATION The method count_submissions has a boolean flag argument $userid, which is a certain sign of a Single Responsibility Principle violation. 531 VIOLATION The method print_survey() has a Cyclomatic Complexity of 35. The configured cyclomatic complexity threshold is 10. 531 VIOLATION The method print_survey() has an NPath complexity of 589680000. The configured NPath complexity threshold is 200. 531 VIOLATION The method print_survey() has 160 lines of code. Current threshold is set to 100. Avoid really long methods. 531 VIOLATION Avoid unused parameters such as '$userid'. 531 VIOLATION The method print_survey has a boolean flag argument $userid, which is a certain sign of a Single Responsibility Principle violation. 532 VIOLATION Avoid unused local variables such as '$DB'. 577 VIOLATION Avoid unused local variables such as '$resume'. 623 VIOLATION Avoid unused local variables such as '$checkmissing'. 623 VIOLATION Avoid unused local variables such as '$checkwrongformat'. 692 VIOLATION The method survey_render() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 692 VIOLATION The method survey_render() has an NPath complexity of 300. The configured NPath complexity threshold is 200. 726 VIOLATION Avoid unused local variables such as '$descendantsdata'. 737 VIOLATION The method print_survey_start() has a Cyclomatic Complexity of 24. The configured cyclomatic complexity threshold is 10. 737 VIOLATION The method print_survey_start() has an NPath complexity of 14080. The configured NPath complexity threshold is 200. 737 VIOLATION The method print_survey_start() has 109 lines of code. Current threshold is set to 100. Avoid really long methods. 737 VIOLATION Avoid unused parameters such as '$numsections'. 737 VIOLATION Avoid unused parameters such as '$hasrequired'. 737 VIOLATION The method print_survey_start has a boolean flag argument $blankquestionnaire, which is a certain sign of a Single Responsibility Principle violation. 864 VIOLATION The method survey_print_render() has a Cyclomatic Complexity of 26. The configured cyclomatic complexity threshold is 10. 864 VIOLATION The method survey_print_render() has an NPath complexity of 178560. The configured NPath complexity threshold is 200. 864 VIOLATION The method survey_print_render() has 109 lines of code. Current threshold is set to 100. Avoid really long methods. 864 VIOLATION The method survey_print_render has a boolean flag argument $blankquestionnaire, which is a certain sign of a Single Responsibility Principle violation. 865 VIOLATION Avoid unused local variables such as '$USER'. 929 VIOLATION Avoid excessively long variable names like $descendantsandchoices. Keep variable name length under 20. 957 VIOLATION Avoid unused local variables such as '$usehtmleditor'. 974 VIOLATION The method survey_update() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. 1042 VIOLATION The method survey_copy() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. 1042 VIOLATION The method survey_copy() has an NPath complexity of 280. The configured NPath complexity threshold is 200. 1139 VIOLATION The method response_check_format() has a Cyclomatic Complexity of 75. The configured cyclomatic complexity threshold is 10. 1139 VIOLATION The method response_check_format() has an NPath complexity of 32357400. The configured NPath complexity threshold is 200. 1139 VIOLATION The method response_check_format() has 240 lines of code. Current threshold is set to 100. Avoid really long methods. 1139 VIOLATION The method response_check_format has a boolean flag argument $checkmissing, which is a certain sign of a Single Responsibility Principle violation. 1139 VIOLATION The method response_check_format has a boolean flag argument $checkwrongformat, which is a certain sign of a Single Responsibility Principle violation. 1140 VIOLATION Avoid unused local variables such as '$OUTPUT'. 1277 VIOLATION Avoid unused local variables such as '$ndd'. 1533 VIOLATION The method response_select_name() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 1593 VIOLATION The method response_send_email() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. 1593 VIOLATION The method response_send_email has a boolean flag argument $userid, which is a certain sign of a Single Responsibility Principle violation. 1608 VIOLATION Avoid unused local variables such as '$groupid'. 1668 VIOLATION The method response_insert has a boolean flag argument $resume, which is a certain sign of a Single Responsibility Principle violation. 1669 VIOLATION Avoid unused local variables such as '$USER'. 1707 VIOLATION The method response_select() has a Cyclomatic Complexity of 75. The configured cyclomatic complexity threshold is 10. 1707 VIOLATION The method response_select() has an NPath complexity of 169595596800. The configured NPath complexity threshold is 200. 1707 VIOLATION The method response_select() has 356 lines of code. Current threshold is set to 100. Avoid really long methods. 1707 VIOLATION The method response_select has a boolean flag argument $csvexport, which is a certain sign of a Single Responsibility Principle violation. 1710 VIOLATION Avoid unused local variables such as '$sid'. 1731 VIOLATION Avoid unused local variables such as '$noname'. 1757 VIOLATION Avoid unused local variables such as '$qtype'. 1886 VIOLATION Avoid unused local variables such as '$aid'. 2081 VIOLATION The method response_goto_thankyou() contains an exit expression. 2095 VIOLATION The method response_goto_thankyou() contains an exit expression. 2121 VIOLATION Avoid unused parameters such as '$url'. 2136 VIOLATION The method survey_results_navbar_alpha() has a Cyclomatic Complexity of 25. The configured cyclomatic complexity threshold is 10. 2136 VIOLATION The method survey_results_navbar_alpha() has an NPath complexity of 55200. The configured NPath complexity threshold is 200. 2136 VIOLATION The method survey_results_navbar_alpha() has 193 lines of code. Current threshold is set to 100. Avoid really long methods. 2136 VIOLATION Avoid unused parameters such as '$cm'. 2189 VIOLATION Avoid unused local variables such as '$userfullname'. 2208 VIOLATION Avoid unused local variables such as '$displaypos'. 2331 VIOLATION The method survey_results_navbar_student() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. 2331 VIOLATION The method survey_results_navbar_student() has an NPath complexity of 7200. The configured NPath complexity threshold is 200. 2363 VIOLATION Avoid unused local variables such as '$rowsperpage'. 2405 VIOLATION The method survey_results() has a Cyclomatic Complexity of 24. The configured cyclomatic complexity threshold is 10. 2405 VIOLATION The method survey_results() has an NPath complexity of 692224. The configured NPath complexity threshold is 200. 2405 VIOLATION The method survey_results() has 148 lines of code. Current threshold is set to 100. Avoid really long methods. 2405 VIOLATION Avoid unused parameters such as '$qid'. 2406 VIOLATION The method survey_results has a boolean flag argument $uid, which is a certain sign of a Single Responsibility Principle violation. 2557 VIOLATION The method generate_csv() has a Cyclomatic Complexity of 69. The configured cyclomatic complexity threshold is 10. 2557 VIOLATION The method generate_csv() has an NPath complexity of 1262342466240. The configured NPath complexity threshold is 200. 2557 VIOLATION The method generate_csv() has 364 lines of code. Current threshold is set to 100. Avoid really long methods. 2558 VIOLATION Avoid unused local variables such as '$SESSION'. 2619 VIOLATION Avoid unused local variables such as '$subqnum'. 2670 VIOLATION Avoid unused local variables such as '$ndd'. 2885 VIOLATION Avoid unused local variables such as '$numcol'. 2915 VIOLATION Avoid unused local variables such as '$other'. 2927 VIOLATION Avoid unused private methods such as 'export_csv'. 2935 VIOLATION Avoid unused local variables such as '$rid'. 2935 VIOLATION Avoid unused local variables such as '$userid'. 2935 VIOLATION Avoid unused local variables such as '$currentgroupid'. 2983 VIOLATION The method response_analysis() has a Cyclomatic Complexity of 93. The configured cyclomatic complexity threshold is 10. 2983 VIOLATION The method response_analysis() has an NPath complexity of 282276439934580000. The configured NPath complexity threshold is 200. 2983 VIOLATION The method response_analysis() has 384 lines of code. Current threshold is set to 100. Avoid really long methods. 2984 VIOLATION Avoid unused local variables such as '$SESSION'. 2984 VIOLATION Avoid unused local variables such as '$USER'. 3019 VIOLATION Avoid unused local variables such as '$feedbackscores'. 3075 VIOLATION Avoid unused local variables such as '$castsql'. 3257 VIOLATION Avoid excessively long variable names like $alloppositescorepercent. Keep variable name length under 20. 3258 VIOLATION Avoid unused local variables such as '$chartscore'. 3338 VIOLATION Avoid unused local variables such as '$sc'. ====== =========== ========================================================================================================================================================= FILE: mod/questionnaire/questions_form.php FOUND 0 ERRORS AND 22 VIOLATIONS ===== =========== =========================================================================================================================================== 26 VIOLATION The class questionnaire_questions_form has an overall complexity of 62 which is very high. The configured complexity threshold is 50. 28 VIOLATION The method __construct has a boolean flag argument $moveq, which is a certain sign of a Single Responsibility Principle violation. 33 VIOLATION The method definition() has a Cyclomatic Complexity of 60. The configured cyclomatic complexity threshold is 10. 33 VIOLATION The method definition() has an NPath complexity of 61391831808. The configured NPath complexity threshold is 200. 33 VIOLATION The method definition() has 331 lines of code. Current threshold is set to 100. Avoid really long methods. 43 VIOLATION Avoid unused local variables such as '$stredit'. 47 VIOLATION Avoid unused local variables such as '$stryes'. 48 VIOLATION Avoid unused local variables such as '$strno'. 83 VIOLATION Avoid excessively long variable names like $questionnairehasdependencies. Keep variable name length under 20. 186 VIOLATION Avoid unused local variables such as '$qreq'. 372 VIOLATION The class questionnaire_edit_question_form has an overall complexity of 70 which is very high. The configured complexity threshold is 50. 374 VIOLATION The method definition() has a Cyclomatic Complexity of 62. The configured cyclomatic complexity threshold is 10. 374 VIOLATION The method definition() has an NPath complexity of 1664188416. The configured NPath complexity threshold is 200. 374 VIOLATION The method definition() has 274 lines of code. Current threshold is set to 100. Avoid really long methods. 375 VIOLATION Avoid unused local variables such as '$CFG'. 375 VIOLATION Avoid unused local variables such as '$COURSE'. 375 VIOLATION Avoid unused local variables such as '$questionnairerealms'. 440 VIOLATION Avoid unused local variables such as '$defdependquestion'. 441 VIOLATION Avoid unused local variables such as '$defdependchoice'. 442 VIOLATION Avoid unused local variables such as '$dlabelname'. 604 VIOLATION Avoid unused local variables such as '$choiceid'. 661 VIOLATION Avoid unused local variables such as '$nbnameddegrees'. ===== =========== =========================================================================================================================================== FILE: mod/questionnaire/questiontypes/questiontypes.class.php FOUND 0 ERRORS AND 123 VIOLATIONS ====== =========== ========================================================================================================================================================== 65 VIOLATION The class questionnaire_question has 2430 lines of code. Current threshold is 1000. Avoid really long classes. 65 VIOLATION The class questionnaire_question has 48 methods. Consider refactoring questionnaire_question to keep number of methods under 10. 65 VIOLATION The class questionnaire_question has an overall complexity of 508 which is very high. The configured complexity threshold is 50. 221 VIOLATION Avoid unused private methods such as 'insert_response_bool'. 235 VIOLATION Avoid unused private methods such as 'insert_response_text'. 254 VIOLATION Avoid unused private methods such as 'insert_response_date'. 263 VIOLATION Avoid unused local variables such as '$insert'. 271 VIOLATION Avoid unused private methods such as 'insert_resp_single'. 271 VIOLATION The method insert_resp_single() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. 271 VIOLATION The method insert_resp_single() has an NPath complexity of 700. The configured NPath complexity threshold is 200. 321 VIOLATION Avoid unused private methods such as 'insert_resp_multiple'. 321 VIOLATION The method insert_resp_multiple() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. 367 VIOLATION Avoid unused private methods such as 'insert_response_rank'. 372 VIOLATION Avoid unused local variables such as '$choice'. 392 VIOLATION Avoid unused local variables such as '$r'. 411 VIOLATION Avoid unused private methods such as 'get_results'. 411 VIOLATION The method get_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 421 VIOLATION The method get_response_bool_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 423 VIOLATION Avoid unused local variables such as '$CFG'. 441 VIOLATION The method get_response_text_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 463 VIOLATION The method get_response_date_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 481 VIOLATION The method get_response_single_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 482 VIOLATION Avoid unused local variables such as '$CFG'. 526 VIOLATION The method get_response_rank_results() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10. 526 VIOLATION The method get_response_rank_results() has an NPath complexity of 262. The configured NPath complexity threshold is 200. 526 VIOLATION The method get_response_rank_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 527 VIOLATION Avoid unused local variables such as '$CFG'. 624 VIOLATION The method display_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 634 VIOLATION Avoid unused private methods such as 'display_response_bool_results'. 634 VIOLATION The method display_response_bool_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 658 VIOLATION Avoid unused local variables such as '$sort'. 664 VIOLATION Avoid unused private methods such as 'display_response_text_results'. 664 VIOLATION The method display_response_text_results() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 664 VIOLATION The method display_response_text_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 691 VIOLATION Avoid unused private methods such as 'display_response_date_results'. 691 VIOLATION The method display_response_date_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 714 VIOLATION Avoid unused private methods such as 'display_resp_single_results'. 714 VIOLATION The method display_resp_single_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 743 VIOLATION Avoid unused private methods such as 'display_resp_multiple_results'. 743 VIOLATION The method display_resp_multiple_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 773 VIOLATION Avoid unused private methods such as 'display_response_rank_results'. 773 VIOLATION The method display_response_rank_results() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 773 VIOLATION The method display_response_rank_results has a boolean flag argument $rids, which is a certain sign of a Single Responsibility Principle violation. 782 VIOLATION Avoid unused local variables such as '$value'. 827 VIOLATION The method survey_display has a boolean flag argument $blankquestionnaire, which is a certain sign of a Single Responsibility Principle violation. 831 VIOLATION The method questionstart_survey_display() has a Cyclomatic Complexity of 36. The configured cyclomatic complexity threshold is 10. 831 VIOLATION The method questionstart_survey_display() has an NPath complexity of 1251600. The configured NPath complexity threshold is 200. 831 VIOLATION The method questionstart_survey_display() has 110 lines of code. Current threshold is set to 100. Avoid really long methods. 870 VIOLATION Avoid unused local variables such as '$choice'. 947 VIOLATION Avoid unused private methods such as 'response_check_required'. 949 VIOLATION Avoid unused local variables such as '$choice'. 963 VIOLATION Avoid unused private methods such as 'yesno_survey_display'. 963 VIOLATION The method yesno_survey_display() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. 963 VIOLATION The method yesno_survey_display() has an NPath complexity of 3150. The configured NPath complexity threshold is 200. 963 VIOLATION The method yesno_survey_display has a boolean flag argument $blankquestionnaire, which is a certain sign of a Single Responsibility Principle violation. 1038 VIOLATION Avoid unused private methods such as 'text_survey_display'. 1045 VIOLATION Avoid unused private methods such as 'essay_survey_display'. 1077 VIOLATION Avoid unused private methods such as 'radio_survey_display'. 1077 VIOLATION The method radio_survey_display() has a Cyclomatic Complexity of 24. The configured cyclomatic complexity threshold is 10. 1077 VIOLATION The method radio_survey_display() has an NPath complexity of 72300. The configured NPath complexity threshold is 200. 1077 VIOLATION The method radio_survey_display() has 135 lines of code. Current threshold is set to 100. Avoid really long methods. 1077 VIOLATION The method radio_survey_display has a boolean flag argument $blankquestionnaire, which is a certain sign of a Single Responsibility Principle violation. 1145 VIOLATION Avoid unused local variables such as '$otherid'. 1213 VIOLATION Avoid unused private methods such as 'check_survey_display'. 1213 VIOLATION The method check_survey_display() has a Cyclomatic Complexity of 25. The configured cyclomatic complexity threshold is 10. 1213 VIOLATION The method check_survey_display() has an NPath complexity of 16296. The configured NPath complexity threshold is 200. 1227 VIOLATION Avoid unused local variables such as '$otherchoice'. 1307 VIOLATION Avoid unused private methods such as 'drop_survey_display'. 1307 VIOLATION The method drop_survey_display() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 1308 VIOLATION Avoid unused local variables such as '$OUTPUT'. 1346 VIOLATION Avoid unused private methods such as 'rate_survey_display'. 1346 VIOLATION The method rate_survey_display() has a Cyclomatic Complexity of 51. The configured cyclomatic complexity threshold is 10. 1346 VIOLATION The method rate_survey_display() has an NPath complexity of 35093760000. The configured NPath complexity threshold is 200. 1346 VIOLATION The method rate_survey_display() has 176 lines of code. Current threshold is set to 100. Avoid really long methods. 1346 VIOLATION Avoid unused parameters such as '$descendantsdata'. 1346 VIOLATION The method rate_survey_display has a boolean flag argument $blankquestionnaire, which is a certain sign of a Single Responsibility Principle violation. 1363 VIOLATION Avoid unused local variables such as '$mods'. 1523 VIOLATION Avoid unused private methods such as 'date_survey_display'. 1548 VIOLATION Avoid unused private methods such as 'numeric_survey_display'. 1548 VIOLATION The method numeric_survey_display() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. 1588 VIOLATION Avoid unused private methods such as 'sectiontext_survey_display'. 1588 VIOLATION Avoid unused parameters such as '$data'. 1647 VIOLATION The method radio_response_display() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. 1647 VIOLATION The method radio_response_display() has an NPath complexity of 325. The configured NPath complexity threshold is 200. 1695 VIOLATION The method check_response_display() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. 1742 VIOLATION Avoid unused local variables such as '$OUTPUT'. 1758 VIOLATION The method rate_response_display() has a Cyclomatic Complexity of 31. The configured cyclomatic complexity threshold is 10. 1758 VIOLATION The method rate_response_display() has an NPath complexity of 34934400. The configured NPath complexity threshold is 200. 1758 VIOLATION The method rate_response_display() has 132 lines of code. Current threshold is set to 100. Avoid really long methods. 1911 VIOLATION Avoid unused parameters such as '$data'. 1918 VIOLATION The method mkrespercent() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. 1919 VIOLATION Avoid unused local variables such as '$OUTPUT'. 1923 VIOLATION Avoid unused local variables such as '$bg'. 1949 VIOLATION Avoid unused local variables such as '$key'. 2008 VIOLATION Avoid unused private methods such as 'mkreslist'. 2008 VIOLATION Avoid unused parameters such as '$precision'. 2008 VIOLATION Avoid unused parameters such as '$showtotals'. 2009 VIOLATION Avoid unused local variables such as '$OUTPUT'. 2020 VIOLATION Avoid unused local variables such as '$imageurl'. 2038 VIOLATION Avoid unused local variables such as '$OUTPUT'. 2074 VIOLATION Avoid unused parameters such as '$precision'. 2074 VIOLATION Avoid unused parameters such as '$showtotals'. 2075 VIOLATION Avoid unused local variables such as '$CFG'. 2075 VIOLATION Avoid unused local variables such as '$OUTPUT'. 2103 VIOLATION Avoid unused local variables such as '$CFG'. 2103 VIOLATION Avoid unused local variables such as '$OUTPUT'. 2141 VIOLATION The method mkresavg() has a Cyclomatic Complexity of 34. The configured cyclomatic complexity threshold is 10. 2141 VIOLATION The method mkresavg() has an NPath complexity of 2334528. The configured NPath complexity threshold is 200. 2141 VIOLATION The method mkresavg() has 157 lines of code. Current threshold is set to 100. Avoid really long methods. 2141 VIOLATION Avoid unused parameters such as '$total'. 2141 VIOLATION Avoid unused parameters such as '$showtotals'. 2142 VIOLATION Avoid unused local variables such as '$OUTPUT'. 2189 VIOLATION Avoid unused local variables such as '$nacol'. 2299 VIOLATION The method mkrescount() has a Cyclomatic Complexity of 40. The configured cyclomatic complexity threshold is 10. 2299 VIOLATION The method mkrescount() has an NPath complexity of 56125440. The configured NPath complexity threshold is 200. 2299 VIOLATION The method mkrescount() has 195 lines of code. Current threshold is set to 100. Avoid really long methods. 2301 VIOLATION Avoid unused local variables such as '$CFG'. 2365 VIOLATION Avoid unused local variables such as '$strresp'. 2370 VIOLATION Avoid unused local variables such as '$nbchoices'. 2382 VIOLATION Avoid unused local variables such as '$colspan'. 2385 VIOLATION Avoid unused local variables such as '$mods'. 2386 VIOLATION Avoid unused local variables such as '$cid'. 2401 VIOLATION Avoid unused local variables such as '$chartkeys'. ====== =========== ========================================================================================================================================================== FILE: mod/questionnaire/settings_form.php FOUND 0 ERRORS AND 4 VIOLATIONS ==== =========== ================================================================================================================== 29 VIOLATION The method definition() has a Cyclomatic Complexity of 25. The configured cyclomatic complexity threshold is 10. 29 VIOLATION The method definition() has an NPath complexity of 10260. The configured NPath complexity threshold is 200. 29 VIOLATION The method definition() has 189 lines of code. Current threshold is set to 100. Avoid really long methods. 30 VIOLATION Avoid unused local variables such as '$CFG'. ==== =========== ================================================================================================================== FILE: mod/questionnaire/tests/generator/lib.php FOUND 0 ERRORS AND 4 VIOLATIONS ===== =========== ============================================================================================================================================ 29 VIOLATION The class mod_questionnaire_generator has 14 methods. Consider refactoring mod_questionnaire_generator to keep number of methods under 10. 38 VIOLATION Avoid unused local variables such as '$CFG'. 42 VIOLATION Avoid excessively long variable names like $defaultquestionnairesettings. Keep variable name length under 20. 117 VIOLATION Avoid unused local variables such as '$choice'. ===== =========== ============================================================================================================================================ FILE: mod/questionnaire/tests/generator_test.php FOUND 0 ERRORS AND 1 VIOLATIONS ==== =========== ============================================================================================================================================================== 28 VIOLATION The class mod_questionnaire_generator_testcase has 12 methods. Consider refactoring mod_questionnaire_generator_testcase to keep number of methods under 10. ==== =========== ============================================================================================================================================================== travis_time:end:17925ec1:start=1449161057544903331,finish=1449161110737817746,duration=53192914415  The command "moodle-plugin-ci phpmd" exited with 0. travis_time:start:1c5087d9 $ moodle-plugin-ci codechecker  RUN  Moodle Code Checker on mod_questionnaire ...............................E....E.E.E.....E.....EE.. FILE: /home/travis/build/moodle/mod/questionnaire/fbsettings_form.php ---------------------------------------------------------------------- FOUND 5 ERRORS AFFECTING 5 LINES ---------------------------------------------------------------------- 173 | ERROR | [x] Expected 1 space after "="; newline found 178 | ERROR | [x] Expected 1 space after "="; newline found 183 | ERROR | [x] Expected 1 space after "="; newline found 196 | ERROR | [x] Expected 1 space after "="; newline found 204 | ERROR | [x] Expected 1 space after "="; newline found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: /home/travis/build/moodle/mod/questionnaire/locallib.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 71 | ERROR | [x] Expected 1 space after "="; newline found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: /home/travis/build/moodle/mod/questionnaire/module.js ---------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------- 21 | ERROR | [x] Whitespace found at end of line 27 | ERROR | [x] Whitespace found at end of line 28 | ERROR | [x] Whitespace found at end of line ---------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: /home/travis/build/moodle/mod/questionnaire/preview.php ------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------ 80 | ERROR | No space before comment text; expected "// CONTRIB-5872 - I don't know why this is needed." but found | | "//CONTRIB-5872 - I don't know why this is needed." ------------------------------------------------------------------------------------------------------------------------ FILE: /home/travis/build/moodle/mod/questionnaire/questiontypes/questiontypes.class.php --------------------------------------------------------------------------------------- FOUND 10 ERRORS AFFECTING 10 LINES --------------------------------------------------------------------------------------- 78 | ERROR | [ ] Member variable "survey_id" must not contain underscores. 947 | ERROR | [x] Opening brace must be the last content on the line 1038 | ERROR | [x] Opening brace must be the last content on the line 1045 | ERROR | [x] Opening brace must be the last content on the line 1077 | ERROR | [x] Opening brace must be the last content on the line 1213 | ERROR | [x] Opening brace must be the last content on the line 1307 | ERROR | [x] Opening brace must be the last content on the line 1494 | ERROR | [x] Expected 1 space after "=="; newline found 1523 | ERROR | [x] Opening brace must be the last content on the line 1548 | ERROR | [x] Opening brace must be the last content on the line --------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------- FILE: /home/travis/build/moodle/mod/questionnaire/tests/generator/lib.php ------------------------------------------------------------------------------------------------ FOUND 30 ERRORS AND 3 WARNINGS AFFECTING 24 LINES ------------------------------------------------------------------------------------------------ 43 | ERROR | [ ] Tab found within whitespace 44 | ERROR | [ ] Tab found within whitespace 45 | ERROR | [ ] Tab found within whitespace 46 | ERROR | [ ] Tab found within whitespace 47 | ERROR | [ ] Tab found within whitespace 48 | ERROR | [ ] Tab found within whitespace 49 | ERROR | [ ] Tab found within whitespace 50 | ERROR | [ ] Tab found within whitespace 51 | ERROR | [ ] Tab found within whitespace 52 | ERROR | [ ] Tab found within whitespace 53 | ERROR | [ ] Tab found within whitespace 54 | ERROR | [ ] Tab found within whitespace 55 | ERROR | [ ] Tab found within whitespace 56 | ERROR | [ ] Tab found within whitespace 56 | ERROR | [ ] Tab found within whitespace 56 | WARNING | [ ] Inline comments must start with a capital letter, digit or 3-dots sequence 80 | ERROR | [ ] Tab found within whitespace 91 | WARNING | [ ] Inline comments must start with a capital letter, digit or 3-dots sequence 131 | WARNING | [ ] Inline comments must start with a capital letter, digit or 3-dots sequence 162 | ERROR | [x] Expected 1 space before "+"; 0 found 162 | ERROR | [x] Expected 1 space after "+"; 0 found 176 | ERROR | [x] Expected 1 space before "+"; 0 found 176 | ERROR | [x] Expected 1 space after "+"; 0 found 191 | ERROR | [x] Expected 1 space before "+"; 0 found 191 | ERROR | [x] Expected 1 space after "+"; 0 found 223 | ERROR | [x] Expected 1 space before "+"; 0 found 223 | ERROR | [x] Expected 1 space after "+"; 0 found 256 | ERROR | [x] Expected 1 space before "+"; 0 found 256 | ERROR | [x] Expected 1 space after "+"; 0 found 271 | ERROR | [x] Expected 1 space before "+"; 0 found 271 | ERROR | [x] Expected 1 space after "+"; 0 found 303 | ERROR | [x] Expected 1 space before "+"; 0 found 303 | ERROR | [x] Expected 1 space after "+"; 0 found ------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------ FILE: /home/travis/build/moodle/mod/questionnaire/tests/generator_test.php -------------------------------------------------------------------------------------------- FOUND 35 ERRORS AFFECTING 23 LINES -------------------------------------------------------------------------------------------- 42 | ERROR | [x] Expected 1 space before "=>"; 0 found 42 | ERROR | [x] Expected 1 space after "=>"; 0 found 70 | ERROR | [x] Expected 1 space before "=>"; 0 found 70 | ERROR | [x] Expected 1 space after "=>"; 0 found 72 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 99 | ERROR | [x] Expected 1 space before "=>"; 0 found 99 | ERROR | [x] Expected 1 space after "=>"; 0 found 122 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 138 | ERROR | [x] Expected 1 space before "=>"; 0 found 138 | ERROR | [x] Expected 1 space after "=>"; 0 found 151 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 166 | ERROR | [x] Expected 1 space before "=>"; 0 found 166 | ERROR | [x] Expected 1 space after "=>"; 0 found 189 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 205 | ERROR | [x] Expected 1 space before "=>"; 0 found 205 | ERROR | [x] Expected 1 space after "=>"; 0 found 218 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 233 | ERROR | [x] Expected 1 space before "=>"; 0 found 233 | ERROR | [x] Expected 1 space after "=>"; 0 found 245 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 260 | ERROR | [x] Expected 1 space before "=>"; 0 found 260 | ERROR | [x] Expected 1 space after "=>"; 0 found 273 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 288 | ERROR | [x] Expected 1 space before "=>"; 0 found 288 | ERROR | [x] Expected 1 space after "=>"; 0 found 311 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 327 | ERROR | [x] Expected 1 space before "=>"; 0 found 327 | ERROR | [x] Expected 1 space after "=>"; 0 found 350 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 366 | ERROR | [x] Expected 1 space before "=>"; 0 found 366 | ERROR | [x] Expected 1 space after "=>"; 0 found 379 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 394 | ERROR | [x] Expected 1 space before "=>"; 0 found 394 | ERROR | [x] Expected 1 space after "=>"; 0 found 407 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" -------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 35 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------- Time: 24152685 mins, 30.54 secs; Memory: 63.25Mb travis_time:end:1c5087d9:start=1449161110742347317,finish=1449161130596201854,duration=19853854537  The command "moodle-plugin-ci codechecker" exited with 1. travis_time:start:1affe56f $ moodle-plugin-ci csslint  RUN  CSS Lint on mod_questionnaire csslint: There are 19 problems in /home/travis/build/moodle/mod/questionnaire/styles.css. styles.css 1: warning at line 6, col 5 Use of !important display: none!important; styles.css 2: warning at line 24, col 18 Values of 0 shouldn't have units specified. margin-left: 0%; styles.css 3: warning at line 26, col 5 Use of !important margin-bottom: 0px!important; styles.css 4: warning at line 26, col 20 Values of 0 shouldn't have units specified. margin-bottom: 0px!important; styles.css 5: warning at line 31, col 5 Use of !important margin-bottom: 0px!important; styles.css 6: warning at line 31, col 20 Values of 0 shouldn't have units specified. margin-bottom: 0px!important; styles.css 7: warning at line 37, col 5 Use of !important margin-bottom: 0px!important; styles.css 8: warning at line 37, col 20 Values of 0 shouldn't have units specified. margin-bottom: 0px!important; styles.css 9: warning at line 45, col 5 Expected (none | right | left | both | inherit) but found 'all'. clear: all; styles.css 10: warning at line 48, col 13 Values of 0 shouldn't have units specified. margin: 0pt auto 10px; styles.css 11: warning at line 95, col 14 Values of 0 shouldn't have units specified. padding: 0px; styles.css 12: warning at line 109, col 12 Values of 0 shouldn't have units specified. margin:0px; styles.css 13: warning at line 122, col 16 Values of 0 shouldn't have units specified. margin-top:0px; styles.css 14: warning at line 171, col 1 The properties padding-top, padding-bottom, padding-left, padding-right can be replaced by padding. #page-mod-questionnaire-myreport .individualresp, styles.css 15: warning at line 178, col 20 Values of 0 shouldn't have units specified. padding-bottom:0px; styles.css 16: warning at line 205, col 1 The properties padding-top, padding-bottom, padding-left, padding-right can be replaced by padding. .qn-question { styles.css 17: warning at line 255, col 13 Values of 0 shouldn't have units specified. margin: 0px; styles.css 18: warning at line 326, col 19 Values of 0 shouldn't have units specified. margin-right: 0px; styles.css 19: warning at line 349, col 20 Values of 0 shouldn't have units specified. margin-bottom: 0px; travis_time:end:1affe56f:start=1449161130599919241,finish=1449161130823229030,duration=223309789  The command "moodle-plugin-ci csslint" exited with 0. travis_time:start:03505a37 $ moodle-plugin-ci shifter  RUN  Shifter on mod_questionnaire No relevant files found to process, free pass! travis_time:end:03505a37:start=1449161130827109347,finish=1449161130925413340,duration=98303993  The command "moodle-plugin-ci shifter" exited with 0. travis_time:start:19cffc56 $ moodle-plugin-ci jshint  RUN  JSHint on mod_questionnaire module.js: line 37, col 10, 'depend' was used before it was defined. module.js: line 81, col 30, 'j' is already defined. module.js: line 87, col 30, 'm' is already defined. module.js: line 109, col 10, 'addClass' was used before it was defined. module.js: line 113, col 10, 'removeClass' was used before it was defined. module.js: line 149, col 20, 'i' is already defined. module.js: line 181, col 36, Use '===' to compare with ''. module.js: line 181, col 70, Use '===' to compare with 'true'. module.js: line 194, col 50, 'Y' is defined but never used. module.js: line 199, col 28, 'e' is defined but never used. module.js: line 205, col 28, 'e' is defined but never used. module.js: line 213, col 33, Use '===' to compare with '0'. module.js: line 211, col 28, 'e' is defined but never used. module.js: line 221, col 28, 'e' is defined but never used. module.js: line 42, col 5, 'child' is not defined. module.js: line 45, col 9, 'child' is not defined. module.js: line 46, col 41, 'child' is not defined. module.js: line 56, col 21, 'child' is not defined. module.js: line 43, col 5, 'choice' is not defined. module.js: line 55, col 17, 'choice' is not defined. module.js: line 56, col 30, 'choice' is not defined. module.js: line 65, col 25, 'radio' is not defined. module.js: line 66, col 25, 'radio' is not defined. module.js: line 82, col 25, 'radio' is not defined. module.js: line 83, col 25, 'radio' is not defined. module.js: line 84, col 25, 'radio' is not defined. module.js: line 85, col 25, 'radio' is not defined. module.js: line 69, col 25, 'droplist' is not defined. module.js: line 70, col 25, 'droplist' is not defined. module.js: line 88, col 25, 'droplist' is not defined. module.js: line 89, col 25, 'droplist' is not defined. module.js: line 90, col 25, 'droplist' is not defined. module.js: line 91, col 25, 'droplist' is not defined. module.js: line 94, col 25, 'textarea' is not defined. module.js: line 95, col 25, 'textarea' is not defined. module.js: line 125, col 3, 'other' is not defined. module.js: line 128, col 43, 'other' is not defined. module.js: line 163, col 5, 'col_name' is not defined. module.js: line 168, col 68, 'col_name' is not defined. module.js: line 166, col 9, 'button' is not defined. module.js: line 167, col 13, 'button' is not defined. module.js: line 167, col 39, 'button' is not defined. module.js: line 167, col 62, 'button' is not defined. module.js: line 168, col 24, 'button' is not defined. module.js: line 169, col 13, 'button' is not defined. module.js: line 31, col 10, 'dependdrop' is defined but never used. module.js: line 124, col 10, 'other_check' is defined but never used. module.js: line 136, col 10, 'other_check_empty' is defined but never used. module.js: line 162, col 10, 'other_rate_uncheck' is defined but never used. module.js: line 175, col 10, 'checkbox_empty' is defined but never used. 50 errors travis_time:end:19cffc56:start=1449161130929258374,finish=1449161131308547677,duration=379289303  The command "moodle-plugin-ci jshint" exited with 1. travis_time:start:02a11f38 $ moodle-plugin-ci phpunit  RUN  PHPUnit tests for mod_questionnaire Moodle 3.0+ (Build: 20151126), mysqli, 8568798f761a933b10b3048c5323e56b8a082eb4 PHPUnit 4.8.10 by Sebastian Bergmann and contributors. ............ Time: 22.64 seconds, Memory: 66.25Mb OK (12 tests, 166 assertions) travis_time:end:02a11f38:start=1449161131312386889,finish=1449161154175397168,duration=22863010279  The command "moodle-plugin-ci phpunit" exited with 0. travis_time:start:000330f8 $ moodle-plugin-ci behat  RUN  Behat features for mod_questionnaire No Behat features to run, free pass! travis_time:end:000330f8:start=1449161154179491111,finish=1449161154293664757,duration=114173646  The command "moodle-plugin-ci behat" exited with 0. travis_fold:start:cache.2 store build cache travis_time:start:01e33380 travis_time:end:01e33380:start=1449161154298016278,finish=1449161154301442647,duration=3426369 travis_time:start:3846d5ea change detected: /home/travis/.composer/cache/files/behat/behat/c1e48826b84669c97a1efa78459aedfdcdcf2120.zip /home/travis/.composer/cache/files/behat/gherkin/2b33963da5525400573560c173ab5c9c057e1852.zip /home/travis/.composer/cache/files/behat/mink/0769e6d9726c140a54dbf827a438c0f9912749fe.zip /home/travis/.composer/cache/files/behat/mink-browserkit-driver/63960c8fcad4529faad1ff33e950217980baa64c.zip /home/travis/.composer/cache/files/behat/mink-extension/b885b9407cba50a954f72c69ed1b2f8d3bc694f8.zip /home/travis/.composer/cache/files/behat/mink-goutte-driver/fa1b073b48761464feb0b05e6825da44b20118d8.zip /home/travis/.composer/cache/files/behat/mink-selenium2-driver/bcf1b537de37db6db0822d9e7bd97e600fd7a476.zip /home/travis/.composer/cache/files/doctrine/instantiator/8e884e78f9f0eb1329e445619e04456e64d8051d.zip /home/travis/.composer/cache/files/fabpot/goutte/794b196e76bdd37b5155cdecbad311f0a3b07625.zip /home/travis/.composer/cache/files/guzzlehttp/guzzle/4de0618a01b34aa1c8c33a3f13f396dcd3882eba.zip /home/t  ...  changes detected, packing new archive uploading archive travis_time:end:3846d5ea:start=1449161154305317918,finish=1449161156037395073,duration=1732077155 travis_fold:end:cache.2  Done. Your build exited with 1.