Skip to content

Commit

Permalink
Fix translation file from #100
Browse files Browse the repository at this point in the history
minor code styling
  • Loading branch information
j.guyon committed Dec 5, 2018
1 parent b87e907 commit e4344a3
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions Command/UnlockCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if ($this->unlockAll === false && $this->scheduledCommandName === NULL) {
if ($this->unlockAll === false && $this->scheduledCommandName === null) {
$output->writeln('Either the name of a scheduled command or the --all option must be set.');

return 1;
Expand Down Expand Up @@ -137,7 +137,8 @@ protected function unlock(ScheduledCommand $command, OutputInterface $output)
$command->getLastExecution() !== null &&
$command->getLastExecution() >= (new \DateTime())->sub(
new \DateInterval(sprintf('PT%dS', $this->lockTimeout))
)) {
)
) {
$output->writeln(
sprintf('Skipping: Timout for scheduled Command "%s" has not run out.', $command->getName())
);
Expand Down
2 changes: 1 addition & 1 deletion Resources/translations/JMoseCommandScheduler.de.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="de" datatype="plaintext" original="file.ext">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>

<!-- Bundle -->
Expand Down
2 changes: 1 addition & 1 deletion Resources/translations/JMoseCommandScheduler.es.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="es" datatype="plaintext" original="file.ext">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>

<!-- Bundle -->
Expand Down
2 changes: 1 addition & 1 deletion Resources/translations/JMoseCommandScheduler.fr.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="fr" datatype="plaintext" original="file.ext">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>

<!-- Bundle -->
Expand Down
2 changes: 1 addition & 1 deletion Resources/translations/validators.de.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="de" datatype="plaintext" original="file.ext">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>commandScheduler.validation.cron</source>
Expand Down
2 changes: 1 addition & 1 deletion Resources/translations/validators.es.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="es" datatype="plaintext" original="file.ext">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>commandScheduler.validation.cron</source>
Expand Down
2 changes: 1 addition & 1 deletion Resources/translations/validators.fr.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="fr" datatype="plaintext" original="file.ext">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>commandScheduler.validation.cron</source>
Expand Down
2 changes: 1 addition & 1 deletion Resources/translations/validators.pt-br.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="pt-br" datatype="plaintext" original="file.ext">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>commandScheduler.validation.cron</source>
Expand Down
1 change: 1 addition & 0 deletions Service/CommandParser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace JMose\CommandSchedulerBundle\Service;

use Symfony\Bundle\FrameworkBundle\Console\Application;
Expand Down

0 comments on commit e4344a3

Please sign in to comment.