@@ -22,8 +22,8 @@ |
||
22 | 22 | public function init() |
23 | 23 | { |
24 | 24 | $this->setName('base'); |
25 | - //->setLabel( /* @translate */ 'General'); |
|
26 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
25 | + //->setLabel( /* @translate */ 'General'); |
|
26 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
27 | 27 | |
28 | 28 | |
29 | 29 | $this->add([ |
@@ -105,7 +105,7 @@ |
||
105 | 105 | 'link' => $this->router->assemble( |
106 | 106 | ['id' => $this->application->getId()], |
107 | 107 | ['name'=>'lang/applications/detail', 'force_canonical'=>true] |
108 | - ) . '?login=' . $this->user->getLogin(), |
|
108 | + ) . '?login=' . $this->user->getLogin(), |
|
109 | 109 | ]; |
110 | 110 | |
111 | 111 | $this->setTo($this->user->getInfo()->getEmail(), $this->user->getInfo()->getDisplayName(false)); |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | if ($exception instanceof UnauthorizedImageAccessException) { |
58 | 58 | $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png'; |
59 | 59 | $response->setStatusCode(Response::STATUS_CODE_403) |
60 | - ->setContent(file_get_contents($image)) |
|
61 | - ->getHeaders() |
|
62 | - ->addHeaderLine('Content-Type', 'image/png'); |
|
60 | + ->setContent(file_get_contents($image)) |
|
61 | + ->getHeaders() |
|
62 | + ->addHeaderLine('Content-Type', 'image/png'); |
|
63 | 63 | $e->stopPropagation(); |
64 | 64 | $response->sendHeaders(); |
65 | 65 | //echo file_get_contents($image); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $application = $e->getApplication(); |
73 | - $auth = $application->getServiceManager()->get('AuthenticationService'); |
|
73 | + $auth = $application->getServiceManager()->get('AuthenticationService'); |
|
74 | 74 | |
75 | 75 | if (!$auth->hasIdentity()) { |
76 | 76 | $request = $e->getRequest(); |
@@ -112,9 +112,9 @@ discard block |
||
112 | 112 | $model->setTemplate($this->getExceptionTemplate()); |
113 | 113 | $e->setResult($model); |
114 | 114 | |
115 | - // $statusCode = $response->getStatusCode(); |
|
116 | - // if ($statusCode === 200) { |
|
115 | + // $statusCode = $response->getStatusCode(); |
|
116 | + // if ($statusCode === 200) { |
|
117 | 117 | $response->setStatusCode(Response::STATUS_CODE_403); |
118 | - // } |
|
118 | + // } |
|
119 | 119 | } |
120 | 120 | } |
@@ -64,8 +64,8 @@ |
||
64 | 64 | ); |
65 | 65 | |
66 | 66 | return '<script type="application/ld+json">' |
67 | - . $jsonLdProvider->toJsonLd() |
|
68 | - . '</script>'; |
|
67 | + . $jsonLdProvider->toJsonLd() |
|
68 | + . '</script>'; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $userChanged = isset($changeset['user']) && $changeset['user'][0] !== $changeset['user'][1]; |
51 | 51 | $managersChanged = |
52 | 52 | //!$document instanceof JobSnapshot |
53 | - isset($changeset['metaData']) |
|
53 | + isset($changeset['metaData']) |
|
54 | 54 | && (isset($changeset['metaData'][1]['organizations:managers']) |
55 | 55 | || isset($changeset['metaData'][0]['organizations:managers'])) |
56 | 56 | ; |