@@ -1,43 +1,43 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2012 Jurian Sluiman. |
|
| 4 | - * All rights reserved. |
|
| 5 | - * |
|
| 6 | - * Redistribution and use in source and binary forms, with or without |
|
| 7 | - * modification, are permitted provided that the following conditions |
|
| 8 | - * are met: |
|
| 9 | - * |
|
| 10 | - * * Redistributions of source code must retain the above copyright |
|
| 11 | - * notice, this list of conditions and the following disclaimer. |
|
| 12 | - * |
|
| 13 | - * * Redistributions in binary form must reproduce the above copyright |
|
| 14 | - * notice, this list of conditions and the following disclaimer in |
|
| 15 | - * the documentation and/or other materials provided with the |
|
| 16 | - * distribution. |
|
| 17 | - * |
|
| 18 | - * * Neither the names of the copyright holders nor the names of the |
|
| 19 | - * contributors may be used to endorse or promote products derived |
|
| 20 | - * from this software without specific prior written permission. |
|
| 21 | - * |
|
| 22 | - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
| 23 | - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
| 24 | - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
| 25 | - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|
| 26 | - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
| 27 | - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|
| 28 | - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
| 29 | - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|
| 30 | - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
| 31 | - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
|
| 32 | - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
| 33 | - * POSSIBILITY OF SUCH DAMAGE. |
|
| 34 | - * |
|
| 35 | - * @package PlaygroundCore |
|
| 36 | - * @author Jurian Sluiman <[email protected]> |
|
| 37 | - * @copyright 2012 Jurian Sluiman. |
|
| 38 | - * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
|
| 39 | - * @link http://juriansluiman.nl |
|
| 40 | - */ |
|
| 3 | + * Copyright (c) 2012 Jurian Sluiman. |
|
| 4 | + * All rights reserved. |
|
| 5 | + * |
|
| 6 | + * Redistribution and use in source and binary forms, with or without |
|
| 7 | + * modification, are permitted provided that the following conditions |
|
| 8 | + * are met: |
|
| 9 | + * |
|
| 10 | + * * Redistributions of source code must retain the above copyright |
|
| 11 | + * notice, this list of conditions and the following disclaimer. |
|
| 12 | + * |
|
| 13 | + * * Redistributions in binary form must reproduce the above copyright |
|
| 14 | + * notice, this list of conditions and the following disclaimer in |
|
| 15 | + * the documentation and/or other materials provided with the |
|
| 16 | + * distribution. |
|
| 17 | + * |
|
| 18 | + * * Neither the names of the copyright holders nor the names of the |
|
| 19 | + * contributors may be used to endorse or promote products derived |
|
| 20 | + * from this software without specific prior written permission. |
|
| 21 | + * |
|
| 22 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
| 23 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
| 24 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
| 25 | + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|
| 26 | + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
| 27 | + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|
| 28 | + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
| 29 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|
| 30 | + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
| 31 | + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
|
| 32 | + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
| 33 | + * POSSIBILITY OF SUCH DAMAGE. |
|
| 34 | + * |
|
| 35 | + * @package PlaygroundCore |
|
| 36 | + * @author Jurian Sluiman <[email protected]> |
|
| 37 | + * @copyright 2012 Jurian Sluiman. |
|
| 38 | + * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
|
| 39 | + * @link http://juriansluiman.nl |
|
| 40 | + */ |
|
| 41 | 41 | namespace PlaygroundCore\Analytics; |
| 42 | 42 | |
| 43 | 43 | use PlaygroundCore\Analytics\Ecommerce\Transaction; |
@@ -1,43 +1,43 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2012 Jurian Sluiman. |
|
| 4 | - * All rights reserved. |
|
| 5 | - * |
|
| 6 | - * Redistribution and use in source and binary forms, with or without |
|
| 7 | - * modification, are permitted provided that the following conditions |
|
| 8 | - * are met: |
|
| 9 | - * |
|
| 10 | - * * Redistributions of source code must retain the above copyright |
|
| 11 | - * notice, this list of conditions and the following disclaimer. |
|
| 12 | - * |
|
| 13 | - * * Redistributions in binary form must reproduce the above copyright |
|
| 14 | - * notice, this list of conditions and the following disclaimer in |
|
| 15 | - * the documentation and/or other materials provided with the |
|
| 16 | - * distribution. |
|
| 17 | - * |
|
| 18 | - * * Neither the names of the copyright holders nor the names of the |
|
| 19 | - * contributors may be used to endorse or promote products derived |
|
| 20 | - * from this software without specific prior written permission. |
|
| 21 | - * |
|
| 22 | - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
| 23 | - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
| 24 | - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
| 25 | - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|
| 26 | - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
| 27 | - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|
| 28 | - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
| 29 | - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|
| 30 | - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
| 31 | - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
|
| 32 | - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
| 33 | - * POSSIBILITY OF SUCH DAMAGE. |
|
| 34 | - * |
|
| 35 | - * @package PlaygroundCore |
|
| 36 | - * @author Jurian Sluiman <[email protected]> |
|
| 37 | - * @copyright 2012 Jurian Sluiman. |
|
| 38 | - * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
|
| 39 | - * @link http://juriansluiman.nl |
|
| 40 | - */ |
|
| 3 | + * Copyright (c) 2012 Jurian Sluiman. |
|
| 4 | + * All rights reserved. |
|
| 5 | + * |
|
| 6 | + * Redistribution and use in source and binary forms, with or without |
|
| 7 | + * modification, are permitted provided that the following conditions |
|
| 8 | + * are met: |
|
| 9 | + * |
|
| 10 | + * * Redistributions of source code must retain the above copyright |
|
| 11 | + * notice, this list of conditions and the following disclaimer. |
|
| 12 | + * |
|
| 13 | + * * Redistributions in binary form must reproduce the above copyright |
|
| 14 | + * notice, this list of conditions and the following disclaimer in |
|
| 15 | + * the documentation and/or other materials provided with the |
|
| 16 | + * distribution. |
|
| 17 | + * |
|
| 18 | + * * Neither the names of the copyright holders nor the names of the |
|
| 19 | + * contributors may be used to endorse or promote products derived |
|
| 20 | + * from this software without specific prior written permission. |
|
| 21 | + * |
|
| 22 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
| 23 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
| 24 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
| 25 | + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|
| 26 | + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
| 27 | + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|
| 28 | + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
| 29 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|
| 30 | + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
| 31 | + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
|
| 32 | + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
| 33 | + * POSSIBILITY OF SUCH DAMAGE. |
|
| 34 | + * |
|
| 35 | + * @package PlaygroundCore |
|
| 36 | + * @author Jurian Sluiman <[email protected]> |
|
| 37 | + * @copyright 2012 Jurian Sluiman. |
|
| 38 | + * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
|
| 39 | + * @link http://juriansluiman.nl |
|
| 40 | + */ |
|
| 41 | 41 | namespace PlaygroundCore\Analytics; |
| 42 | 42 | |
| 43 | 43 | use PlaygroundCore\Analytics\Ecommerce\Transaction; |
@@ -1,43 +1,43 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2012 Jurian Sluiman. |
|
| 4 | - * All rights reserved. |
|
| 5 | - * |
|
| 6 | - * Redistribution and use in source and binary forms, with or without |
|
| 7 | - * modification, are permitted provided that the following conditions |
|
| 8 | - * are met: |
|
| 9 | - * |
|
| 10 | - * * Redistributions of source code must retain the above copyright |
|
| 11 | - * notice, this list of conditions and the following disclaimer. |
|
| 12 | - * |
|
| 13 | - * * Redistributions in binary form must reproduce the above copyright |
|
| 14 | - * notice, this list of conditions and the following disclaimer in |
|
| 15 | - * the documentation and/or other materials provided with the |
|
| 16 | - * distribution. |
|
| 17 | - * |
|
| 18 | - * * Neither the names of the copyright holders nor the names of the |
|
| 19 | - * contributors may be used to endorse or promote products derived |
|
| 20 | - * from this software without specific prior written permission. |
|
| 21 | - * |
|
| 22 | - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
| 23 | - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
| 24 | - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
| 25 | - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|
| 26 | - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
| 27 | - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|
| 28 | - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
| 29 | - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|
| 30 | - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
| 31 | - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
|
| 32 | - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
| 33 | - * POSSIBILITY OF SUCH DAMAGE. |
|
| 34 | - * |
|
| 35 | - * @package PlaygroundCore |
|
| 36 | - * @author Jurian Sluiman <[email protected]> |
|
| 37 | - * @copyright 2012 Jurian Sluiman. |
|
| 38 | - * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
|
| 39 | - * @link http://juriansluiman.nl |
|
| 40 | - */ |
|
| 3 | + * Copyright (c) 2012 Jurian Sluiman. |
|
| 4 | + * All rights reserved. |
|
| 5 | + * |
|
| 6 | + * Redistribution and use in source and binary forms, with or without |
|
| 7 | + * modification, are permitted provided that the following conditions |
|
| 8 | + * are met: |
|
| 9 | + * |
|
| 10 | + * * Redistributions of source code must retain the above copyright |
|
| 11 | + * notice, this list of conditions and the following disclaimer. |
|
| 12 | + * |
|
| 13 | + * * Redistributions in binary form must reproduce the above copyright |
|
| 14 | + * notice, this list of conditions and the following disclaimer in |
|
| 15 | + * the documentation and/or other materials provided with the |
|
| 16 | + * distribution. |
|
| 17 | + * |
|
| 18 | + * * Neither the names of the copyright holders nor the names of the |
|
| 19 | + * contributors may be used to endorse or promote products derived |
|
| 20 | + * from this software without specific prior written permission. |
|
| 21 | + * |
|
| 22 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
| 23 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
| 24 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
| 25 | + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|
| 26 | + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
| 27 | + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|
| 28 | + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
| 29 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|
| 30 | + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
| 31 | + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
|
| 32 | + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
| 33 | + * POSSIBILITY OF SUCH DAMAGE. |
|
| 34 | + * |
|
| 35 | + * @package PlaygroundCore |
|
| 36 | + * @author Jurian Sluiman <[email protected]> |
|
| 37 | + * @copyright 2012 Jurian Sluiman. |
|
| 38 | + * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
|
| 39 | + * @link http://juriansluiman.nl |
|
| 40 | + */ |
|
| 41 | 41 | namespace PlaygroundCore\Analytics; |
| 42 | 42 | |
| 43 | 43 | use PlaygroundCore\Analytics\Ecommerce\Transaction; |
@@ -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() |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | if (empty($locale) && in_array('cookie', $pgstrat)) { |
| 56 | 56 | $serviceManager->get('router')->setTranslator($translator); |
| 57 | 57 | if ($serviceManager->get('router')->match($serviceManager->get('request')) && |
| 58 | - strpos($serviceManager->get('router')->match($serviceManager->get('request'))->getMatchedRouteName(), 'admin') !==false |
|
| 58 | + strpos($serviceManager->get('router')->match($serviceManager->get('request'))->getMatchedRouteName(), 'admin') !== false |
|
| 59 | 59 | ) { |
| 60 | 60 | if ($e->getRequest()->getCookie() && |
| 61 | 61 | $e->getRequest()->getCookie()->offsetExists('pg_locale_back') |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | // Google Analytics : When the render event is triggered, we invoke the view helper to |
| 156 | 156 | // render the javascript code. |
| 157 | - $e->getApplication()->getEventManager()->attach(\Zend\Mvc\MvcEvent::EVENT_RENDER, function (\Zend\Mvc\MvcEvent $e) use ($serviceManager) { |
|
| 157 | + $e->getApplication()->getEventManager()->attach(\Zend\Mvc\MvcEvent::EVENT_RENDER, function(\Zend\Mvc\MvcEvent $e) use ($serviceManager) { |
|
| 158 | 158 | $view = $serviceManager->get('ViewHelperManager'); |
| 159 | 159 | $plugin = $view->get('googleAnalytics'); |
| 160 | 160 | $plugin(); |
@@ -181,8 +181,8 @@ discard block |
||
| 181 | 181 | // that they need to send the user back to FB... |
| 182 | 182 | |
| 183 | 183 | if (!count($_COOKIE) > 0 && strpos($_SERVER['HTTP_USER_AGENT'], 'Safari')) { |
| 184 | - echo '<script type="text/javascript">' . |
|
| 185 | - 'window.top.location.href = window.location.href+"?redir_fb_page_id='. $data["page"]["id"]. '";' . |
|
| 184 | + echo '<script type="text/javascript">'. |
|
| 185 | + 'window.top.location.href = window.location.href+"?redir_fb_page_id='.$data["page"]["id"].'";'. |
|
| 186 | 186 | '</script>'; |
| 187 | 187 | } |
| 188 | 188 | |
@@ -199,11 +199,11 @@ discard block |
||
| 199 | 199 | { |
| 200 | 200 | return array( |
| 201 | 201 | 'Zend\Loader\ClassMapAutoloader' => array( |
| 202 | - __DIR__ . '/../../autoload_classmap.php', |
|
| 202 | + __DIR__.'/../../autoload_classmap.php', |
|
| 203 | 203 | ), |
| 204 | 204 | 'Zend\Loader\StandardAutoloader' => array( |
| 205 | 205 | 'namespaces' => array( |
| 206 | - __NAMESPACE__ => __DIR__ . '/../../src/' . __NAMESPACE__, |
|
| 206 | + __NAMESPACE__ => __DIR__.'/../../src/'.__NAMESPACE__, |
|
| 207 | 207 | ), |
| 208 | 208 | ), |
| 209 | 209 | ); |
@@ -211,21 +211,21 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | public function getConfig() |
| 213 | 213 | { |
| 214 | - return include __DIR__ . '/../../config/module.config.php'; |
|
| 214 | + return include __DIR__.'/../../config/module.config.php'; |
|
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | public function getViewHelperConfig() |
| 218 | 218 | { |
| 219 | 219 | return array( |
| 220 | 220 | 'factories' => array( |
| 221 | - 'QgCKEditor' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 221 | + 'QgCKEditor' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 222 | 222 | $config = $sm->getServiceLocator()->get('config'); |
| 223 | 223 | $QuCk = new View\Helper\AdCKEditor($config['playgroundcore']['ckeditor']); |
| 224 | 224 | |
| 225 | 225 | return $QuCk; |
| 226 | 226 | }, |
| 227 | 227 | |
| 228 | - 'googleAnalytics' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 228 | + 'googleAnalytics' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 229 | 229 | $tracker = $sm->getServiceLocator()->get('google-analytics'); |
| 230 | 230 | |
| 231 | 231 | $helper = new View\Helper\GoogleAnalytics($tracker, $sm->getServiceLocator()->get('Request')); |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | return $helper; |
| 234 | 234 | }, |
| 235 | 235 | |
| 236 | - 'facebookOpengraph' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 236 | + 'facebookOpengraph' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 237 | 237 | $tracker = $sm->getServiceLocator()->get('facebook-opengraph'); |
| 238 | 238 | |
| 239 | 239 | $helper = new View\Helper\FacebookOpengraph($tracker, $sm->getServiceLocator()->get('Request')); |
@@ -241,14 +241,14 @@ discard block |
||
| 241 | 241 | return $helper; |
| 242 | 242 | }, |
| 243 | 243 | |
| 244 | - 'twitterCard' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 244 | + 'twitterCard' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 245 | 245 | $viewHelper = new View\Helper\TwitterCard(); |
| 246 | 246 | $viewHelper->setConfig($sm->getServiceLocator()->get('twitter-card')); |
| 247 | 247 | $viewHelper->setRequest($sm->getServiceLocator()->get('Request')); |
| 248 | 248 | return $viewHelper; |
| 249 | 249 | }, |
| 250 | 250 | |
| 251 | - 'switchLocaleWidget' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 251 | + 'switchLocaleWidget' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 252 | 252 | $viewHelper = new View\Helper\SwitchLocaleWidget(); |
| 253 | 253 | $viewHelper->setLocaleService($sm->getServiceLocator()->get('playgroundcore_locale_service')); |
| 254 | 254 | $viewHelper->setWebsiteService($sm->getServiceLocator()->get('playgroundcore_website_service')); |
@@ -290,29 +290,29 @@ discard block |
||
| 290 | 290 | 'playgroundcore_ffmpeg_service' => 'PlaygroundCore\Service\Ffmpeg', |
| 291 | 291 | ), |
| 292 | 292 | 'factories' => array( |
| 293 | - 'playgroundcore_module_options' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 293 | + 'playgroundcore_module_options' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 294 | 294 | $config = $sm->get('Configuration'); |
| 295 | 295 | |
| 296 | 296 | return new Options\ModuleOptions(isset($config['playgroundcore']) ? $config['playgroundcore'] : array()); |
| 297 | 297 | }, |
| 298 | 298 | |
| 299 | - 'playgroundcore_formgen_mapper' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 299 | + 'playgroundcore_formgen_mapper' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 300 | 300 | return new Mapper\Formgen($sm->get('playgroundcore_doctrine_em'), $sm->get('playgroundcore_module_options')); |
| 301 | 301 | }, |
| 302 | 302 | |
| 303 | - 'playgroundcore_website_mapper' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 303 | + 'playgroundcore_website_mapper' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 304 | 304 | |
| 305 | 305 | return new Mapper\Website($sm->get('playgroundcore_doctrine_em'), $sm->get('playgroundcore_module_options')); |
| 306 | 306 | }, |
| 307 | 307 | |
| 308 | - 'playgroundcore_locale_mapper' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 308 | + 'playgroundcore_locale_mapper' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 309 | 309 | return new Mapper\Locale($sm->get('playgroundcore_doctrine_em'), $sm->get('playgroundcore_module_options')); |
| 310 | 310 | }, |
| 311 | 311 | |
| 312 | 312 | 'playgroundcore_twilio' => 'PlaygroundCore\Service\Factory\TwilioServiceFactory', |
| 313 | 313 | 'playgroundcore_phpvideotoolkit' => 'PlaygroundCore\Service\Factory\PhpvideotoolkitServiceFactory', |
| 314 | 314 | 'playgroundcore_transport' => 'PlaygroundCore\Mail\Transport\Service\TransportFactory', |
| 315 | - 'PlaygroundCore\Analytics\Tracker' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 315 | + 'PlaygroundCore\Analytics\Tracker' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 316 | 316 | $config = $sm->get('config'); |
| 317 | 317 | $config = isset($config['playgroundcore']) ? $config['playgroundcore']['googleAnalytics'] : array('id' => 'UA-XXXXXXXX-X'); |
| 318 | 318 | |
@@ -321,8 +321,8 @@ discard block |
||
| 321 | 321 | if (isset($config['custom_vars'])) { |
| 322 | 322 | foreach ($config['custom_vars'] as $customVar) { |
| 323 | 323 | $customVarId = $customVar['id']; |
| 324 | - $customVarName = $customVar['name']; |
|
| 325 | - $customVarValue = $customVar['value']; |
|
| 324 | + $customVarName = $customVar['name']; |
|
| 325 | + $customVarValue = $customVar['value']; |
|
| 326 | 326 | $customVarOptScope = $customVar['optScope']; |
| 327 | 327 | $customVar = new Analytics\CustomVar($customVarId, $customVarName, $customVarValue, $customVarOptScope); |
| 328 | 328 | $tracker->addCustomVar($customVar); |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | |
| 344 | 344 | return $tracker; |
| 345 | 345 | }, |
| 346 | - 'PlaygroundCore\Opengraph\Tracker' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 346 | + 'PlaygroundCore\Opengraph\Tracker' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 347 | 347 | $config = $sm->get('config'); |
| 348 | 348 | $config = isset($config['playgroundcore']['facebookOpengraph']) ? $config['playgroundcore']['facebookOpengraph'] : array('appId' => ''); |
| 349 | 349 | |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | |
| 363 | 363 | return $tracker; |
| 364 | 364 | }, |
| 365 | - 'PlaygroundCore\TwitterCard\Config' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 365 | + 'PlaygroundCore\TwitterCard\Config' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 366 | 366 | $config = $sm->get('config'); |
| 367 | 367 | $config = isset($config['playgroundcore']['twitterCard']) ? $config['playgroundcore']['twitterCard'] : array(); |
| 368 | 368 | return new TwitterCard\Config($config); |
@@ -309,13 +309,13 @@ discard block |
||
| 309 | 309 | 'Object' => 'Object', |
| 310 | 310 | 'Message' => 'Message', |
| 311 | 311 | |
| 312 | - // CONTACT FORM |
|
| 313 | - 'Contact us' => 'Contact us', |
|
| 314 | - 'A question to ask ?' => 'A question to ask ?', |
|
| 315 | - 'Your name' => 'Your name', |
|
| 316 | - 'Your first name' => 'Your first name', |
|
| 317 | - 'Your email' => 'Your email', |
|
| 318 | - 'I have a technical problem' => 'I have a technical problem', |
|
| 312 | + // CONTACT FORM |
|
| 313 | + 'Contact us' => 'Contact us', |
|
| 314 | + 'A question to ask ?' => 'A question to ask ?', |
|
| 315 | + 'Your name' => 'Your name', |
|
| 316 | + 'Your first name' => 'Your first name', |
|
| 317 | + 'Your email' => 'Your email', |
|
| 318 | + 'I have a technical problem' => 'I have a technical problem', |
|
| 319 | 319 | 'I have a question about games' => 'I have a question about games', |
| 320 | 320 | 'I have not received my lot or my invitation' => 'I have not received my lot or my invitation', |
| 321 | 321 | 'I have a comment or suggestion' => 'I have a comment or suggestion', |
@@ -344,9 +344,9 @@ discard block |
||
| 344 | 344 | 'Previous exceptions' => 'Previous exceptions', |
| 345 | 345 | 'No Exception available' => 'No Exception available', |
| 346 | 346 | 'Other games in' => 'Other games in', |
| 347 | - '' => '', |
|
| 348 | - '' => '', |
|
| 349 | - '' => '', |
|
| 350 | - '' => '', |
|
| 351 | - '' => '', |
|
| 347 | + '' => '', |
|
| 348 | + '' => '', |
|
| 349 | + '' => '', |
|
| 350 | + '' => '', |
|
| 351 | + '' => '', |
|
| 352 | 352 | ); |