Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Joyce
pkppln-v2
Commits
72ca2e8a
Commit
72ca2e8a
authored
Jun 22, 2020
by
Michael Joyce
Browse files
ws.
parent
900813fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/AppBundle/Command/Processing/ValidateXmlCommand.php
View file @
72ca2e8a
...
...
@@ -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
;
...
...
src/AppBundle/Command/UpgradeCommand.php
View file @
72ca2e8a
...
...
@@ -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."
);
}
...
...
src/AppBundle/Entity/Deposit.php
View file @
72ca2e8a
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment