Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
Applications/src/Repository/Event/DeleteRemovedAttachmentsSubscriber.php 1 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.
Applications/src/Repository/Event/UpdateFilesPermissionsSubscriber.php 2 patches
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.
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.
module/Applications/src/Repository/Filter/PaginationQuery.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
          * and which are not in draft mode
92 92
          */
93 93
         $queryBuilder->field('permissions.view')->equals($userID)
94
-                     ->field('isDraft')->equals(false);
94
+                        ->field('isDraft')->equals(false);
95 95
 
96 96
         if (!isset($value['sort'])) {
97 97
             $value['sort'] = '-date';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @var String
25 25
      */
26
-    protected $repositoryName="Applications/Application";
26
+    protected $repositoryName = "Applications/Application";
27 27
     
28 28
     /**
29 29
      * Sortable fields
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $searchPatterns = array();
82 82
     
83 83
             foreach (explode(' ', $search) as $searchItem) {
84
-                $searchPatterns[] = new \MongoRegex('/^' . $searchItem . '/');
84
+                $searchPatterns[] = new \MongoRegex('/^'.$searchItem.'/');
85 85
             }
86 86
             $queryBuilder->field('keywords')->all($searchPatterns);
87 87
         }
Please login to merge, or discard this patch.
module/Applications/src/Repository/Filter/PaginationQueryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 {
29 29
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
30 30
     {
31
-        $auth  = $container->get('AuthenticationService');
31
+        $auth = $container->get('AuthenticationService');
32 32
         $filter = new PaginationQuery($auth);
33 33
         return $filter;
34 34
     }
Please login to merge, or discard this patch.
module/Applications/src/Repository/Subscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function findByUri($uri, $create = false)
27 27
     {
28
-        $subscriber = $this->findOneBy(array( "uri" => $uri ));
28
+        $subscriber = $this->findOneBy(array("uri" => $uri));
29 29
         if (!isset($subscriber) && $create) {
30 30
             $subscriber = $this->create();
31 31
             $subscriber->uri = $uri;
Please login to merge, or discard this patch.
module/Applications/src/Form/BaseFieldset.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function init()
35 35
     {
36 36
         $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator())
37
-             ->setName('base');
37
+                ->setName('base');
38 38
 
39 39
         $this->add(
40 40
             array(
Please login to merge, or discard this patch.
module/Applications/src/Form/ContactContainer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function init()
26 26
     {
27 27
         $this->setIsDisableCapable(false)
28
-             ->setIsDisableElementsCapable(false);
28
+                ->setIsDisableElementsCapable(false);
29 29
 
30 30
         $this->setForms(
31 31
             array(
Please login to merge, or discard this patch.
module/Applications/src/Form/Element/JobSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  */
23 23
 class JobSelect extends Select implements HeadscriptProviderInterface
24 24
 {
25
-    private $scripts = [ 'modules/Applications/js/form.job-select.js' ];
25
+    private $scripts = ['modules/Applications/js/form.job-select.js'];
26 26
 
27 27
     /**
28 28
      * Sets the array of script names.
Please login to merge, or discard this patch.
module/Applications/src/Form/CarbonCopyFieldset.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function init()
21 21
     {
22 22
         $this->setName('carboncopy')
23
-             ->setLabel('Options');
23
+                ->setLabel('Options');
24 24
 
25 25
         $this->add(
26 26
             array(
Please login to merge, or discard this patch.