Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Fix all comments on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ahma0942 committed Oct 24, 2023
1 parent 510b7f9 commit fa97e7d
Show file tree
Hide file tree
Showing 18 changed files with 91 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ MAILER_SENDER_NAME=Kontrolgruppen

DISPLAY_NO_SENSITIVE_INFORMATION_WARNING=true

ROUTER_REQUEST_CONTEXT_HOST=0.0.0.0
ROUTER_REQUEST_CONTEXT_HOST=kontrolgruppen.local.itkdev.dk
ROUTER_REQUEST_CONTEXT_SCHEME=http
# Optional (must start with a slash)
#ROUTER_REQUEST_CONTEXT_BASE_URL=/some-path
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"onelogin/php-saml": "^3.1",
"phpdocumentor/reflection-docblock": "^5.3",
"phpoffice/phpspreadsheet": "^1.8",
"sensio/framework-extra-bundle": "^6.2",
"stof/doctrine-extensions-bundle": "^1.3",
"symfony/apache-pack": "^1.0",
"symfony/asset": "6.3.*",
Expand Down
82 changes: 80 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/packages/dev/routing.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
framework:
router:
strict_requirements: true
default_uri: 'http://localhost/'
Empty file.
Empty file removed config/packages/swiftmailer.yaml
Empty file.
Empty file.
11 changes: 0 additions & 11 deletions core/CVR/ServiceplatformenCvrService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Kontrolgruppen\CoreBundle\CVR;

use ItkDev\Serviceplatformen\Service\Exception\ServiceException;
use ItkDev\Serviceplatformen\Service\OnlineService;

/**
* Class ServiceplatformenCvrService.
Expand All @@ -20,16 +19,6 @@ class ServiceplatformenCvrService extends AbstractCvrService implements CvrServi
{
private $service;

/**
* ServiceplatformenCvrService constructor.
*
* @param OnlineService $service
*/
public function __construct(/* OnlineService $service */)
{
// $this->service = $service;
}

/**
* {@inheritdoc}
*/
Expand Down
3 changes: 3 additions & 0 deletions core/Controller/BIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;

/**
* Class BusinessIntelligenceController.
Expand Down Expand Up @@ -102,6 +103,8 @@ public function download(BIExport $export, $_format)

/**
* @Route("/delete/{export}", name="delete", methods={"DELETE"})
*

Check failure on line 106 in core/Controller/BIController.php

View workflow job for this annotation

GitHub Actions / PHPCS

[PHPCS] core/Controller/BIController.php#L106

Whitespace found at end of line
Raw output
core/Controller/BIController.php:106:7: error: Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
* @IsGranted("ROLE_ADMIN")
*
* @param BIExport $export
* @param Manager $manager
Expand Down
45 changes: 2 additions & 43 deletions core/Controller/VisitationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,54 +59,12 @@ public function index(Request $request): Response
*/
public function search(Request $request): Response
{
// $visitation = new Visitation();
// try {
// $client = $clientManager->createClient($request->get('clientType') ?? '');
// } catch (\Exception $exception) {
// $this->addFlash('danger', $exception->getMessage());

// return $this->render('process/select-client-type.html.twig');
// }

// $visitation->setVisitationClient($client);
// $form = $this->createForm(VisitationType::class, $visitation);

// $form->handleRequest($request);
return $this->render(
'@KontrolgruppenCore/visitation/search.html.twig',
[
'client_type' => $request->get('clientType'),
// 'menuItems' => $this->menuService->getProcessMenu(
// $request->getPathInfo(),
// ),
// 'visitation' => $visitation,
// 'form' => $form->createView()
]
);
// if ($form->isSubmitted() && $form->isValid()) {
// // You can now redirect to your desired route
// return $this->render(
// '@KontrolgruppenCore/visitation/search.html.twig',
// [
// 'menuItems' => $this->menuService->getProcessMenu(
// $request->getPathInfo(),
// ),
// 'visitation' => $visitation,
// 'form' => $form->createView()
// ]
// );
// }

// return $this->render(
// '@KontrolgruppenCore/visitation/search.html.twig',
// [
// 'menuItems' => $this->menuService->getProcessMenu(
// $request->getPathInfo(),
// ),
// 'visitation' => $visitation,
// 'form' => $form->createView()
// ]
// );
}

/**
Expand Down Expand Up @@ -252,6 +210,8 @@ public function searchProcessesByCvr(Request $request): Response
}

/**
* Logs a visitation
*

Check failure on line 214 in core/Controller/VisitationController.php

View workflow job for this annotation

GitHub Actions / PHPCS

[PHPCS] core/Controller/VisitationController.php#L214

Whitespace found at end of line
Raw output
core/Controller/VisitationController.php:214:7: error: Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
* @Route("/visitation-log", name="log_visitation", methods={"POST"})
*
* @param Request $request
Expand Down Expand Up @@ -282,7 +242,6 @@ public function visitationLog(Request $request): Response
$this->em->persist($visitationLog);
$this->em->flush();

// return 200
return new Response(Response::HTTP_OK);
}
}
1 change: 1 addition & 0 deletions core/Resources/translations/messages.da.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ visitation:
company_type: Virksomhedsform
status: Status
relations: Relationer
user_not_found: Bruger ikke fundet
data:
empty: Ingen data
search:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
<tbody class="bg-light">
{# Loop through the data for this table if applicable. Otherwise, statically add rows. #}
<tr>
{# <td>{{ data.Adresseoplysninger[0].SimpelAdresse.adresselinie1 }}</td> #}
{# <td>{{ data.adresse_historik.post_nr_og_by }}</td>
<td>{{ data.adresse_historik.kommune }}</td>
<td>{{ data.adresse_historik.land }}</td>
<td>{{ data.adresse_historik.dato_fra_til }}</td> #}
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
<tbody class="bg-light">
{# Loop through the data for this table if applicable. Otherwise, statically add rows. #}
<tr>
{# <td>{{ data.Adresseoplysninger[0].SimpelAdresse.adresselinie1 }}</td> #}
{# <td>{{ data.adresse_historik.post_nr_og_by }}</td>
<td>{{ data.adresse_historik.kommune }}</td>
<td>{{ data.adresse_historik.land }}</td>
<td>{{ data.adresse_historik.dato_fra_til }}</td> #}
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
<tbody class="bg-light">
{# Loop through the data for this table if applicable. Otherwise, statically add rows. #}
<tr>
{# <td>{{ data.Adresseoplysninger[0].SimpelAdresse.adresselinie1 }}</td> #}
{# <td>{{ data.adresse_historik.post_nr_og_by }}</td>
<td>{{ data.adresse_historik.kommune }}</td>
<td>{{ data.adresse_historik.land }}</td>
<td>{{ data.adresse_historik.dato_fra_til }}</td> #}
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
<tbody class="bg-light">
{# Loop through the data for this table if applicable. Otherwise, statically add rows. #}
<tr>
{# <td>{{ data.Adresseoplysninger[0].SimpelAdresse.adresselinie1 }}</td> #}
{# <td>{{ data.adresse_historik.post_nr_og_by }}</td>
<td>{{ data.adresse_historik.kommune }}</td>
<td>{{ data.adresse_historik.land }}</td>
<td>{{ data.adresse_historik.dato_fra_til }}</td> #}
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
<tbody class="bg-light">
{# Loop through the data for this table if applicable. Otherwise, statically add rows. #}
<tr>
{# <td>{{ data.Adresseoplysninger[0].SimpelAdresse.adresselinie1 }}</td> #}
{# <td>{{ data.adresse_historik.post_nr_og_by }}</td>
<td>{{ data.adresse_historik.kommune }}</td>
<td>{{ data.adresse_historik.land }}</td>
<td>{{ data.adresse_historik.dato_fra_til }}</td> #}
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion core/Resources/views/visitation/cpr_error.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{% block content %}
<div>
TELL THE USER CPR IS NOT FOUND
{{ visitation.user_not_found|trans }}
</div>
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ networks:

services:
phpfpm:
image: itkdev/php:8.2.9-fpm:alpine
image: itkdev/php:8.2-fpm:alpine
restart: unless-stopped
networks:
- app
Expand Down

0 comments on commit fa97e7d

Please sign in to comment.