Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
Repository/DoctrineMongoODM/Event/AbstractUpdatePermissionsSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $repository     = $dm->getRepository($repositoryName);
99 99
         
100 100
         $criteria = array(
101
-            'permissions.assigned.' . $resourceId => array(
101
+            'permissions.assigned.'.$resourceId => array(
102 102
                 '$exists' => true
103 103
             )
104 104
         );
Please login to merge, or discard this patch.
Core/src/Repository/DoctrineMongoODM/Event/PreUpdateDocumentsSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
         $document->preUpdate($prePersist);
43 43
         
44 44
         if (!$prePersist) {
45
-            $dm         = $eventArgs->getDocumentManager();
46
-            $uow       = $dm->getUnitOfWork();
45
+            $dm = $eventArgs->getDocumentManager();
46
+            $uow = $dm->getUnitOfWork();
47 47
             $uow->recomputeSingleDocumentChangeSet($dm->getClassMetadata(get_class($document)), $document);
48 48
         }
49 49
     }
Please login to merge, or discard this patch.
module/Core/src/Repository/AbstractRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         return $this;
121 121
     }
122 122
 
123
-    public function remove($entity, $flush=false)
123
+    public function remove($entity, $flush = false)
124 124
     {
125 125
         $this->checkEntityType($entity);
126 126
         $this->dm->remove($entity);
Please login to merge, or discard this patch.
module/Core/src/Repository/Filter/PropertyToKeywords.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             $entity = $value;
24 24
             $value = array();
25 25
             foreach ($entity->getSearchableProperties() as $name) {
26
-                $result = $entity->{'get' .$name}();
26
+                $result = $entity->{'get'.$name}();
27 27
                 if (is_array($result)) {
28 28
                     $value = array_merge($value, $result);
29 29
                 } else {
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
         $innerPattern = StringUtils::hasPcreUnicodeSupport()
49 49
                       ? '[^\p{L}]'
50 50
                       : '[^a-z0-9ßäöü ]';
51
-        $pattern      = '~' . $innerPattern . '~isu';
52
-        $stripPattern = '~^' . $innerPattern . '+|' . $innerPattern . '+$~isu';
51
+        $pattern      = '~'.$innerPattern.'~isu';
52
+        $stripPattern = '~^'.$innerPattern.'+|'.$innerPattern.'+$~isu';
53 53
         $parts     = array();
54 54
         $textParts = explode(' ', $string);
55 55
         foreach ($textParts as $part) {
Please login to merge, or discard this patch.
module/Core/src/Repository/Filter/AbstractPaginationQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         
44 44
         if ($this->repositoryName) {
45 45
             $nameParts = explode('/', $this->repositoryName);
46
-            $entityClass = $nameParts[0] . '\\Entity\\' . $nameParts[1];
46
+            $entityClass = $nameParts[0].'\\Entity\\'.$nameParts[1];
47 47
             $queryBuilder->find($entityClass);
48 48
         }
49 49
         return $this->createQuery($value, $queryBuilder);
Please login to merge, or discard this patch.
module/Core/src/Form/Element/DateRange.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,9 +97,9 @@
 block discarded – undo
97 97
     {
98 98
         $name = $this->getName();
99 99
         
100
-        $this->startDateElement->setName($name . '[startDate]');
101
-        $this->endDateElement->setName($name . '[endDate]');
102
-        $this->currentCheckbox->setName($name . '[current]');
100
+        $this->startDateElement->setName($name.'[startDate]');
101
+        $this->endDateElement->setName($name.'[endDate]');
102
+        $this->currentCheckbox->setName($name.'[current]');
103 103
     }
104 104
     
105 105
     public function __clone()
Please login to merge, or discard this patch.
module/Core/src/Form/Element/FileUpload.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@
 block discarded – undo
158 158
         if ($mimetypes) {
159 159
             $mimeTypeValidator = new MimeType();
160 160
             $mimeTypeValidator->setMagicFile(false)
161
-                              ->disableMagicFile(true)
162
-                              ->setMimeType($this->getAllowedTypes());
161
+                                ->disableMagicFile(true)
162
+                                ->setMimeType($this->getAllowedTypes());
163 163
 
164 164
             $validators[] = $mimeTypeValidator;
165 165
         }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
     public function prepareElement(FormInterface $form)
146 146
     {
147
-        $form->setAttribute('class', ($this->isMultiple() ? 'multi' : 'single') . '-file-upload');
147
+        $form->setAttribute('class', ($this->isMultiple() ? 'multi' : 'single').'-file-upload');
148 148
         $form->setAttribute('data-is-empty', null === $this->getValue());
149 149
         parent::prepareElement($form);
150 150
     }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $entityName = $this->getName();
248 248
 
249 249
         try {
250
-            $fileEntity = $object->{"get" . $entityName}();
250
+            $fileEntity = $object->{"get".$entityName}();
251 251
         } catch (\OutOfBoundsException $e) {
252 252
             return null;
253 253
         }
Please login to merge, or discard this patch.
module/Core/src/Form/Element/Phone.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
     protected $validator;
15 15
 
16 16
     /**
17
-    * Get a validator if none has been set.
18
-    * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265
19
-    * @return RegexValidator
20
-    */
17
+     * Get a validator if none has been set.
18
+     * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265
19
+     * @return RegexValidator
20
+     */
21 21
     public function getValidator()
22 22
     {
23 23
         if (null === $this->validator) {
Please login to merge, or discard this patch.
module/Core/src/Form/CollectionContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,12 +80,12 @@
 block discarded – undo
80 80
             $collection[] = $this->newEntry;
81 81
             $form = $this->buildForm($key, $this->newEntry);
82 82
             $eventManager = $form->getEventManager();
83
-            $eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) {
83
+            $eventManager->attach(CoreForm::EVENT_IS_VALID, function(Event $event) use ($collection) {
84 84
                 if (!$event->getParam('isValid')) {
85 85
                     $collection->removeElement($this->newEntry);
86 86
                 }
87 87
             });
88
-            $eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) {
88
+            $eventManager->attach(CoreForm::EVENT_PREPARE, function(Event $event) use ($collection) {
89 89
                 $this->setupForm($event->getTarget(), $collection->indexOf($this->newEntry));
90 90
             });
91 91
             
Please login to merge, or discard this patch.