Completed
Push — develop ( 06c328...a78ff6 )
by Carsten
17:00 queued 08:38
created
module/Core/src/Core/Form/BaseForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function init()
37 37
     {
38 38
         if (empty($this->baseFieldset)) {
39
-            throw new \InvalidArgumentException('For the Form ' . get_class($this) . ' there is no Basefieldset');
39
+            throw new \InvalidArgumentException('For the Form '.get_class($this).' there is no Basefieldset');
40 40
         }
41 41
         $this->addBaseFieldset();
42 42
         $this->addButtonsFieldset();
Please login to merge, or discard this patch.
module/Core/src/Core/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/Core/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/Core/Form/SummaryFormButtonsFieldset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,10 +103,10 @@
 block discarded – undo
103 103
      */
104 104
     public function setFormId($formId)
105 105
     {
106
-        $this->formId = $formId . '-';
106
+        $this->formId = $formId.'-';
107 107
        
108 108
         foreach ($this as $button) {
109
-            $button->setAttribute('id', $this->formId . $button->getAttribute('id'));
109
+            $button->setAttribute('id', $this->formId.$button->getAttribute('id'));
110 110
         }
111 111
         return $this;
112 112
     }
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/DoctrineMongoODM/Event/EventArgs.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function get($key)
23 23
     {
24 24
         if (!isset($this->values[$key])) {
25
-            throw new \OutOfBoundsException('Invalid key "' . $key . '"');
25
+            throw new \OutOfBoundsException('Invalid key "'.$key.'"');
26 26
         }
27 27
         return $this->values[$key];
28 28
     }
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
     
46 46
     public function __call($method, $params)
47 47
     {
48
-        $type   = substr($method, 0, 3);
48
+        $type = substr($method, 0, 3);
49 49
         
50 50
         if ('get' == $type || 'set' == $type) {
51
-            $filter = function ($match) {
52
-                return '_' . strtolower($match[0]);
51
+            $filter = function($match) {
52
+                return '_'.strtolower($match[0]);
53 53
             };
54 54
             $key = lcfirst(substr($method, 3));
55 55
             $key = preg_replace_callback('~([A-Z])~', $filter, $key);
@@ -57,6 +57,6 @@  discard block
 block discarded – undo
57 57
             return 'get' == $type ? $this->get($key) : $this->set($key, (isset($params[0]) ? $params[0] : null));
58 58
         }
59 59
         
60
-        throw new \BadMethodCallException('Unknown method: ' . $method);
60
+        throw new \BadMethodCallException('Unknown method: '.$method);
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
Core/src/Core/Repository/DoctrineMongoODM/Types/TimezoneAwareDate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function closureToDatabase()
72 72
     {
73 73
         return '
74
-            /* CODE FROM: ' . __METHOD__ . ' */
74
+            /* CODE FROM: ' . __METHOD__.' */
75 75
             if (!$value instanceOf \DateTime) return null;
76 76
             $return = array(
77 77
                 "date" => new \MongoDate($value->getTimestamp()), 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function closureToPhp()
114 114
     {
115 115
         return '
116
-            /* CODE FROM: ' . __METHOD__ . ' */
116
+            /* CODE FROM: ' . __METHOD__.' */
117 117
             if (!is_array($value) 
118 118
                 || !isset($value["date"]) 
119 119
                 || !$value["date"] instanceOf \MongoDate
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/AjaxRenderListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             }
78 78
             $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver');
79 79
 
80
-            $template = $viewModel->getTemplate() . '.ajax';
80
+            $template = $viewModel->getTemplate().'.ajax';
81 81
             if ($resolver->resolve($template)) {
82 82
                 $viewModel->setTemplate($template);
83 83
             } else {
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/EntitySnapshot.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                 $target->__invoke($data);
150 150
                 $className = get_class($this->entity);
151 151
                 // @TODO, have to be abstract
152
-                $snapShotMetaClassName = '\\' . $className . 'SnapshotMeta';
152
+                $snapShotMetaClassName = '\\'.$className.'SnapshotMeta';
153 153
                 $meta = new $snapShotMetaClassName;
154 154
                 $meta->setEntity($target);
155 155
                 $meta->setSourceId($this->entity->id);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             if (empty($dataHead) || empty($targetClass)) {
178 178
                 return null;
179 179
             }
180
-            $repositorySnapshotMeta = $this->getRepositories()->getRepository($targetClass . "Meta");
180
+            $repositorySnapshotMeta = $this->getRepositories()->getRepository($targetClass."Meta");
181 181
             $snapshot = $repositorySnapshotMeta->findSnapshot($this->entity);
182 182
             // an snapshot has to be so simple that there is no need for a special hydrator
183 183
             $hydrator = new EntityHydrator();
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
             // the snapshotgenerator is a service defined by the name of the entity
248 248
             // this is the highest means, all subsequent means just add what is not set
249 249
             $className = get_class($this->entity);
250
-            if ($serviceLocator->has('snapshotgenerator' . $className)) {
251
-                $generator = $this->serviceLocator->get('snapshotgenerator' . $className);
250
+            if ($serviceLocator->has('snapshotgenerator'.$className)) {
251
+                $generator = $this->serviceLocator->get('snapshotgenerator'.$className);
252 252
                 if (is_array($generator)) {
253 253
                     $this->options = ArrayUtils::merge($generator, $this->options);
254 254
                     $generator = null;
@@ -348,13 +348,13 @@  discard block
 block discarded – undo
348 348
                         }
349 349
                     } else {
350 350
                         if ($array1[$key] != $array2[$key]) {
351
-                            $result[$key] = array( $array1[$key], $array2[$key]);
351
+                            $result[$key] = array($array1[$key], $array2[$key]);
352 352
                         }
353 353
                     }
354 354
                     if (!empty($subResult)) {
355 355
                         foreach ($subResult as $subKey => $subValue) {
356 356
                             if (!empty($subKey) && is_string($subKey)) {
357
-                                $result[$key . '.' . $subKey] = $subValue;
357
+                                $result[$key.'.'.$subKey] = $subValue;
358 358
                             }
359 359
                         }
360 360
                     }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     protected $generator;
51 51
 
52 52
     /**
53
-     * @param $serviceLocator
53
+     * @param \Interop\Container\ContainerInterface $serviceLocator
54 54
      * @return $this
55 55
      */
56 56
     public function setServiceLocator($serviceLocator)
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-     * @return mixed
81
+     * @return RepositoryInterface
82 82
      */
83 83
     public function getRepositories()
84 84
     {
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/ContentController.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
     public function indexAction()
29 29
     {
30 30
         $view = $this->params('view');
31
-        $view = 'content/' . $view;
31
+        $view = 'content/'.$view;
32 32
 
33 33
         $viewModel = new ViewModel();
34 34
         $viewModel->setTemplate($view);
Please login to merge, or discard this patch.