@@ -4,4 +4,4 @@ |
||
4 | 4 | * It allows usage of this module even without composer. |
5 | 5 | * The original Module.php is in 'src/PlaygroundCore' in order to respect PSR-0 |
6 | 6 | */ |
7 | -require_once __DIR__ . '/src/PlaygroundCore/Module.php'; |
|
7 | +require_once __DIR__.'/src/PlaygroundCore/Module.php'; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | -return function ($class) { |
|
2 | +return function($class) { |
|
3 | 3 | static $map; |
4 | - if (!$map) $map = include __DIR__ . '/autoload_classmap.php'; |
|
4 | + if (!$map) $map = include __DIR__.'/autoload_classmap.php'; |
|
5 | 5 | if (!isset($map[$class])) return false; |
6 | 6 | |
7 | 7 | return include $map[$class]; |
@@ -1,8 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | return function ($class) { |
3 | 3 | static $map; |
4 | - if (!$map) $map = include __DIR__ . '/autoload_classmap.php'; |
|
5 | - if (!isset($map[$class])) return false; |
|
4 | + if (!$map) { |
|
5 | + $map = include __DIR__ . '/autoload_classmap.php'; |
|
6 | + } |
|
7 | + if (!isset($map[$class])) { |
|
8 | + return false; |
|
9 | + } |
|
6 | 10 | |
7 | 11 | return include $map[$class]; |
8 | 12 | }; |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | -spl_autoload_register(include __DIR__ . '/autoload_function.php'); |
|
2 | +spl_autoload_register(include __DIR__.'/autoload_function.php'); |
@@ -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', |
@@ -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) { |
@@ -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) { |
@@ -45,7 +45,7 @@ |
||
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); |