Skip to content

Commit

Permalink
Merge pull request #510 from JeromeMartinez/Robots
Browse files Browse the repository at this point in the history
MediaConch specs/checks info for USAC and so on can be crawled by robots
  • Loading branch information
JeromeMartinez authored Jan 30, 2024
2 parents f15b96e + eab10f0 commit 076505d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 24 deletions.
2 changes: 0 additions & 2 deletions src/MediaConchBundle/Controller/ChecksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class ChecksController extends Controller
*/
public function checksAction(Checks $checks)
{
header('X-Robots-Tag: none');

return $this->render('@MediaConch/Default/checks.html.twig', [ 'items' => $checks->listChecks() ]);
}

Expand Down
2 changes: 0 additions & 2 deletions src/MediaConchBundle/Controller/GroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public function groupsAction(Groups $groups)
*/
public function group1Action(Groups $groups, $groupId)
{
header('X-Robots-Tag: none');

$items = $groups->listGroupInfo($groupId);
if (!$items) {
throw $this->createNotFoundException('This group is not found in our database');
Expand Down
2 changes: 0 additions & 2 deletions src/MediaConchBundle/Controller/SeveritiesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public function severitiesAction(Severities $severities)
*/
public function severity1Action($severityId, Severities $severities)
{
header('X-Robots-Tag: none');

$items = $severities->listSeverityInfo($severityId);
if (!$items) {
throw $this->createNotFoundException('The severity is not found in our database');
Expand Down
18 changes: 0 additions & 18 deletions src/MediaConchBundle/Controller/SpecsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class SpecsController extends Controller
*/
public function specsAction(Specs $specs)
{
header('X-Robots-Tag: none');

return $this->render('@MediaConch/Default/checks.html.twig', [ 'items' => $specs->listSpecs() ]);
}

Expand All @@ -29,8 +27,6 @@ public function specsAction(Specs $specs)
*/
public function specs1Action(Specs $specs, $specId)
{
header('X-Robots-Tag: none');

$items = $specs->listSpecInfo($specId);
if (!$items) {
throw $this->createNotFoundException('This specification is not found in our database');
Expand All @@ -44,8 +40,6 @@ public function specs1Action(Specs $specs, $specId)
*/
public function specs2Action(Specs $specs, $specId, $specId2)
{
header('X-Robots-Tag: none');

$items = $specs->listElementInfo($specId, $specId2, '../../');
if (!$items) {
throw $this->createNotFoundException('This specification is not found in our database');
Expand All @@ -59,8 +53,6 @@ public function specs2Action(Specs $specs, $specId, $specId2)
*/
public function specs3Action(Specs $specs, $specId, $specId2, $specId3)
{
header('X-Robots-Tag: none');

$items = $specs->listFieldInfo($specId, $specId2, $specId3, '../../../');
if (!$items) {
throw $this->createNotFoundException('This specification is not found in our database');
Expand All @@ -74,8 +66,6 @@ public function specs3Action(Specs $specs, $specId, $specId2, $specId3)
*/
public function specs4Action(Specs $specs, $specId, $specId2, $specId3, $specId4)
{
header('X-Robots-Tag: none');

$items = $specs->listFieldInfo($specId, $specId2 . '/' . $specId3, $specId4, '../../../../');
if (!$items) {
throw $this->createNotFoundException('This specification is not found in our database');
Expand All @@ -89,8 +79,6 @@ public function specs4Action(Specs $specs, $specId, $specId2, $specId3, $specId4
*/
public function specs5Action(Specs $specs, $specId, $specId2, $specId3, $specId4, $specId5)
{
header('X-Robots-Tag: none');

$items = $specs->listFieldInfo($specId, $specId2 . '/' . $specId3 . '/' . $specId4, $specId5, '../../../../../');
if (!$items) {
throw $this->createNotFoundException('This specification is not found in our database');
Expand All @@ -104,8 +92,6 @@ public function specs5Action(Specs $specs, $specId, $specId2, $specId3, $specId4
*/
public function specs6Action(Specs $specs, $specId, $specId2, $specId3, $specId4, $specId5, $specId6)
{
header('X-Robots-Tag: none');

$items = $specs->listFieldInfo($specId, $specId2 . '/' . $specId3 . '/' . $specId4 . '/' . $specId5, $specId6, '../../../../../../');
if (!$items) {
throw $this->createNotFoundException('This specification is not found in our database');
Expand All @@ -119,8 +105,6 @@ public function specs6Action(Specs $specs, $specId, $specId2, $specId3, $specId4
*/
public function specs7Action(Specs $specs, $specId, $specId2, $specId3, $specId4, $specId5, $specId6, $specId7)
{
header('X-Robots-Tag: none');

$items = $specs->listFieldInfo($specId, $specId2 . '/' . $specId3 . '/' . $specId4 . '/' . $specId5 . '/' . $specId6, $specId7, '../../../../../../../');
if (!$items) {
throw $this->createNotFoundException('This specification is not found in our database');
Expand All @@ -134,8 +118,6 @@ public function specs7Action(Specs $specs, $specId, $specId2, $specId3, $specId4
*/
public function specs8Action(Specs $specs, $specId, $specId2, $specId3, $specId4, $specId5, $specId6, $specId7, $specId8)
{
header('X-Robots-Tag: none');

$items = $specs->listFieldInfo($specId, $specId2 . '/' . $specId3 . '/' . $specId4 . '/' . $specId5 . '/' . $specId6 . '/' . $specId7, $specId8, '../../../../../../../../');
if (!$items) {
throw $this->createNotFoundException('This specification is not found in our database');
Expand Down

0 comments on commit 076505d

Please sign in to comment.