Completed
Push — develop ( 9a7a0e...9848a2 )
by greg
03:03
created
src/PlaygroundCore/Analytics/Ecommerce/Item.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,43 +1,43 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/PlaygroundCore/Analytics/Ecommerce/Transaction.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,43 +1,43 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/PlaygroundCore/Analytics/Event.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,43 +1,43 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/PlaygroundCore/Opengraph/Tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/PlaygroundCore/Validator/MailDomain.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
language/fr.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/Country.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/PlaygroundCore/Module.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/PlaygroundCore/Mail/Service/Message.php 2 patches
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      *
20 20
      * @param  ServiceManager  $serviceManager
21
-     * @return AbstractService
21
+     * @return Message
22 22
      */
23 23
     public function setServiceManager(ServiceManager $serviceManager)
24 24
     {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *            Either the template to use, or a ViewModel
62 62
      * @param null|array $values
63 63
      *            Values to use when the template is rendered
64
-     * @return Message
64
+     * @return MailMessage
65 65
      */
66 66
     public function createHtmlMessage($from, $to, $subject, $nameOrModel, $values = array())
67 67
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *            Either the template to use, or a ViewModel
122 122
      * @param null|array $values
123 123
      *            Values to use when the template is rendered
124
-     * @return Message
124
+     * @return MailMessage
125 125
      */
126 126
     public function createTextMessage($from, $to, $subject, $nameOrModel, $values = array())
127 127
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     /**
135 135
      * Send the message
136 136
      *
137
-     * @param Message $message
137
+     * @param MailMessage $message
138 138
      */
139 139
     public function send(MailMessage $message)
140 140
     {
@@ -174,7 +174,10 @@  discard block
 block discarded – undo
174 174
 
175 175
     /**
176 176
      *
177
-     * @return Message
177
+     * @param string $encoding
178
+     * @param string $subject
179
+     * @param string $body
180
+     * @return MailMessage
178 181
      */
179 182
     protected function getDefaultMessage($from, $encoding, $to, $subject, $body)
180 183
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
         $content = $renderer->render($nameOrModel, $values);
73 73
         $resolver = $this->getServiceManager()->get('Zend\View\Resolver\TemplatePathStack');
74 74
         // check if plain text email template exist
75
-        if ($resolver->resolve($nameOrModel . '-plain')) {
76
-            $contentText = $renderer->render($nameOrModel . '-plain', $values);
75
+        if ($resolver->resolve($nameOrModel.'-plain')) {
76
+            $contentText = $renderer->render($nameOrModel.'-plain', $values);
77 77
         } else {
78 78
             $contentText = '';
79 79
         }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $html->encoding    = Mime::ENCODING_QUOTEDPRINTABLE;
93 93
         $html->disposition = Mime::DISPOSITION_INLINE;
94 94
         $html->charset     = 'UTF-8';
95
-        $bodyMessage     = new MimeMessage();
95
+        $bodyMessage = new MimeMessage();
96 96
 
97 97
         $multiPartContentMessage = new MimeMessage();
98 98
         $multiPartContentMessage->addPart($text);
Please login to merge, or discard this patch.