Browse Source

Stop running "style" coder check (#722)

* We run phpcs separately, so stop running it here
* Code in comments is discouraged, but we'll try to skip
* Have to hide the code in comments
* Remove blank comment line
7.x-1.13
Jared Whiklo 5 years ago committed by Jonathan Green
parent
commit
90414e50bd
  1. 2
      tests/scripts/travis_scripts.sh
  2. 12
      theme/islandora-object.tpl.php

2
tests/scripts/travis_scripts.sh

@ -22,7 +22,7 @@ checkReturn $?
# Coding standards # Coding standards
echo "Drush coder-review" echo "Drush coder-review"
drush coder-review --reviews=production,security,style,i18n,potx $TRAVIS_BUILD_DIR drush coder-review --reviews=production,security,i18n,potx $TRAVIS_BUILD_DIR
checkReturn $? checkReturn $?
# Skip code sniffer for PHP 5.3.3 # Skip code sniffer for PHP 5.3.3

12
theme/islandora-object.tpl.php

@ -19,10 +19,7 @@
* *
* to test if a datastream exists isset($object['dsid']) * to test if a datastream exists isset($object['dsid'])
* *
* to iterate over datastreams: * to iterate over datastreams do a "foreach ($object as $ds) {}"
* foreach ($object as $ds) {
* $ds->label, etc
* }
* *
* each $ds in the above loop has the following properties: * each $ds in the above loop has the following properties:
* $ds->label - The label for this datastream. * $ds->label - The label for this datastream.
@ -49,13 +46,6 @@
* and each element has an array of values. * and each element has an array of values.
* dc.title can have none, one or many titles * dc.title can have none, one or many titles
* this is the case for all dc elements. * this is the case for all dc elements.
*
*
*
* we can get a list of datastreams by doing
* foreach ($object as $ds) {
* do something here
* }
*/ */
?> ?>
<div class="islandora-object islandora"> <div class="islandora-object islandora">

Loading…
Cancel
Save