@@ -41,8 +41,8 @@ |
||
41 | 41 | $fileId = new \MongoId($file->id); |
42 | 42 | $dm = $eventArgs->getDocumentManager(); |
43 | 43 | $dm->createQueryBuilder('Cv\Entity\Cv') |
44 | - ->update()->multiple(true) |
|
45 | - ->field('attachments')->equals($fileId)->pull($fileId) |
|
46 | - ->getQuery()->execute(); |
|
44 | + ->update()->multiple(true) |
|
45 | + ->field('attachments')->equals($fileId)->pull($fileId) |
|
46 | + ->getQuery()->execute(); |
|
47 | 47 | } |
48 | 48 | } |
@@ -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 | $routeMatch = $e->getRouteMatch(); |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | $model->setTemplate($this->getExceptionTemplate()); |
103 | 103 | $e->setResult($model); |
104 | 104 | |
105 | - // $statusCode = $response->getStatusCode(); |
|
106 | - // if ($statusCode === 200) { |
|
105 | + // $statusCode = $response->getStatusCode(); |
|
106 | + // if ($statusCode === 200) { |
|
107 | 107 | $response->setStatusCode(Response::STATUS_CODE_403); |
108 | - // } |
|
108 | + // } |
|
109 | 109 | } |
110 | 110 | } |
@@ -86,7 +86,7 @@ |
||
86 | 86 | )); // join |
87 | 87 | |
88 | 88 | $query->addField('locations:[subquery]') |
89 | - ->addField('distance:min(geodist(points,'.$coordinate.'))'); |
|
89 | + ->addField('distance:min(geodist(points,'.$coordinate.'))'); |
|
90 | 90 | |
91 | 91 | } |
92 | 92 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | $queryBuilder/*->expr()*/->addOr($queryBuilder->expr()->field('permissions.view')->equals($this->user->getId())) |
51 | - ->addOr($queryBuilder->expr()->field('status.name')->equals(Status::PUBLIC_TO_ALL)) |
|
51 | + ->addOr($queryBuilder->expr()->field('status.name')->equals(Status::PUBLIC_TO_ALL)) |
|
52 | 52 | ; |
53 | 53 | //$q = $queryBuilder->getQuery()->debug(); |
54 | 54 |
@@ -10,10 +10,10 @@ |
||
10 | 10 | use Core\Entity\IdentifiableEntityInterface; |
11 | 11 | |
12 | 12 | interface CvInterface extends EntityInterface, |
13 | - IdentifiableEntityInterface, |
|
14 | - DraftableEntityInterface, |
|
15 | - PermissionsAwareInterface, |
|
16 | - ModificationDateAwareEntityInterface |
|
13 | + IdentifiableEntityInterface, |
|
14 | + DraftableEntityInterface, |
|
15 | + PermissionsAwareInterface, |
|
16 | + ModificationDateAwareEntityInterface |
|
17 | 17 | { |
18 | 18 | |
19 | 19 | /** |