@@ -8,9 +8,9 @@ |
||
8 | 8 | class FrontendSwitchLocaleControllerFactory implements FactoryInterface |
9 | 9 | { |
10 | 10 | /** |
11 | - * @param ServiceLocatorInterface $locator |
|
12 | - * @return \PlaygroundCore\Controller\Frontend\SwitchLocaleController |
|
13 | - */ |
|
11 | + * @param ServiceLocatorInterface $locator |
|
12 | + * @return \PlaygroundCore\Controller\Frontend\SwitchLocaleController |
|
13 | + */ |
|
14 | 14 | public function createService(ServiceLocatorInterface $locator) |
15 | 15 | { |
16 | 16 | $controller = new SwitchLocaleController($locator); |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class AdminFormgenControllerFactory implements FactoryInterface |
9 | 9 | { |
10 | 10 | /** |
11 | - * @param ServiceLocatorInterface $locator |
|
12 | - * @return \PlaygroundCore\Controller\Admin\FormgenController |
|
13 | - */ |
|
11 | + * @param ServiceLocatorInterface $locator |
|
12 | + * @return \PlaygroundCore\Controller\Admin\FormgenController |
|
13 | + */ |
|
14 | 14 | public function createService(ServiceLocatorInterface $locator) |
15 | 15 | { |
16 | 16 | $controller = new FormgenController($locator); |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class FormgenFactory implements FactoryInterface |
9 | 9 | { |
10 | 10 | /** |
11 | - * @param ServiceLocatorInterface $locator |
|
12 | - * @return \PlaygroundCore\Service\Formgen |
|
13 | - */ |
|
11 | + * @param ServiceLocatorInterface $locator |
|
12 | + * @return \PlaygroundCore\Service\Formgen |
|
13 | + */ |
|
14 | 14 | public function createService(ServiceLocatorInterface $locator) |
15 | 15 | { |
16 | 16 | $service = new Formgen($locator); |
@@ -11,7 +11,7 @@ |
||
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(); |
@@ -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); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | public function getPath() |
42 | 42 | { |
43 | 43 | if (empty($this->path)) { |
44 | - $this->path = str_replace('\\', '/', getcwd()) . '/language/countries'; |
|
44 | + $this->path = str_replace('\\', '/', getcwd()).'/language/countries'; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | return $this->path; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | public function getCorePath() |
51 | 51 | { |
52 | 52 | if (empty($this->corePath)) { |
53 | - $this->corePath = __DIR__ . '/../../language/countries'; |
|
53 | + $this->corePath = __DIR__.'/../../language/countries'; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | return $this->corePath; |
@@ -63,10 +63,10 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | $fileName = $this->getPath().'/'.$translatedTo.'.php'; |
66 | - if (! file_exists($fileName)) { |
|
66 | + if (!file_exists($fileName)) { |
|
67 | 67 | $fileName = $this->getCorePath().'/'.$translatedTo.'.php'; |
68 | 68 | |
69 | - if (! file_exists($fileName)) { |
|
69 | + if (!file_exists($fileName)) { |
|
70 | 70 | throw new \InvalidArgumentException("Language $translatedTo not found."); |
71 | 71 | } |
72 | 72 | } |
@@ -80,9 +80,9 @@ discard block |
||
80 | 80 | $translatedTo = $this->serviceLocator->get('translator')->getLocale(); |
81 | 81 | } |
82 | 82 | $fileName = $this->getPath().'/'.$translatedTo.'.php'; |
83 | - if (! file_exists($fileName)) { |
|
83 | + if (!file_exists($fileName)) { |
|
84 | 84 | $fileName = $this->getCorePath().'/'.$translatedTo.'.php'; |
85 | - if (! file_exists($fileName)) { |
|
85 | + if (!file_exists($fileName)) { |
|
86 | 86 | throw new \InvalidArgumentException("Language $translatedTo not found."); |
87 | 87 | } |
88 | 88 | } |