@@ -25,7 +25,6 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * Generates the Item controller |
| 27 | 27 | * |
| 28 | - * @param ServiceLocatorInterface $serviceLocator |
|
| 29 | 28 | * @return Services_Twilio |
| 30 | 29 | */ |
| 31 | 30 | public function createService(ServiceLocatorInterface $serviceManager) |
@@ -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() |
@@ -41,7 +41,6 @@ |
||
| 41 | 41 | /** |
| 42 | 42 | * Sets the path to the file |
| 43 | 43 | * |
| 44 | - * @param string $path to the file |
|
| 45 | 44 | * @return MailDomain Provides a fluent interface |
| 46 | 45 | * @throws Exception\InvalidArgumentException When file is not found |
| 47 | 46 | */ |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | const FORBIDDEN = 'FORBIDDEN'; |
| 11 | 11 | |
| 12 | 12 | protected $options = array( |
| 13 | - 'file' => null, // File containing the authorized domains |
|
| 13 | + 'file' => null, // File containing the authorized domains |
|
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | 16 | protected $messageTemplates = array( |
@@ -20,9 +20,9 @@ discard block |
||
| 20 | 20 | public function __construct($options = null) |
| 21 | 21 | { |
| 22 | 22 | if (is_string($options)) { |
| 23 | - $this->options = array('file' => str_replace('\\', '/', getcwd()) . '/' . ltrim($options, '/')); |
|
| 23 | + $this->options = array('file' => str_replace('\\', '/', getcwd()).'/'.ltrim($options, '/')); |
|
| 24 | 24 | } elseif (is_array($options)) { |
| 25 | - $this->options = array('file' => str_replace('\\', '/', getcwd()) . '/' . ltrim(reset($options), '/')); |
|
| 25 | + $this->options = array('file' => str_replace('\\', '/', getcwd()).'/'.ltrim(reset($options), '/')); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | parent::__construct($this->options); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $this->setValue(strtolower($value)); |
| 64 | 64 | $domains = file($this->getFile(), FILE_IGNORE_NEW_LINES); |
| 65 | 65 | |
| 66 | - if(is_array($domains) && in_array(strtolower($domain), $domains)){ |
|
| 66 | + if (is_array($domains) && in_array(strtolower($domain), $domains)) { |
|
| 67 | 67 | |
| 68 | 68 | return true; |
| 69 | 69 | } |
@@ -1,11 +1,11 @@ |
||
| 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-2015 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-2015 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 | |
| 11 | 11 | /** |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * Set service manager instance |
| 101 | 101 | * |
| 102 | 102 | * @param ServiceManager $serviceManager |
| 103 | - * @return User |
|
| 103 | + * @return Country |
|
| 104 | 104 | */ |
| 105 | 105 | public function setServiceManager(ServiceManager $serviceManager) |
| 106 | 106 | { |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public function getPath() |
| 29 | 29 | { |
| 30 | - if(empty($this->path)){ |
|
| 31 | - $this->path = str_replace('\\', '/', getcwd()) . '/language/countries'; |
|
| 30 | + if (empty($this->path)) { |
|
| 31 | + $this->path = str_replace('\\', '/', getcwd()).'/language/countries'; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | return $this->path; |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | public function getCorePath() |
| 38 | 38 | { |
| 39 | - if(empty($this->corePath)){ |
|
| 40 | - $this->corePath = __DIR__ . '/../../../language/countries'; |
|
| 39 | + if (empty($this->corePath)) { |
|
| 40 | + $this->corePath = __DIR__.'/../../../language/countries'; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | return $this->corePath; |
@@ -50,10 +50,10 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | $fileName = $this->getPath().'/'.$translatedTo.'.php'; |
| 53 | - if (! file_exists($fileName)) { |
|
| 53 | + if (!file_exists($fileName)) { |
|
| 54 | 54 | $fileName = $this->getCorePath().'/'.$translatedTo.'.php'; |
| 55 | 55 | |
| 56 | - if (! file_exists($fileName)) { |
|
| 56 | + if (!file_exists($fileName)) { |
|
| 57 | 57 | throw new \InvalidArgumentException("Language $translatedTo not found."); |
| 58 | 58 | } |
| 59 | 59 | } |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | $translatedTo = $this->getServiceManager()->get('translator')->getLocale(); |
| 68 | 68 | } |
| 69 | 69 | $fileName = $this->getPath().'/'.$translatedTo.'.php'; |
| 70 | - if (! file_exists($fileName)) { |
|
| 70 | + if (!file_exists($fileName)) { |
|
| 71 | 71 | $fileName = $this->getCorePath().'/'.$translatedTo.'.php'; |
| 72 | - if (! file_exists($fileName)) { |
|
| 72 | + if (!file_exists($fileName)) { |
|
| 73 | 73 | throw new \InvalidArgumentException("Language $translatedTo not found."); |
| 74 | 74 | } |
| 75 | 75 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | if (empty($locale) && in_array('cookie', $pgstrat)) { |
| 58 | 58 | $serviceManager->get('router')->setTranslator($translator); |
| 59 | 59 | if ($serviceManager->get('router')->match($serviceManager->get('request')) && |
| 60 | - strpos($serviceManager->get('router')->match($serviceManager->get('request'))->getMatchedRouteName(), 'admin') !==false |
|
| 60 | + strpos($serviceManager->get('router')->match($serviceManager->get('request'))->getMatchedRouteName(), 'admin') !== false |
|
| 61 | 61 | ) { |
| 62 | 62 | if ($e->getRequest()->getCookie() && |
| 63 | 63 | $e->getRequest()->getCookie()->offsetExists('pg_locale_back') |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | // Google Analytics : When the render event is triggered, we invoke the view helper to |
| 160 | 160 | // render the javascript code. |
| 161 | - $e->getApplication()->getEventManager()->attach(\Zend\Mvc\MvcEvent::EVENT_RENDER, function (\Zend\Mvc\MvcEvent $e) use ($serviceManager) { |
|
| 161 | + $e->getApplication()->getEventManager()->attach(\Zend\Mvc\MvcEvent::EVENT_RENDER, function(\Zend\Mvc\MvcEvent $e) use ($serviceManager) { |
|
| 162 | 162 | $view = $serviceManager->get('ViewHelperManager'); |
| 163 | 163 | $plugin = $view->get('googleAnalytics'); |
| 164 | 164 | $plugin(); |
@@ -185,8 +185,8 @@ discard block |
||
| 185 | 185 | // that they need to send the user back to FB... |
| 186 | 186 | |
| 187 | 187 | if (!count($_COOKIE) > 0 && strpos($_SERVER['HTTP_USER_AGENT'], 'Safari')) { |
| 188 | - echo '<script type="text/javascript">' . |
|
| 189 | - 'window.top.location.href = window.location.href+"?redir_fb_page_id='. $data["page"]["id"]. '";' . |
|
| 188 | + echo '<script type="text/javascript">'. |
|
| 189 | + 'window.top.location.href = window.location.href+"?redir_fb_page_id='.$data["page"]["id"].'";'. |
|
| 190 | 190 | '</script>'; |
| 191 | 191 | } |
| 192 | 192 | |
@@ -203,11 +203,11 @@ discard block |
||
| 203 | 203 | { |
| 204 | 204 | return array( |
| 205 | 205 | 'Zend\Loader\ClassMapAutoloader' => array( |
| 206 | - __DIR__ . '/../../autoload_classmap.php', |
|
| 206 | + __DIR__.'/../../autoload_classmap.php', |
|
| 207 | 207 | ), |
| 208 | 208 | 'Zend\Loader\StandardAutoloader' => array( |
| 209 | 209 | 'namespaces' => array( |
| 210 | - __NAMESPACE__ => __DIR__ . '/../../src/' . __NAMESPACE__, |
|
| 210 | + __NAMESPACE__ => __DIR__.'/../../src/'.__NAMESPACE__, |
|
| 211 | 211 | ), |
| 212 | 212 | ), |
| 213 | 213 | ); |
@@ -215,21 +215,21 @@ discard block |
||
| 215 | 215 | |
| 216 | 216 | public function getConfig() |
| 217 | 217 | { |
| 218 | - return include __DIR__ . '/../../config/module.config.php'; |
|
| 218 | + return include __DIR__.'/../../config/module.config.php'; |
|
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | public function getViewHelperConfig() |
| 222 | 222 | { |
| 223 | 223 | return array( |
| 224 | 224 | 'factories' => array( |
| 225 | - 'QgCKEditor' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 225 | + 'QgCKEditor' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 226 | 226 | $config = $sm->getServiceLocator()->get('config'); |
| 227 | 227 | $QuCk = new View\Helper\AdCKEditor($config['playgroundcore']['ckeditor']); |
| 228 | 228 | |
| 229 | 229 | return $QuCk; |
| 230 | 230 | }, |
| 231 | 231 | |
| 232 | - 'googleAnalytics' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 232 | + 'googleAnalytics' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 233 | 233 | $tracker = $sm->getServiceLocator()->get('google-analytics'); |
| 234 | 234 | |
| 235 | 235 | $helper = new View\Helper\GoogleAnalytics($tracker, $sm->getServiceLocator()->get('Request')); |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | return $helper; |
| 238 | 238 | }, |
| 239 | 239 | |
| 240 | - 'facebookOpengraph' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 240 | + 'facebookOpengraph' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 241 | 241 | $tracker = $sm->getServiceLocator()->get('facebook-opengraph'); |
| 242 | 242 | |
| 243 | 243 | $helper = new View\Helper\FacebookOpengraph($tracker, $sm->getServiceLocator()->get('Request')); |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | return $helper; |
| 246 | 246 | }, |
| 247 | 247 | |
| 248 | - 'twitterCard' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 248 | + 'twitterCard' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 249 | 249 | $viewHelper = new View\Helper\TwitterCard(); |
| 250 | 250 | $viewHelper->setConfig($sm->getServiceLocator()->get('twitter-card')); |
| 251 | 251 | $viewHelper->setRequest($sm->getServiceLocator()->get('Request')); |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | return $viewHelper; |
| 254 | 254 | }, |
| 255 | 255 | |
| 256 | - 'switchLocaleWidget' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 256 | + 'switchLocaleWidget' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 257 | 257 | $viewHelper = new View\Helper\SwitchLocaleWidget(); |
| 258 | 258 | $viewHelper->setLocaleService($sm->getServiceLocator()->get('playgroundcore_locale_service')); |
| 259 | 259 | $viewHelper->setWebsiteService($sm->getServiceLocator()->get('playgroundcore_website_service')); |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | return $viewHelper; |
| 263 | 263 | }, |
| 264 | 264 | |
| 265 | - 'countryName' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 265 | + 'countryName' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 266 | 266 | $service = $sm->getServiceLocator()->get('playgroundcore_country_service'); |
| 267 | 267 | $viewHelper = new View\Helper\CountryName($service); |
| 268 | 268 | |
@@ -304,29 +304,29 @@ discard block |
||
| 304 | 304 | 'playgroundcore_country_service' => 'PlaygroundCore\Service\Country', |
| 305 | 305 | ), |
| 306 | 306 | 'factories' => array( |
| 307 | - 'playgroundcore_module_options' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 307 | + 'playgroundcore_module_options' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 308 | 308 | $config = $sm->get('Configuration'); |
| 309 | 309 | |
| 310 | 310 | return new Options\ModuleOptions(isset($config['playgroundcore']) ? $config['playgroundcore'] : array()); |
| 311 | 311 | }, |
| 312 | 312 | |
| 313 | - 'playgroundcore_formgen_mapper' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 313 | + 'playgroundcore_formgen_mapper' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 314 | 314 | return new Mapper\Formgen($sm->get('playgroundcore_doctrine_em'), $sm->get('playgroundcore_module_options')); |
| 315 | 315 | }, |
| 316 | 316 | |
| 317 | - 'playgroundcore_website_mapper' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 317 | + 'playgroundcore_website_mapper' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 318 | 318 | |
| 319 | 319 | return new Mapper\Website($sm->get('playgroundcore_doctrine_em'), $sm->get('playgroundcore_module_options')); |
| 320 | 320 | }, |
| 321 | 321 | |
| 322 | - 'playgroundcore_locale_mapper' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 322 | + 'playgroundcore_locale_mapper' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 323 | 323 | return new Mapper\Locale($sm->get('playgroundcore_doctrine_em'), $sm->get('playgroundcore_module_options')); |
| 324 | 324 | }, |
| 325 | 325 | |
| 326 | 326 | 'playgroundcore_twilio' => 'PlaygroundCore\Service\Factory\TwilioServiceFactory', |
| 327 | 327 | 'playgroundcore_phpvideotoolkit' => 'PlaygroundCore\Service\Factory\PhpvideotoolkitServiceFactory', |
| 328 | 328 | 'playgroundcore_transport' => 'PlaygroundCore\Mail\Transport\Service\TransportFactory', |
| 329 | - 'PlaygroundCore\Analytics\Tracker' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 329 | + 'PlaygroundCore\Analytics\Tracker' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 330 | 330 | $config = $sm->get('config'); |
| 331 | 331 | $config = isset($config['playgroundcore']) ? $config['playgroundcore']['googleAnalytics'] : array('id' => 'UA-XXXXXXXX-X'); |
| 332 | 332 | |
@@ -339,8 +339,8 @@ discard block |
||
| 339 | 339 | if (isset($config['custom_vars'])) { |
| 340 | 340 | foreach ($config['custom_vars'] as $customVar) { |
| 341 | 341 | $customVarId = $customVar['id']; |
| 342 | - $customVarName = $customVar['name']; |
|
| 343 | - $customVarValue = $customVar['value']; |
|
| 342 | + $customVarName = $customVar['name']; |
|
| 343 | + $customVarValue = $customVar['value']; |
|
| 344 | 344 | $customVarOptScope = $customVar['optScope']; |
| 345 | 345 | $customVar = new Analytics\CustomVar($customVarId, $customVarName, $customVarValue, $customVarOptScope); |
| 346 | 346 | $tracker->addCustomVar($customVar); |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | |
| 362 | 362 | return $tracker; |
| 363 | 363 | }, |
| 364 | - 'PlaygroundCore\Opengraph\Tracker' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 364 | + 'PlaygroundCore\Opengraph\Tracker' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 365 | 365 | $config = $sm->get('config'); |
| 366 | 366 | $config = isset($config['playgroundcore']['facebookOpengraph']) ? $config['playgroundcore']['facebookOpengraph'] : array('appId' => ''); |
| 367 | 367 | |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | |
| 381 | 381 | return $tracker; |
| 382 | 382 | }, |
| 383 | - 'PlaygroundCore\TwitterCard\Config' => function (\Zend\ServiceManager\ServiceManager $sm) { |
|
| 383 | + 'PlaygroundCore\TwitterCard\Config' => function(\Zend\ServiceManager\ServiceManager $sm) { |
|
| 384 | 384 | $config = $sm->get('config'); |
| 385 | 385 | $config = isset($config['playgroundcore']['twitterCard']) ? $config['playgroundcore']['twitterCard'] : array(); |
| 386 | 386 | return new TwitterCard\Config($config); |