src/TreeHouse/IoBundle/Command/ScrapeRevisitCommand.php 1 location
|
@@ 101-110 (lines=10) @@
|
98 |
|
* |
99 |
|
* @return ScraperEntity[] |
100 |
|
*/ |
101 |
|
protected function findScrapers(array $ids) |
102 |
|
{ |
103 |
|
$repo = $this->doctrine->getRepository('TreeHouseIoBundle:Scraper'); |
104 |
|
|
105 |
|
if (!empty($ids)) { |
106 |
|
return $repo->findBy(['id' => $ids]); |
107 |
|
} |
108 |
|
|
109 |
|
return $repo->findAll(); |
110 |
|
} |
111 |
|
} |
112 |
|
|
src/TreeHouse/IoBundle/Command/ScrapeRevisitUrlsCommand.php 1 location
|
@@ 96-105 (lines=10) @@
|
93 |
|
* |
94 |
|
* @return ScraperEntity[] |
95 |
|
*/ |
96 |
|
protected function findScrapers(array $ids) |
97 |
|
{ |
98 |
|
$repo = $this->doctrine->getRepository('TreeHouseIoBundle:Scraper'); |
99 |
|
|
100 |
|
if (!empty($ids)) { |
101 |
|
return $repo->findBy(['id' => $ids]); |
102 |
|
} |
103 |
|
|
104 |
|
return $repo->findAll(); |
105 |
|
} |
106 |
|
} |
107 |
|
|
src/TreeHouse/IoBundle/Command/ScrapeStartCommand.php 1 location
|
@@ 108-117 (lines=10) @@
|
105 |
|
* |
106 |
|
* @return ScraperEntity[] |
107 |
|
*/ |
108 |
|
protected function findScrapers(array $ids) |
109 |
|
{ |
110 |
|
$repo = $this->doctrine->getRepository('TreeHouseIoBundle:Scraper'); |
111 |
|
|
112 |
|
if (!empty($ids)) { |
113 |
|
return $repo->findBy(['id' => $ids]); |
114 |
|
} |
115 |
|
|
116 |
|
return $repo->findAll(); |
117 |
|
} |
118 |
|
|
119 |
|
/** |
120 |
|
* @param InputInterface $input |