Completed
Pull Request — develop (#434)
by Carsten
06:27
created
module/Core/src/Core/Form/View/Helper/FormFileUpload.php 1 patch
Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -113,11 +113,11 @@  discard block
 block discarded – undo
113 113
 
114 114
             return str_replace(
115 115
                 array('#abort',
116
-                      '__file-uri__',
117
-                      '__file-name__',
118
-                      '__file-size__',
119
-                      'fu-working',
120
-                      'fa-file-o'
116
+                        '__file-uri__',
117
+                        '__file-name__',
118
+                        '__file-size__',
119
+                        'fu-working',
120
+                        'fa-file-o'
121 121
                 ),
122 122
                 array("$uri?do=delete", $uri, $name, $size, '', $icon),
123 123
                 $template
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>'
142 142
             . $this->getNonEmptyNotice() . '</div>';
143 143
         $emptynotice    = '<div class="fu-empty-notice"'
144
-                          . ('' == trim($preview) ? '' : ' style="display: none;"') . '>
144
+                            . ('' == trim($preview) ? '' : ' style="display: none;"') . '>
145 145
                        ' . $this->getEmptyNotice() . '
146 146
                   </div>';
147 147
 
@@ -230,99 +230,99 @@  discard block
 block discarded – undo
230 230
     }
231 231
     
232 232
     /**
233
-	 * @param string $emptyNotice
234
-	 * @return FormFileUpload
235
-	 * @since 0.27
236
-	 */
237
-	public function setEmptyNotice($emptyNotice)
238
-	{
239
-		$this->emptyNotice = $emptyNotice;
233
+     * @param string $emptyNotice
234
+     * @return FormFileUpload
235
+     * @since 0.27
236
+     */
237
+    public function setEmptyNotice($emptyNotice)
238
+    {
239
+        $this->emptyNotice = $emptyNotice;
240 240
 		
241
-		return $this;
242
-	}
241
+        return $this;
242
+    }
243 243
     
244 244
     /**
245
-	 * @return string
246
-	 * @since 0.27
247
-	 */
248
-	protected function getEmptyNotice()
249
-	{
250
-	    if (!isset($this->emptyNotice))
251
-	    {
252
-	        $this->emptyNotice = '
245
+     * @return string
246
+     * @since 0.27
247
+     */
248
+    protected function getEmptyNotice()
249
+    {
250
+        if (!isset($this->emptyNotice))
251
+        {
252
+            $this->emptyNotice = '
253 253
 	            <div class="pull-left">
254 254
                     <span class="yk-icon fa-files-o fa-5x"></span>
255 255
                 </div>' . $this->getDefaultNotice();
256
-	    }
256
+        }
257 257
 	    
258
-		return $this->emptyNotice;
259
-	}
258
+        return $this->emptyNotice;
259
+    }
260 260
 
261 261
     /**
262
-	 * @param string $nonEmptyNotice
263
-	 * @return FormFileUpload
264
-	 * @since 0.27
265
-	 */
266
-	public function setNonEmptyNotice($nonEmptyNotice)
267
-	{
268
-		$this->nonEmptyNotice = $nonEmptyNotice;
262
+     * @param string $nonEmptyNotice
263
+     * @return FormFileUpload
264
+     * @since 0.27
265
+     */
266
+    public function setNonEmptyNotice($nonEmptyNotice)
267
+    {
268
+        $this->nonEmptyNotice = $nonEmptyNotice;
269 269
 		
270
-		return $this;
271
-	}
270
+        return $this;
271
+    }
272 272
 
273 273
     /**
274
-	 * @return string
275
-	 * @since 0.27
276
-	 */
277
-	protected function getNonEmptyNotice()
278
-	{
279
-	    if (!isset($this->nonEmptyNotice))
280
-	    {
281
-	        $this->nonEmptyNotice = $this->getDefaultNotice();
282
-	    }
274
+     * @return string
275
+     * @since 0.27
276
+     */
277
+    protected function getNonEmptyNotice()
278
+    {
279
+        if (!isset($this->nonEmptyNotice))
280
+        {
281
+            $this->nonEmptyNotice = $this->getDefaultNotice();
282
+        }
283 283
 	    
284
-		return $this->nonEmptyNotice;
285
-	}
284
+        return $this->nonEmptyNotice;
285
+    }
286 286
 
287 287
     /**
288
-	 * @return string
289
-	 * @since 0.27
290
-	 */
291
-	protected function getDefaultNotice()
292
-	{
293
-		return '<small>' . $this->getTranslator()->translate('Click here to add files or use drag and drop.') . '</small>';
294
-	}
288
+     * @return string
289
+     * @since 0.27
290
+     */
291
+    protected function getDefaultNotice()
292
+    {
293
+        return '<small>' . $this->getTranslator()->translate('Click here to add files or use drag and drop.') . '</small>';
294
+    }
295 295
 	
296 296
     /**
297
-	 * @param boolean $allowRemove
298
-	 * @return FormFileUpload
299
-	 * @since 0.27
300
-	 */
301
-	public function setAllowRemove($allowRemove)
302
-	{
303
-		$this->allowRemove = (bool)$allowRemove;
297
+     * @param boolean $allowRemove
298
+     * @return FormFileUpload
299
+     * @since 0.27
300
+     */
301
+    public function setAllowRemove($allowRemove)
302
+    {
303
+        $this->allowRemove = (bool)$allowRemove;
304 304
 		
305
-		return $this;
306
-	}
305
+        return $this;
306
+    }
307 307
 	
308 308
     /**
309
-	 * @param boolean $allowClickableDropZone
310
-	 * @return FormFileUpload
311
-	 * @since 0.27
312
-	 */
313
-	public function setAllowClickableDropZone($allowClickableDropZone)
314
-	{
315
-		$this->allowClickableDropZone = (bool)$allowClickableDropZone;
309
+     * @param boolean $allowClickableDropZone
310
+     * @return FormFileUpload
311
+     * @since 0.27
312
+     */
313
+    public function setAllowClickableDropZone($allowClickableDropZone)
314
+    {
315
+        $this->allowClickableDropZone = (bool)$allowClickableDropZone;
316 316
 		
317
-		return $this;
318
-	}
317
+        return $this;
318
+    }
319 319
 	
320
-	/**
321
-	 * @since 0.27
322
-	 */
323
-	protected function setupAssets()
324
-	{
325
-	    /* @var $renderer \Zend\View\Renderer\PhpRenderer */
320
+    /**
321
+     * @since 0.27
322
+     */
323
+    protected function setupAssets()
324
+    {
325
+        /* @var $renderer \Zend\View\Renderer\PhpRenderer */
326 326
         /* @var $basepath \Zend\View\Helper\BasePath */
327 327
         $renderer = $this->getView();
328 328
         $basepath = $renderer->plugin('basepath');
@@ -331,5 +331,5 @@  discard block
 block discarded – undo
331 331
             ->appendFile($basepath('assets/blueimp-file-upload/js/jquery.iframe-transport.js'))
332 332
             ->appendFile($basepath('assets/blueimp-file-upload/js/jquery.fileupload.js'))
333 333
             ->appendFile($basepath($this->scriptFile));
334
-	}
334
+    }
335 335
 }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Options/JobboardSearchOptions.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
28 28
      *
29 29
      * @var array
30 30
      */
31
-   protected $fields=[
32
-       'q' => [
31
+    protected $fields=[
32
+        'q' => [
33 33
             'enabled' => true
34 34
         ],
35 35
         'l' => [
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/SnapshotTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         if (!is_callable($callback)) {
59 59
             throw new \BadMethodCallException(sprintf(
60 60
                 'Proxy error: Method "%s" does not exist in proxied "%s"',
61
-                 $method, get_class($entity)
61
+                    $method, get_class($entity)
62 62
             ));
63 63
         }
64 64
 
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AbstractLocation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                     ? [
70 70
                         'type' => $coords->getType(),
71 71
                         'coordinates' => $coords->getCoordinates(),
72
-                      ]
72
+                        ]
73 73
                     : null
74 74
 
75 75
         ];
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Form.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
  * @author Mathias Gelhausen <[email protected]>
25 25
  */
26 26
 class Form extends ZendForm implements DescriptionAwareFormInterface,
27
-                                       DisableElementsCapableInterface,
28
-                                       FormParentInterface
27
+                                        DisableElementsCapableInterface,
28
+                                        FormParentInterface
29 29
 {
30 30
     
31 31
     use EventManagerAwareTrait, HydratorStrategyAwareTrait;
Please login to merge, or discard this patch.
module/Geo/src/Geo/Service/Photon.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -63,16 +63,16 @@
 block discarded – undo
63 63
 
64 64
         foreach ($result as $key => $val) {
65 65
             $row=[
66
-                  'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''),
67
-                  'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''),
68
-                  'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''),
69
-                  'region' => (property_exists($val->properties, 'state') ? $val->properties->state : ''),
70
-                  'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''),
66
+                    'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''),
67
+                    'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''),
68
+                    'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''),
69
+                    'region' => (property_exists($val->properties, 'state') ? $val->properties->state : ''),
70
+                    'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''),
71 71
 
72
-                  'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''),
73
-                  'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''),
74
-                  //'id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : uniqid()),
75
-                  //'data' => json_encode($val),
72
+                    'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''),
73
+                    'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''),
74
+                    //'id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : uniqid()),
75
+                    //'data' => json_encode($val),
76 76
             ];
77 77
             if ($val->geometry) {
78 78
                 $row['coordinates'] = [
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Options/BaseFieldsetOptions.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @var array
34 34
      */
35
-   protected $fields=[
35
+    protected $fields=[
36 36
         self::TITLE => [
37 37
             'enabled' => true,
38 38
             'options' => [
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/SearchForm.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
         $content = $this->renderElements($form, $colMap, $buttonsSpan);
67 67
 
68 68
         return $this->openTag($form)
69
-             . '<div class="row" style="padding: 0 15px;">'
70
-             . $content . '</div>' . $this->closeTag();
69
+                . '<div class="row" style="padding: 0 15px;">'
70
+                . $content . '</div>' . $this->closeTag();
71 71
 
72 72
     }
73 73
 
@@ -109,15 +109,15 @@  discard block
 block discarded – undo
109 109
 
110 110
             if ($element->getName() == $form->getButtonElement()) {
111 111
                 $content.='<div class="input-group col-md-' . $cols . '">'
112
-                              . $formElement($element)
113
-                              . '<div class="input-group-btn search-form-buttons" style="width: 1px;">'
114
-                              . $this->renderButtons($form->getButtons()) . '</div>'
115
-                              . '</div>';
112
+                                . $formElement($element)
113
+                                . '<div class="input-group-btn search-form-buttons" style="width: 1px;">'
114
+                                . $this->renderButtons($form->getButtons()) . '</div>'
115
+                                . '</div>';
116 116
                 $buttonsRendered = true;
117 117
             } else {
118 118
                 $content .= '<div class="input-group col-md-' . $cols . '">'
119
-                          . $formElement($element)
120
-                          . '</div>';
119
+                            . $formElement($element)
120
+                            . '</div>';
121 121
             }
122 122
 
123 123
             $i += 1;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                 $buttonsSpan = $form->getOption('buttons_span') ?: 12;
129 129
             }
130 130
             $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">'
131
-                      . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>';
131
+                        . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>';
132 132
         }
133 133
 
134 134
         return $content;
Please login to merge, or discard this patch.
module/Geo/Module.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
  */
19 19
 class Module
20 20
 {
21
-     /**
22
-     * Loads module specific configuration.
23
-     *
24
-     * @return array
25
-     */
21
+        /**
22
+         * Loads module specific configuration.
23
+         *
24
+         * @return array
25
+         */
26 26
     public function getConfig()
27 27
     {
28 28
         return include __DIR__ . '/config/module.config.php';
Please login to merge, or discard this patch.