Completed
Push — develop ( da1ae8...af9759 )
by Mathias
21s queued 14s
created
module/Applications/src/Applications/Entity/Application.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -404,7 +404,7 @@
 block discarded – undo
404 404
     /**
405 405
      * {@inheritDoc}
406 406
      * @see \Applications\Entity\ApplicationInterface::getSummary()
407
-     * @return Application
407
+     * @return string
408 408
      */
409 409
     public function getSummary()
410 410
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@
 block discarded – undo
446 446
     public function getCv()
447 447
     {
448 448
         if (is_null($this->cv)) {
449
-            $this->cv= new Cv();
449
+            $this->cv = new Cv();
450 450
         }
451 451
         return $this->cv;
452 452
     }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Options/ModuleOptions.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * Gets the the maximum number of allowed attachments
123 123
      *
124
-     * @return string
124
+     * @return integer
125 125
      */
126 126
     public function getAttachmentsCount()
127 127
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * Gets the the maximum size of contact images in bytes
144 144
      *
145
-     * @return string
145
+     * @return integer
146 146
      */
147 147
     public function getContactImageMaxSize()
148 148
     {
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
      * @var array $attachmentsMimeType
37 37
      */
38 38
     protected $attachmentsMimeType = array(
39
-    	'image',
40
-	    'application/pdf',
41
-	    'applications/pdf',
39
+        'image',
40
+        'application/pdf',
41
+        'applications/pdf',
42 42
         'application/x-pdf',
43 43
         'application/acrobat',
44 44
         'applications/vnd.pdf',
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     protected $workflow = [
86 86
 
87
-      'recruiter',
87
+        'recruiter',
88 88
     ];
89 89
     
90 90
     /**
@@ -222,13 +222,13 @@  discard block
 block discarded – undo
222 222
     }
223 223
     
224 224
     /**
225
-	 * @return boolean
226
-	 * @since 0.27
227
-	 */
228
-	public function getAllowSubsequentAttachmentUpload()
229
-	{
230
-		return $this->allowSubsequentAttachmentUpload;
231
-	}
225
+     * @return boolean
226
+     * @since 0.27
227
+     */
228
+    public function getAllowSubsequentAttachmentUpload()
229
+    {
230
+        return $this->allowSubsequentAttachmentUpload;
231
+    }
232 232
 
233 233
     /**
234 234
      * @param boolean $allowSubsequentAttachmentUpload
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
      */
238 238
     public function setAllowSubsequentAttachmentUpload($allowSubsequentAttachmentUpload)
239 239
     {
240
-        $this->allowSubsequentAttachmentUpload = (bool)$allowSubsequentAttachmentUpload;
240
+        $this->allowSubsequentAttachmentUpload = (bool) $allowSubsequentAttachmentUpload;
241 241
         
242 242
         return $this;
243 243
     }
Please login to merge, or discard this patch.
src/Applications/Repository/Event/DeleteRemovedAttachmentsSubscriber.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
     /**
36 36
      * Updates fiile permissions on Flush
37 37
      *
38
-     * @param OnFlushEventArgs $eventArgs
39
-     * @return boolean
38
+     * @param LifecycleEventArgs $eventArgs
39
+     * @return boolean|null
40 40
      */
41 41
     public function postRemoveEntity(LifecycleEventArgs $eventArgs)
42 42
     {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,14 +51,14 @@
 block discarded – undo
51 51
         $fileId = new \MongoId($file->id);
52 52
         
53 53
         $dm->createQueryBuilder('Applications\Entity\Application')
54
-           ->update()->multiple(true)
55
-           ->field('attachments')->equals($fileId)->pull($fileId)
56
-           ->getQuery()->execute();
54
+            ->update()->multiple(true)
55
+            ->field('attachments')->equals($fileId)->pull($fileId)
56
+            ->getQuery()->execute();
57 57
         
58 58
         
59 59
         $dm->createQueryBuilder('Applications\Entity\Application')
60
-           ->update()->multiple(true)
61
-           ->field('contact.image')->equals($fileId)->set(null)
62
-           ->getQuery()->execute();
60
+            ->update()->multiple(true)
61
+            ->field('contact.image')->equals($fileId)->set(null)
62
+            ->getQuery()->execute();
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
src/Applications/Repository/Event/UpdateFilesPermissionsSubscriber.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      * Updates fiile permissions on Flush
36 36
      *
37 37
      * @param OnFlushEventArgs $eventArgs
38
-     * @return boolean
38
+     * @return boolean|null
39 39
      */
40 40
     public function onFlush(OnFlushEventArgs $eventArgs)
41 41
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $dm  = $eventArgs->getDocumentManager();
43 43
         $uow = $dm->getUnitOfWork();
44 44
         
45
-        $filter = function ($element) {
45
+        $filter = function($element) {
46 46
             return $element instanceof ApplicationInterface
47 47
                    && $element->getPermissions()->hasChanged();
48 48
         };
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
                
57 57
                 foreach ($document->getAttachments() as $attachment) {  /* @var \Applications\Entity\Attachment $attachment */
58 58
                     $attachment->getPermissions()
59
-                               ->clear()
60
-                               ->inherit($permissions);
59
+                                ->clear()
60
+                                ->inherit($permissions);
61 61
                     if ($isUpdate) {
62 62
                         $uow->computeChangeSet(
63 63
                             $dm->getClassMetadata(get_class($attachment)),
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
                 
69 69
                 if ($image = $document->getContact()->getImage()) {
70 70
                     $image->getPermissions()
71
-                          ->clear()
72
-                          ->inherit($permissions);
71
+                            ->clear()
72
+                            ->inherit($permissions);
73 73
                     if ($isUpdate) {
74 74
                         $uow->computeChangeSet(
75 75
                             $dm->getClassMetadata(get_class($image)),
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/GroupUsersCollection.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     
41 41
     /**
42 42
      * {@inheritDoc}
43
-     * @return GroupsUsersCollection
43
+     * @return GroupUsersCollection
44 44
      * @see \Core\Form\ViewPartialProviderInterface::setViewPartial()
45 45
      */
46 46
     public function setViewPartial($partial)
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,9 +98,9 @@
 block discarded – undo
98 98
         );
99 99
         
100 100
         $this->setCount(0)
101
-             ->setAllowRemove(true)
102
-             ->setAllowAdd(true)
103
-             ->setShouldCreateTemplate(true);
101
+                ->setAllowRemove(true)
102
+                ->setAllowAdd(true)
103
+                ->setShouldCreateTemplate(true);
104 104
     }
105 105
     
106 106
     /**
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/UserInfoContainer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     
33 33
     /**
34 34
      * {@inheritDoc}
35
-     * @return UserInfoContainer
35
+     * @return string
36 36
      * @see \Core\Form\ViewPartialProviderInterface::getViewPartial()
37 37
      */
38 38
     public function getViewPartial()
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             'info' => array(
63 63
                 'type' => 'Auth/UserInfo',
64 64
                 'property' => true,
65
-	            'use_post_array' => true
65
+                'use_post_array' => true
66 66
             ),
67 67
             'image' => array(
68 68
                 'type' => 'Auth/UserImage',
Please login to merge, or discard this patch.
module/Auth/src/Auth/Options/ModuleOptions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
     /**
122 122
      * Sets the From: of the mail header
123 123
      *
124
-     * @param $fromName
124
+     * @param string $fromName
125 125
      * @return $this
126 126
      */
127 127
     public function setFromName($fromName)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      *
62 62
      * @var array()
63 63
      */
64
-    protected $enableLogins = ['facebook','xing','linkedin','google','github'];
64
+    protected $enableLogins = ['facebook', 'xing', 'linkedin', 'google', 'github'];
65 65
 
66 66
     /**
67 67
      * Enable Registration
Please login to merge, or discard this patch.
module/Auth/src/Auth/Service/Register.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
-     * @param $user
116
+     * @param \Core\Entity\EntityInterface $user
117 117
      * @return $this
118 118
      */
119 119
     protected function setUser($user)
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     /**
206 206
      * Email-Address
207 207
      * @param $email string
208
-     * @return mixed
208
+     * @return Register
209 209
      */
210 210
     protected function setEmail($email)
211 211
     {
Please login to merge, or discard this patch.
module/Auth/src/Auth/View/Helper/BuildReferer.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
     
24 24
     protected $filter;
25 25
     
26
+    /**
27
+     * @param StripQueryParamsFilter $filter
28
+     */
26 29
     public function setFilter($filter)
27 30
     {
28 31
         $this->filter = $filter;
Please login to merge, or discard this 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
         
51 51
         if (null === $uri && isset($_SERVER['REQUEST_URI'])) {
52
-            $uri = preg_replace('~^' . $this->getView()->basePath() . '~', '', $_SERVER['REQUEST_URI']);
52
+            $uri = preg_replace('~^'.$this->getView()->basePath().'~', '', $_SERVER['REQUEST_URI']);
53 53
         }
54 54
         
55 55
         if (null === $stripParams) {
Please login to merge, or discard this patch.