Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 1793481

Browse files
author
Julien Jomier
committed
STYLE: Fixing style
1 parent 5bbc298 commit 1793481

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

core/controllers/components/MIDAS2MigrationComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private function _createFolderForItem($collectionId, $parentFolderid)
148148

149149
// Get the number of downloads and set it
150150
$itemstatsquery = pg_query("SELECT downloads from midas_resourcelog WHERE
151-
resource_id_type=".MIDAS2_RESOURCE_ITEM." AND resource_id=".$item_id);
151+
resource_id_type=".MIDAS2_RESOURCE_ITEM." AND resource_id=".$item_id);
152152
if($itemstats_array = pg_fetch_array($itemstatsquery))
153153
{
154154
$itemdao->setView($itemstats_array['downloads']);

core/models/pdo/MetadataModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function saveMetadataValue($metadataDao)
7979
$data['itemrevision_id'] = $metadataDao->getItemrevisionId();
8080
$data['value'] = $metadataDao->getValue();
8181
$tablename = $this->getTableValueName($metadataDao->getMetadatatype());
82-
$table = new Zend_Db_Table(array('name'=> $tablename, 'primary' => 'metadata_id'));
82+
$table = new Zend_Db_Table(array('name' => $tablename, 'primary' => 'metadata_id'));
8383
$table->insert($data);
8484
return true;
8585
} // end function saveMetadataValue()

tests/library/PhpCheckstyle/src/reporter/ConsoleReporter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class ConsoleReporter extends Reporter {
2525
* @param String $level the severity level
2626
*/
2727
public function writeError($line, $check, $message, $level = WARNING) {
28-
echo $this->currentPhpFile." ".$level." Line:".$line." - ".$message."\n";
28+
$line2 = $line+1;
29+
echo $this->currentPhpFile." ".$level." Line:".$line2." - ".$message."\n";
2930
}
3031

3132
}

tests/library/PhpCheckstyle/src/reporter/PlainFormatReporter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public function currentlyProcessing($phpFile) {
7373
* @param String $level the severity level
7474
*/
7575
public function writeError($line, $check, $message, $level = WARNING) {
76-
$msg = "\t".$level." Line:".$line.": ".$message.PHP_EOL;
76+
$line2 = $line+1;
77+
$msg = "\t".$level." Line:".$line2.": ".$message.PHP_EOL;
7778
$this->_write($msg);
7879
}
7980

0 commit comments

Comments
 (0)