@@ -7,10 +7,10 @@ |
||
| 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) { |
@@ -7,10 +7,10 @@ |
||
| 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) { |
@@ -7,10 +7,10 @@ |
||
| 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) { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | public function __construct($property, $value = null) |
| 10 | 10 | { |
| 11 | 11 | $this->property = $property; |
| 12 | - $this->value = $value; |
|
| 12 | + $this->value = $value; |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | public function getProperty() |
@@ -51,12 +51,12 @@ |
||
| 51 | 51 | 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', |
| 52 | 52 | 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y', 'Ğ'=>'G', 'İ'=>'I', 'Ş'=>'S', 'ğ'=>'g', 'ı'=>'i', |
| 53 | 53 | 'ş'=>'s', 'ü'=>'u', 'ă'=>'a', 'Ă'=>'A', 'ș'=>'s', 'Ș'=>'S', 'ț'=>'t', 'Ț'=>'T', 'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', |
| 54 | - 'Ζ' => 'Z', 'Η' => 'H', 'Θ' => '8','Ι' => 'I', 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P','Ρ' => 'R', |
|
| 55 | - 'Σ' => 'S', 'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'W','Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I', 'Ό' => 'O', 'Ύ' => 'Y', |
|
| 56 | - 'Ή' => 'H', 'Ώ' => 'W', 'Ϊ' => 'I','Ϋ' => 'Y','α' => 'a', 'β' => 'b', 'γ' => 'g', 'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'h', 'θ' => '8', |
|
| 57 | - 'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ξ' => '3', 'ο' => 'o', 'π' => 'p','ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'y', |
|
| 58 | - 'φ' => 'f', 'χ' => 'x', 'ψ' => 'ps', 'ω' => 'w','ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ύ' => 'y', 'ή' => 'h', 'ώ' => 'w', 'ς' => 's', |
|
| 59 | - 'ϊ' => 'i', 'ΰ' => 'y', 'ϋ' => 'y', 'ΐ' => 'i', ); |
|
| 54 | + 'Ζ' => 'Z', 'Η' => 'H', 'Θ' => '8', 'Ι' => 'I', 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P', 'Ρ' => 'R', |
|
| 55 | + 'Σ' => 'S', 'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'W', 'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I', 'Ό' => 'O', 'Ύ' => 'Y', |
|
| 56 | + 'Ή' => 'H', 'Ώ' => 'W', 'Ϊ' => 'I', 'Ϋ' => 'Y', 'α' => 'a', 'β' => 'b', 'γ' => 'g', 'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'h', 'θ' => '8', |
|
| 57 | + 'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ξ' => '3', 'ο' => 'o', 'π' => 'p', 'ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'y', |
|
| 58 | + 'φ' => 'f', 'χ' => 'x', 'ψ' => 'ps', 'ω' => 'w', 'ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ύ' => 'y', 'ή' => 'h', 'ώ' => 'w', 'ς' => 's', |
|
| 59 | + 'ϊ' => 'i', 'ΰ' => 'y', 'ϋ' => 'y', 'ΐ' => 'i',); |
|
| 60 | 60 | |
| 61 | 61 | $value = strtr($value, $unwanted_array); |
| 62 | 62 | |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | 'ů' => 'u', |
| 175 | 175 | 'ý' => 'y', |
| 176 | 176 | 'ž' => 'z', |
| 177 | - 'Á' => 'A', |
|
| 177 | + 'Á' => 'A', |
|
| 178 | 178 | 'Č' => 'C', |
| 179 | 179 | 'Ď' => 'D', |
| 180 | 180 | 'É' => 'E', |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $filename = pathinfo($s, PATHINFO_FILENAME); |
| 79 | 79 | $extension = pathinfo($s, PATHINFO_EXTENSION); |
| 80 | - return $this->filterSubstring($filename).($extension ? '.'.$this->filterSubstring($extension) : ''); |
|
| 80 | + return $this->filterSubstring($filename).($extension ? '.'.$this->filterSubstring($extension) : ''); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | $this->removeNotReplacedChar($n); |
| 150 | 150 | } |
| 151 | 151 | } else { |
| 152 | - if (! in_array($notReplaced, $this->getNotReplacedChars())) { |
|
| 152 | + if (!in_array($notReplaced, $this->getNotReplacedChars())) { |
|
| 153 | 153 | throw new \Exception("Not replaced character '$notReplaced' is not in array."); |
| 154 | 154 | } |
| 155 | 155 | $newArray = array(); |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | $this->removeWordDelimiter($delim); |
| 234 | 234 | } |
| 235 | 235 | } else { |
| 236 | - if (! in_array($delimiter, $this->getWordDelimiters())) { |
|
| 236 | + if (!in_array($delimiter, $this->getWordDelimiters())) { |
|
| 237 | 237 | throw new \Exception("Word delimiter '$delimiter' is not in delimiters array."); |
| 238 | 238 | } |
| 239 | 239 | $newArray = array(); |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | if (count($this->getNotReplacedChars()) == 0) { |
| 317 | 317 | $reg = '~[^-a-z0-9_]+~'; |
| 318 | 318 | } else { |
| 319 | - $reg = '~[^-a-z0-9_' . implode('', $this->getNotReplacedChars()) .']+~'; |
|
| 319 | + $reg = '~[^-a-z0-9_'.implode('', $this->getNotReplacedChars()).']+~'; |
|
| 320 | 320 | } |
| 321 | 321 | return preg_replace($reg, '', $s); |
| 322 | 322 | } |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | */ |
| 330 | 330 | private function replaceDoubleDelimiterReplacementWithSingle($s) |
| 331 | 331 | { |
| 332 | - $doubleDelimiterReplacement = $this->getDelimiterReplacement() . $this->getDelimiterReplacement(); |
|
| 332 | + $doubleDelimiterReplacement = $this->getDelimiterReplacement().$this->getDelimiterReplacement(); |
|
| 333 | 333 | while (strpos($s, $doubleDelimiterReplacement) !== false) { |
| 334 | 334 | $s = str_replace($doubleDelimiterReplacement, $this->getDelimiterReplacement(), $s); |
| 335 | 335 | } |
@@ -161,9 +161,9 @@ discard block |
||
| 161 | 161 | return $this; |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | - /** |
|
| 165 | - * @return string $default |
|
| 166 | - */ |
|
| 164 | + /** |
|
| 165 | + * @return string $default |
|
| 166 | + */ |
|
| 167 | 167 | public function getDefault() |
| 168 | 168 | { |
| 169 | 169 | return $this->byDefault; |
@@ -247,10 +247,10 @@ discard block |
||
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | /** |
| 250 | - * getFlag : get path for flag associate to the country |
|
| 251 | - * |
|
| 252 | - * @param string $flag |
|
| 253 | - */ |
|
| 250 | + * getFlag : get path for flag associate to the country |
|
| 251 | + * |
|
| 252 | + * @param string $flag |
|
| 253 | + */ |
|
| 254 | 254 | public function getFlag() |
| 255 | 255 | { |
| 256 | 256 | return "/lib/images/flag/".strtolower($this->getCode()); |
@@ -281,19 +281,19 @@ discard block |
||
| 281 | 281 | |
| 282 | 282 | |
| 283 | 283 | /** |
| 284 | - * setInputFilter |
|
| 285 | - * @param InputFilterInterface $inputFilter |
|
| 286 | - */ |
|
| 284 | + * setInputFilter |
|
| 285 | + * @param InputFilterInterface $inputFilter |
|
| 286 | + */ |
|
| 287 | 287 | public function setInputFilter(InputFilterInterface $inputFilter) |
| 288 | 288 | { |
| 289 | 289 | throw new \Exception("Not used"); |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | 292 | /** |
| 293 | - * getInputFilter |
|
| 294 | - * |
|
| 295 | - * @return InputFilter $inputFilter |
|
| 296 | - */ |
|
| 293 | + * getInputFilter |
|
| 294 | + * |
|
| 295 | + * @return InputFilter $inputFilter |
|
| 296 | + */ |
|
| 297 | 297 | public function getInputFilter() |
| 298 | 298 | { |
| 299 | 299 | if (!$this->inputFilter) { |
@@ -49,15 +49,15 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | protected $formtemplate; |
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * @ORM\ManyToOne(targetEntity="PlaygroundCore\Entity\Locale", inversedBy="locale") |
|
| 54 | - */ |
|
| 52 | + /** |
|
| 53 | + * @ORM\ManyToOne(targetEntity="PlaygroundCore\Entity\Locale", inversedBy="locale") |
|
| 54 | + */ |
|
| 55 | 55 | protected $locale; |
| 56 | 56 | |
| 57 | - /** |
|
| 58 | - * active |
|
| 59 | - * @ORM\Column(type="boolean") |
|
| 60 | - */ |
|
| 57 | + /** |
|
| 58 | + * active |
|
| 59 | + * @ORM\Column(type="boolean") |
|
| 60 | + */ |
|
| 61 | 61 | protected $active = 0; |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -274,19 +274,19 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | |
| 276 | 276 | /** |
| 277 | - * setInputFilter |
|
| 278 | - * @param InputFilterInterface $inputFilter |
|
| 279 | - */ |
|
| 277 | + * setInputFilter |
|
| 278 | + * @param InputFilterInterface $inputFilter |
|
| 279 | + */ |
|
| 280 | 280 | public function setInputFilter(InputFilterInterface $inputFilter) |
| 281 | 281 | { |
| 282 | 282 | throw new \Exception("Not used"); |
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | /** |
| 286 | - * getInputFilter |
|
| 287 | - * |
|
| 288 | - * @return InputFilter $inputFilter |
|
| 289 | - */ |
|
| 286 | + * getInputFilter |
|
| 287 | + * |
|
| 288 | + * @return InputFilter $inputFilter |
|
| 289 | + */ |
|
| 290 | 290 | public function getInputFilter() |
| 291 | 291 | { |
| 292 | 292 | if (!$this->inputFilter) { |