Browse Source

refactoring

dev-master
Simon Vieille 4 years ago
parent
commit
00afec0199

+ 0
- 1
src/Deblan/PowerDNS/Command/DomainAddCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7 7
 use Symfony\Component\Console\Input\InputOption;
8
-use Symfony\Component\Console\Command\Command;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\Domain;
11 10
 use Deblan\PowerDNS\Model\DomainQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/DomainListCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7 7
 use Symfony\Component\Console\Input\InputOption;
8
-use Symfony\Component\Console\Command\Command;
9 8
 use Deblan\PowerDNS\Model\DomainQuery;
10 9
 use Deblan\Console\Command\AbstractCommand;
11 10
 

+ 0
- 1
src/Deblan/PowerDNS/Command/DomainRemoveCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7 7
 use Symfony\Component\Console\Input\InputOption;
8
-use Symfony\Component\Console\Command\Command;
9 8
 use Deblan\PowerDNS\Model\DomainQuery;
10 9
 use Deblan\Console\Command\AbstractCommand;
11 10
 

+ 1
- 2
src/Deblan/PowerDNS/Command/ZoneAddCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7 7
 use Symfony\Component\Console\Input\InputOption;
8
-use Symfony\Component\Console\Command\Command;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\Zone;
11 10
 
@@ -37,7 +36,7 @@ class ZoneAddCommand extends AbstractCommand
37 36
             $description = $this->getHelper('dialog')->ask($this->getOutput(), 'Description: ', null);
38 37
         }
39 38
 
40
-        $zone = (new Zone())
39
+        (new Zone())
41 40
             ->setName($name)
42 41
             ->setDescription($description)
43 42
             ->save();

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneAssignCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Symfony\Component\Console\Input\InputArgument;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\Domain;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneListCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7 7
 use Symfony\Component\Console\Input\InputOption;
8
-use Symfony\Component\Console\Command\Command;
9 8
 use Deblan\PowerDNS\Model\ZoneQuery;
10 9
 
11 10
 class ZoneListCommand extends AbstractZoneCommand

+ 0
- 1
src/Deblan/PowerDNS/Command/ZonePushCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Propel\Runtime\ActiveQuery\Criteria;
9 8
 use Deblan\PowerDNS\Model\RecordQuery;
10 9
 use Deblan\PowerDNS\Model\DomainQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneRecordAddCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7 7
 use Symfony\Component\Console\Input\InputOption;
8
-use Symfony\Component\Console\Command\Command;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Symfony\Component\Console\Input\InputArgument;
11 10
 use Deblan\PowerDNS\Model\Map\ZoneRecordTableMap;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneRecordRemoveCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Deblan\Console\Command\AbstractCommand;
9 8
 use Symfony\Component\Console\Input\InputArgument;
10 9
 use Deblan\PowerDNS\Model\ZoneRecordQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneRemoveCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7 7
 use Symfony\Component\Console\Input\InputOption;
8
-use Symfony\Component\Console\Command\Command;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\ZoneQuery;
11 10
 use Symfony\Component\Console\Input\InputArgument;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneUnassignCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Symfony\Component\Console\Input\InputArgument;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\Domain;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneVersionActiveCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Symfony\Component\Console\Input\InputArgument;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\ZoneVersionQuery;

+ 1
- 2
src/Deblan/PowerDNS/Command/ZoneVersionAddCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Symfony\Component\Console\Input\InputArgument;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\ZoneVersionQuery;
@@ -38,7 +37,7 @@ class ZoneVersionAddCommand extends AbstractCommand
38 37
             return;
39 38
         }
40 39
 
41
-        $zoneVersion = (new ZoneVersion())
40
+        (new ZoneVersion())
42 41
             ->setVersion($zone->countZoneVersions() ? ZoneVersionQuery::create()->orderByVersion(Criteria::DESC)->findOne()->getVersion() + 1 : 1)
43 42
             ->setZone($zone)
44 43
             ->setIsActive(false)

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneVersionCopyCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Symfony\Component\Console\Input\InputArgument;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\ZoneVersionQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneVersionRemoveCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Symfony\Component\Console\Input\InputArgument;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\ZoneVersionQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneVersionUnactiveCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;
4 4
 
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Symfony\Component\Console\Input\InputArgument;
9 8
 use Deblan\Console\Command\AbstractCommand;
10 9
 use Deblan\PowerDNS\Model\ZoneVersionQuery;

Loading…
Cancel
Save