@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | return $locales; |
51 | 51 | } |
52 | 52 | |
53 | - /** |
|
54 | - * getLocaleService : Recuperer le service des locales |
|
55 | - * |
|
56 | - * @return Service/Locale $localeService |
|
57 | - */ |
|
53 | + /** |
|
54 | + * getLocaleService : Recuperer le service des locales |
|
55 | + * |
|
56 | + * @return Service/Locale $localeService |
|
57 | + */ |
|
58 | 58 | public function getLocaleService() |
59 | 59 | { |
60 | 60 | if ($this->localeService === null) { |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * setLocaleService : set le service locale |
|
68 | - */ |
|
67 | + * setLocaleService : set le service locale |
|
68 | + */ |
|
69 | 69 | public function setLocaleService($localeService) |
70 | 70 | { |
71 | 71 | $this->localeService = $localeService; |
@@ -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); |
@@ -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 | } |