Completed
Push — develop ( fd8298...e653e2 )
by Carsten
14s
created
module/Auth/src/Auth/Listener/UnauthorizedAccessListener.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
          * Return an image, if an image was requested.
56 56
          */
57 57
         if ($exception instanceof UnauthorizedImageAccessException) {
58
-            $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png';
58
+            $image = __DIR__.'/../../../../../public/images/unauthorized-access.png';
59 59
             $response->setStatusCode(Response::STATUS_CODE_403)
60 60
                      ->setContent(file_get_contents($image))
61 61
                      ->getHeaders()
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $routeMatch->setParam('action', 'index');
79 79
             $query = $e->getRequest()->getQuery();
80 80
             $ref = $e->getRequest()->getRequestUri();
81
-            $ref = preg_replace('~^' . preg_quote($e->getRouter()->getBaseUrl()) . '~', '', $ref);
81
+            $ref = preg_replace('~^'.preg_quote($e->getRouter()->getBaseUrl()).'~', '', $ref);
82 82
             $query->set('ref', $ref);
83 83
             $query->set('req', 1);
84 84
             $response->setStatusCode(Response::STATUS_CODE_401);
Please login to merge, or discard this patch.
module/Cv/src/Cv/Repository/Cv.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * Look for an drafted Document of a given user
23 23
      *
24 24
      * @param $user
25
-     * @return CvEntity|null
25
+     * @return \MongoCursor
26 26
      */
27 27
     public function findDraft($user)
28 28
     {
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/CvInterface.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AbstractStatusEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $name = $this->default;
83 83
         }
84 84
 
85
-        if (!isset(static::$orderMap[ $name ])) {
85
+        if (!isset(static::$orderMap[$name])) {
86 86
             throw new \InvalidArgumentException(sprintf(
87 87
                 'Unknown status name "%s" for "%s"',
88 88
                 $name, static::class
@@ -90,6 +90,6 @@  discard block
 block discarded – undo
90 90
         }
91 91
 
92 92
         $this->name  = $name;
93
-        $this->order = static::$orderMap[ $name ];
93
+        $this->order = static::$orderMap[$name];
94 94
     }
95 95
 }
96 96
\ No newline at end of file
Please login to merge, or discard this patch.
module/Cv/src/Cv/Repository/Event/UpdateFilesPermissionsSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 {
25 25
     protected $targetDocument = Cv::class;
26 26
 
27
-    protected $filesProperties = [ 'attachments' ];
27
+    protected $filesProperties = ['attachments'];
28 28
 
29 29
     /**
30 30
      *
Please login to merge, or discard this patch.
DoctrineMongoODM/Event/AbstractUpdateFilesPermissionsSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     public function getSubscribedEvents()
51 51
     {
52
-        return [ Events::onFlush ];
52
+        return [Events::onFlush];
53 53
     }
54 54
 
55 55
     /**
Please login to merge, or discard this patch.
module/Applications/src/Applications/Entity/History.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected $message;
43 43
     
44
+    /**
45
+     * @param StatusInterface|null $status
46
+     */
44 47
     public function __construct($status, $message = '[System]')
45 48
     {
46 49
         if (!$status instanceof StatusInterface) {
@@ -116,7 +119,7 @@  discard block
 block discarded – undo
116 119
     /**
117 120
      * Sets the history message
118 121
      *
119
-     * @param $message
122
+     * @param string $message
120 123
      *
121 124
      * @return $this
122 125
      */
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/AbstractEventsHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * Set the View object
21 21
      *
22 22
      * @param  Renderer $view
23
-     * @return AbstractHelper
23
+     * @return AbstractEventsHelper
24 24
      */
25 25
     public function setView(Renderer $view)
26 26
     {
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/EducationFieldset.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     public function init()
25 25
     {
26 26
         $this->setName('education')
27
-             ->setHydrator(new EntityHydrator())
28
-             ->setObject(new EducationEntity());
27
+                ->setHydrator(new EntityHydrator())
28
+                ->setObject(new EducationEntity());
29 29
         
30 30
         $this->add(
31 31
             array(
Please login to merge, or discard this patch.