Commit 72ca2e8a authored by Michael Joyce's avatar Michael Joyce
Browse files

ws.

parent 900813fd
......@@ -11,7 +11,6 @@ declare(strict_types=1);
namespace AppBundle\Command\Processing;
use AppBundle\Entity\Deposit;
use AppBundle\Services\DtdValidator;
use AppBundle\Services\Processing\XmlValidator;
use AppBundle\Services\SchemaValidator;
use Doctrine\ORM\EntityManagerInterface;
......
......@@ -295,11 +295,12 @@ class UpgradeCommand extends ContainerAwareCommand {
$deposit = new Deposit();
$journalId = $this->getIdMap(Journal::class, $row['journal_id']);
if( ! $journalId) {
if ( ! $journalId) {
dump($row);
throw new Exception("No ID for journal: " . $row['journal_id']);
throw new Exception('No ID for journal: ' . $row['journal_id']);
}
$journal = $this->em->find(Journal::class, $journalId);
$journal = $this->em->find(Journal::class, $journalId);
if ( ! $journal) {
throw new Exception("Journal {$row['journal_id']} not found.");
}
......
......@@ -678,7 +678,7 @@ class Deposit extends AbstractEntity {
* @return Deposit
*/
public function setPackageChecksumType($packageChecksumType) {
if($packageChecksumType) {
if ($packageChecksumType) {
$this->packageChecksumType = strtolower($packageChecksumType);
}
......@@ -702,7 +702,7 @@ class Deposit extends AbstractEntity {
* @return Deposit
*/
public function setPackageChecksumValue($packageChecksumValue) {
if($packageChecksumValue) {
if ($packageChecksumValue) {
$this->packageChecksumValue = strtoupper($packageChecksumValue);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment