Completed
Push — develop ( dd9c1c...e37f14 )
by greg
07:53
created
src/PlaygroundCore/Filter/Transliteration.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
             'ů' => 'u',
175 175
             'ý' => 'y',
176 176
             'ž' => 'z',
177
-             'Á' => 'A',
177
+                'Á' => 'A',
178 178
             'Č' => 'C',
179 179
             'Ď' => 'D',
180 180
             'É' => 'E',
Please login to merge, or discard this patch.
src/PlaygroundCore/Mapper/Formgen.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
 class Formgen extends AbstractMapper
8 8
 {
9 9
     /**
10
-    * getEntityRepository : recupere l'entite formgen
11
-    *
12
-    * @return PlaygroundCore\Entity\Formgen $formgen
13
-    */
10
+     * getEntityRepository : recupere l'entite formgen
11
+     *
12
+     * @return PlaygroundCore\Entity\Formgen $formgen
13
+     */
14 14
     public function getEntityRepository()
15 15
     {
16 16
         if (null === $this->er) {
Please login to merge, or discard this patch.
src/PlaygroundCore/Mapper/Locale.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
 class Locale extends AbstractMapper
8 8
 {
9 9
     /**
10
-    * getEntityRepository : recupere l'entite locale
11
-    *
12
-    * @return PlaygroundCore\Entity\Locale $locale
13
-    */
10
+     * getEntityRepository : recupere l'entite locale
11
+     *
12
+     * @return PlaygroundCore\Entity\Locale $locale
13
+     */
14 14
     public function getEntityRepository()
15 15
     {
16 16
         if (null === $this->er) {
Please login to merge, or discard this patch.
src/PlaygroundCore/Mapper/Website.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
 class Website extends AbstractMapper
8 8
 {
9 9
     /**
10
-    * getEntityRepository : recupere l'entite website
11
-    *
12
-    * @return PlaygroundCore\Entity\Website $website
13
-    */
10
+     * getEntityRepository : recupere l'entite website
11
+     *
12
+     * @return PlaygroundCore\Entity\Website $website
13
+     */
14 14
     public function getEntityRepository()
15 15
     {
16 16
         if (null === $this->er) {
Please login to merge, or discard this patch.
src/PlaygroundCore/Mvc/Router/Http/RegexSlash.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Zend Framework (http://framework.zend.com/)
4
- *
5
- * @link      http://github.com/zendframework/zf2 for the canonical source repository
6
- * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7
- * @license   http://framework.zend.com/license/new-bsd New BSD License
8
- */
3
+     * Zend Framework (http://framework.zend.com/)
4
+     *
5
+     * @link      http://github.com/zendframework/zf2 for the canonical source repository
6
+     * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7
+     * @license   http://framework.zend.com/license/new-bsd New BSD License
8
+     */
9 9
 
10 10
 namespace PlaygroundCore\Mvc\Router\Http;
11 11
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $this->assembledParams = array();
46 46
 
47 47
         foreach ($mergedParams as $key => $value) {
48
-            $spec = '%' . $key . '%';
48
+            $spec = '%'.$key.'%';
49 49
 
50 50
             if (strpos($url, $spec) !== false) {
51 51
                 $url = str_replace($spec, rawurlencode($value), $url);
Please login to merge, or discard this patch.
src/PlaygroundCore/Options/ModuleOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     protected $bitlyUrl      = 'http://api.bit.ly/v3/shorten';
12 12
     protected $transport_class = 'Zend\Mail\Transport\File';
13 13
     protected $options_class   = 'Zend\Mail\Transport\FileOptions';
14
-    protected $options   = array('path' => 'data/mail/');
14
+    protected $options = array('path' => 'data/mail/');
15 15
     protected $twilio = array();
16 16
     protected $phpvideotoolkit = array();
17 17
     protected $quConfig = array();
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/CKEditor.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * When %CKEditor is created with the editor() method, a HTML &lt;textarea&gt; element is created,
71 71
      * it will be displayed to anyone with JavaScript disabled or with incompatible browser.
72 72
      */
73
-    public $textareaAttributes = array( "rows" => 8, "cols" => 60 );
73
+    public $textareaAttributes = array("rows" => 8, "cols" => 60);
74 74
     /**
75 75
      * A string indicating the creation date of %CKEditor.
76 76
      * Do not change it unless you want to force browsers to not use previously cached version of %CKEditor.
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
     {
131 131
         $attr = "";
132 132
         foreach ($this->textareaAttributes as $key => $val) {
133
-            $attr.= " " . $key . '="' . str_replace('"', '&quot;', $val) . '"';
133
+            $attr .= " ".$key.'="'.str_replace('"', '&quot;', $val).'"';
134 134
         }
135
-        $out = "<textarea name=\"" . $name . "\"" . $attr . ">" . htmlspecialchars($value) . "</textarea>\n";
135
+        $out = "<textarea name=\"".$name."\"".$attr.">".htmlspecialchars($value)."</textarea>\n";
136 136
         if (!$this->initialized) {
137 137
             $out .= $this->init();
138 138
         }
@@ -230,11 +230,11 @@  discard block
 block discarded – undo
230 230
         } else {
231 231
             $js .= "CKEDITOR.replaceAll( function (textarea, config) {\n";
232 232
             if (!empty($className)) {
233
-                $js .= "	var classRegex = new RegExp('(?:^| )' + '". $className ."' + '(?:$| )');\n";
233
+                $js .= "	var classRegex = new RegExp('(?:^| )' + '".$className."' + '(?:$| )');\n";
234 234
                 $js .= "	if (!classRegex.test(textarea.className))\n";
235 235
                 $js .= "		return false;\n";
236 236
             }
237
-            $js .= "	CKEDITOR.tools.extend(config, ". $this->jsEncode($_config) .", true);";
237
+            $js .= "	CKEDITOR.tools.extend(config, ".$this->jsEncode($_config).", true);";
238 238
             $js .= "} );";
239 239
         }
240 240
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
                     }
411 411
                     // Return only new events
412 412
                     if (!in_array($code, $returnedEvents[$eventName])) {
413
-                        $out .= ($code ? "\n" : "") . "CKEDITOR.on('". $eventName ."', $code);";
413
+                        $out .= ($code ? "\n" : "")."CKEDITOR.on('".$eventName."', $code);";
414 414
                         $returnedEvents[$eventName][] = $code;
415 415
                     }
416 416
                 }
@@ -442,19 +442,19 @@  discard block
 block discarded – undo
442 442
         $ckeditorPath = $this->ckeditorPath();
443 443
 
444 444
         if (!empty($this->timestamp) && $this->timestamp != "%"."TIMESTAMP%") {
445
-            $args = '?t=' . $this->timestamp;
445
+            $args = '?t='.$this->timestamp;
446 446
         }
447 447
 
448 448
         // Skip relative paths...
449 449
         if (strpos($ckeditorPath, '..') !== 0) {
450
-            $out .= $this->script("window.CKEDITOR_BASEPATH='". $ckeditorPath ."';");
450
+            $out .= $this->script("window.CKEDITOR_BASEPATH='".$ckeditorPath."';");
451 451
         }
452 452
 
453
-        $out .= "<script type=\"text/javascript\" src=\"" . $ckeditorPath . 'ckeditor.js' . $args . "\"></script>\n";
453
+        $out .= "<script type=\"text/javascript\" src=\"".$ckeditorPath.'ckeditor.js'.$args."\"></script>\n";
454 454
 
455 455
         $extraCode = "";
456 456
         if ($this->timestamp != self::TIMESTAMP) {
457
-            $extraCode .= ($extraCode ? "\n" : "") . "CKEDITOR.timestamp = '". $this->timestamp ."';";
457
+            $extraCode .= ($extraCode ? "\n" : "")."CKEDITOR.timestamp = '".$this->timestamp."';";
458 458
         }
459 459
         if ($extraCode) {
460 460
             $out .= $this->script($extraCode);
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
             /**
486 486
              * realpath - Returns canonicalized absolute pathname
487 487
              */
488
-            $realPath = realpath('./') ;
488
+            $realPath = realpath('./');
489 489
         }
490 490
 
491 491
         /**
@@ -528,15 +528,15 @@  discard block
 block discarded – undo
528 528
             return str_replace(',', '.', $val);
529 529
         }
530 530
         if (is_array($val) || is_object($val)) {
531
-            if (is_array($val) && (array_keys($val) === range(0, count($val)-1))) {
532
-                return '[' . implode(',', array_map(array($this, 'jsEncode'), $val)) . ']';
531
+            if (is_array($val) && (array_keys($val) === range(0, count($val) - 1))) {
532
+                return '['.implode(',', array_map(array($this, 'jsEncode'), $val)).']';
533 533
             }
534 534
             $temp = array();
535 535
             foreach ($val as $k => $v) {
536
-                $temp[] = $this->jsEncode("{$k}") . ':' . $this->jsEncode($v);
536
+                $temp[] = $this->jsEncode("{$k}").':'.$this->jsEncode($v);
537 537
             }
538 538
 
539
-            return '{' . implode(',', $temp) . '}';
539
+            return '{'.implode(',', $temp).'}';
540 540
         }
541 541
         // String otherwise
542 542
         if (strpos($val, '@@') === 0) {
@@ -546,6 +546,6 @@  discard block
 block discarded – undo
546 546
             return $val;
547 547
         }
548 548
 
549
-        return '"' . str_replace(array("\\", "/", "\n", "\t", "\r", "\x08", "\x0c", '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'), $val) . '"';
549
+        return '"'.str_replace(array("\\", "/", "\n", "\t", "\r", "\x08", "\x0c", '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'), $val).'"';
550 550
     }
551 551
 }
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/Formgen.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
      */
19 19
     protected $formgenMapper;
20 20
 
21
-     /**
22
-     * @var localeService
23
-     */
21
+        /**
22
+         * @var localeService
23
+         */
24 24
     protected $localeService;
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
Spacing   +16 added lines, -18 removed lines patch added patch discarded remove patch
@@ -88,23 +88,21 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $a = array();
90 90
 
91
-        $a['name']          = isset($attributes->name)? $attributes->name : '';
92
-        $a['placeholder']   = isset($attributes->data->placeholder)? $attributes->data->placeholder : '';
93
-        $a['label']         = isset($attributes->data->label)? $attributes->data->label : '';
94
-        $a['required']      = (isset($attributes->data->required) && $attributes->data->required == 'true')?
95
-            true:
96
-            false;
97
-        $a['class']         = isset($attributes->data->class)? $attributes->data->class : '';
98
-        $a['id']            = isset($attributes->data->id)? $attributes->data->id : '';
99
-        $a['lengthMin']     = isset($attributes->data->length)? $attributes->data->length->min : '';
100
-        $a['lengthMax']     = isset($attributes->data->length)? $attributes->data->length->max : '';
101
-        $a['validator']     = isset($attributes->data->validator)? $attributes->data->validator : '';
102
-        $a['innerData']     = isset($attributes->data->innerData)? $attributes->data->innerData : array();
103
-        $a['dropdownValues']= isset($attributes->data->dropdownValues)?
104
-            $attributes->data->dropdownValues :
105
-            array();
106
-        $a['filesizeMin']   = isset($attributes->data->filesize)? $attributes->data->filesize->min : 0;
107
-        $a['filesizeMax']   = isset($attributes->data->filesize)? $attributes->data->filesize->max : 10*1024*1024;
91
+        $a['name']          = isset($attributes->name) ? $attributes->name : '';
92
+        $a['placeholder']   = isset($attributes->data->placeholder) ? $attributes->data->placeholder : '';
93
+        $a['label']         = isset($attributes->data->label) ? $attributes->data->label : '';
94
+        $a['required']      = (isset($attributes->data->required) && $attributes->data->required == 'true') ?
95
+            true : false;
96
+        $a['class']         = isset($attributes->data->class) ? $attributes->data->class : '';
97
+        $a['id']            = isset($attributes->data->id) ? $attributes->data->id : '';
98
+        $a['lengthMin']     = isset($attributes->data->length) ? $attributes->data->length->min : '';
99
+        $a['lengthMax']     = isset($attributes->data->length) ? $attributes->data->length->max : '';
100
+        $a['validator']     = isset($attributes->data->validator) ? $attributes->data->validator : '';
101
+        $a['innerData']     = isset($attributes->data->innerData) ? $attributes->data->innerData : array();
102
+        $a['dropdownValues'] = isset($attributes->data->dropdownValues) ?
103
+            $attributes->data->dropdownValues : array();
104
+        $a['filesizeMin']   = isset($attributes->data->filesize) ? $attributes->data->filesize->min : 0;
105
+        $a['filesizeMax']   = isset($attributes->data->filesize) ? $attributes->data->filesize->max : 10*1024*1024;
108 106
 
109 107
         return $a;
110 108
     }
@@ -185,7 +183,7 @@  discard block
 block discarded – undo
185 183
 
186 184
         foreach ($formPV as $element) {
187 185
             if (isset($element->line_text)) {
188
-                $attr  = $this->getAttributes($element->line_text[0]);
186
+                $attr = $this->getAttributes($element->line_text[0]);
189 187
                 $element = new Element\Text($attr['name']);
190 188
                 $element = $this->decorate($element, $attr, $inputFilter);
191 189
                 $form->add($element);
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      * setFormgenMapper
394 394
      * @param  FormgenMapper $formgenMapper
395 395
      *
396
-     * @return PlaygroundCore\Mapper\FormGen FormGen
396
+     * @return Formgen FormGen
397 397
      */
398 398
     public function setFormgenMapper($formgenMapper)
399 399
     {
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      * setOptions
407 407
      * @param  ModuleOptions $options
408 408
      *
409
-     * @return PlaygroundCore\Service\Locale $this
409
+     * @return Formgen $this
410 410
      */
411 411
     public function setOptions(ModuleOptions $options)
412 412
     {
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function setImage($file)
27 27
     {
28 28
         if (!file_exists($file)) {
29
-            throw new \Exception('Not a file: "' . $file . '"', null, null);
29
+            throw new \Exception('Not a file: "'.$file.'"', null, null);
30 30
         }
31 31
         $this->file = $file;
32 32
         $this->image = imagecreatefromstring(
Please login to merge, or discard this patch.