Completed
Push — develop ( da7aa8...3d4c5c )
by greg
09:02
created
src/PlaygroundCore/Service/Factory/LocaleFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 class LocaleFactory implements FactoryInterface
9 9
 {
10 10
     /**
11
-    * @param ServiceLocatorInterface $locator
12
-    * @return \PlaygroundCore\Service\Locale
13
-    */
11
+     * @param ServiceLocatorInterface $locator
12
+     * @return \PlaygroundCore\Service\Locale
13
+     */
14 14
     public function createService(ServiceLocatorInterface $locator)
15 15
     {
16 16
         $service = new Locale($locator);
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/Factory/ImageFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 class ImageFactory implements FactoryInterface
9 9
 {
10 10
     /**
11
-    * @param ServiceLocatorInterface $locator
12
-    * @return \PlaygroundCore\Service\Image
13
-    */
11
+     * @param ServiceLocatorInterface $locator
12
+     * @return \PlaygroundCore\Service\Image
13
+     */
14 14
     public function createService(ServiceLocatorInterface $locator)
15 15
     {
16 16
         $service = new Image($locator);
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/Factory/CronFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 class CronFactory implements FactoryInterface
9 9
 {
10 10
     /**
11
-    * @param ServiceLocatorInterface $locator
12
-    * @return \PlaygroundCore\Service\Cron
13
-    */
11
+     * @param ServiceLocatorInterface $locator
12
+     * @return \PlaygroundCore\Service\Cron
13
+     */
14 14
     public function createService(ServiceLocatorInterface $locator)
15 15
     {
16 16
         $service = new Cron($locator);
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/Country.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function getPath()
40 40
     {
41 41
         if (empty($this->path)) {
42
-            $this->path = str_replace('\\', '/', getcwd()) . '/language/countries';
42
+            $this->path = str_replace('\\', '/', getcwd()).'/language/countries';
43 43
         }
44 44
 
45 45
         return $this->path;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public function getCorePath()
49 49
     {
50 50
         if (empty($this->corePath)) {
51
-            $this->corePath = __DIR__ . '/../../../language/countries';
51
+            $this->corePath = __DIR__.'/../../../language/countries';
52 52
         }
53 53
 
54 54
         return $this->corePath;
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
         }
62 62
         
63 63
         $fileName = $this->getPath().'/'.$translatedTo.'.php';
64
-        if (! file_exists($fileName)) {
64
+        if (!file_exists($fileName)) {
65 65
             $fileName = $this->getCorePath().'/'.$translatedTo.'.php';
66 66
 
67
-            if (! file_exists($fileName)) {
67
+            if (!file_exists($fileName)) {
68 68
                 throw new \InvalidArgumentException("Language $translatedTo not found.");
69 69
             }
70 70
         }
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
             $translatedTo = $this->serviceLocator->get('translator')->getLocale();
79 79
         }
80 80
         $fileName = $this->getPath().'/'.$translatedTo.'.php';
81
-        if (! file_exists($fileName)) {
81
+        if (!file_exists($fileName)) {
82 82
             $fileName = $this->getCorePath().'/'.$translatedTo.'.php';
83
-            if (! file_exists($fileName)) {
83
+            if (!file_exists($fileName)) {
84 84
                 throw new \InvalidArgumentException("Language $translatedTo not found.");
85 85
             }
86 86
         }
Please login to merge, or discard this patch.
src/PlaygroundCore/Mail/Service/Message.php 2 patches
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *            Either the template to use, or a ViewModel
47 47
      * @param null|array $values
48 48
      *            Values to use when the template is rendered
49
-     * @return Message
49
+     * @return MailMessage
50 50
      */
51 51
     public function createHtmlMessage($from, $to, $subject, $nameOrModel, $values = array())
52 52
     {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *            Either the template to use, or a ViewModel
107 107
      * @param null|array $values
108 108
      *            Values to use when the template is rendered
109
-     * @return Message
109
+     * @return MailMessage
110 110
      */
111 111
     public function createTextMessage($from, $to, $subject, $nameOrModel, $values = array())
112 112
     {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * Send the message
121 121
      *
122
-     * @param Message $message
122
+     * @param MailMessage $message
123 123
      */
124 124
     public function send(MailMessage $message)
125 125
     {
@@ -157,7 +157,10 @@  discard block
 block discarded – undo
157 157
 
158 158
     /**
159 159
      *
160
-     * @return Message
160
+     * @param string $encoding
161
+     * @param string $subject
162
+     * @param string $body
163
+     * @return MailMessage
161 164
      */
162 165
     protected function getDefaultMessage($from, $encoding, $to, $subject, $body)
163 166
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
         $content = $renderer->render($nameOrModel, $values);
58 58
         $resolver = $this->serviceLocator->get('Zend\View\Resolver\TemplatePathStack');
59 59
         // check if plain text email template exist
60
-        if ($resolver->resolve($nameOrModel . '-plain')) {
61
-            $contentText = $renderer->render($nameOrModel . '-plain', $values);
60
+        if ($resolver->resolve($nameOrModel.'-plain')) {
61
+            $contentText = $renderer->render($nameOrModel.'-plain', $values);
62 62
         } else {
63 63
             $contentText = '';
64 64
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $html->encoding    = Mime::ENCODING_QUOTEDPRINTABLE;
78 78
         $html->disposition = Mime::DISPOSITION_INLINE;
79 79
         $html->charset     = 'UTF-8';
80
-        $bodyMessage     = new MimeMessage();
80
+        $bodyMessage = new MimeMessage();
81 81
 
82 82
         $multiPartContentMessage = new MimeMessage();
83 83
         $multiPartContentMessage->addPart($text);
Please login to merge, or discard this patch.
src/PlaygroundCore/Controller/Admin/FormgenController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
 
58 58
         $websites = $this->getWebsiteService()->getWebsiteMapper()->findAll();
59 59
         return new ViewModel(array(
60
-           'websites' => $websites,
61
-           'form' => $formgen,
60
+            'websites' => $websites,
61
+            'form' => $formgen,
62 62
         ));
63 63
     }
64 64
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $renderer = $this->serviceLocator->get('Zend\View\Renderer\RendererInterface');
78 78
         $headScript = $this->getServiceLocator()->get('viewhelpermanager')->get('HeadScript');
79
-        $headScript->appendFile($renderer->adminAssetPath() . '/js/form/parse.form.js');
79
+        $headScript->appendFile($renderer->adminAssetPath().'/js/form/parse.form.js');
80 80
 
81 81
         $formId = $this->params('form');
82 82
 
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $renderer = $this->serviceLocator->get('Zend\View\Renderer\RendererInterface');
89 89
         $headScript = $this->getServiceLocator()->get('viewhelpermanager')->get('HeadScript');
90
-        $headScript->appendFile($renderer->adminAssetPath() . '/js/form/create.form.js');
91
-        $headScript->appendFile($renderer->adminAssetPath() . '/js/form/line.text.js');
92
-        $headScript->appendFile($renderer->adminAssetPath() . '/js/form/add.form.js');
93
-        $headScript->appendFile($renderer->adminAssetPath() . '/js/form/json.form.js');
94
-        $headScript->appendFile($renderer->adminAssetPath() . '/js/form/edit.form.js');
90
+        $headScript->appendFile($renderer->adminAssetPath().'/js/form/create.form.js');
91
+        $headScript->appendFile($renderer->adminAssetPath().'/js/form/line.text.js');
92
+        $headScript->appendFile($renderer->adminAssetPath().'/js/form/add.form.js');
93
+        $headScript->appendFile($renderer->adminAssetPath().'/js/form/json.form.js');
94
+        $headScript->appendFile($renderer->adminAssetPath().'/js/form/edit.form.js');
95 95
 
96 96
         return array();
97 97
     }
Please login to merge, or discard this patch.
src/PlaygroundCore/Controller/Admin/ElfinderController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $view = new ViewModel();
31 31
         $this->getConfig();
32
-        $view->BasePath    = $this->Config['BasePath'];
32
+        $view->BasePath = $this->Config['BasePath'];
33 33
         $view->ConnectorPath = '/admin/elfinder/connector';
34 34
         $view->setTerminal(true);
35 35
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     public function getConfig()
84 84
     {
85 85
         if (!$this->Config) {
86
-            $config       = $this->getServiceLocator()->get('config');
86
+            $config = $this->getServiceLocator()->get('config');
87 87
             if (isset($config['playgroundcore']) && isset($config['playgroundcore']['QuConfig']) && isset($config['playgroundcore']['QuConfig']['QuElFinder'])) {
88 88
                 $this->Config = $config['playgroundcore']['QuConfig']['QuElFinder'];
89 89
             } else {
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/Factory/AdminWebsiteControllerFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 class AdminWebsiteControllerFactory implements FactoryInterface
9 9
 {
10 10
     /**
11
-    * @param ServiceLocatorInterface $locator
12
-    * @return \PlaygroundCore\Controller\Admin\WebsiteController
13
-    */
11
+     * @param ServiceLocatorInterface $locator
12
+     * @return \PlaygroundCore\Controller\Admin\WebsiteController
13
+     */
14 14
     public function createService(ServiceLocatorInterface $locator)
15 15
     {
16 16
         $controller = new WebsiteController($locator);
Please login to merge, or discard this patch.
src/PlaygroundCore/Service/Factory/ConsoleControllerFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 class ConsoleControllerFactory implements FactoryInterface
9 9
 {
10 10
     /**
11
-    * @param ServiceLocatorInterface $locator
12
-    * @return \PlaygroundCore\Controller\ConsoleController
13
-    */
11
+     * @param ServiceLocatorInterface $locator
12
+     * @return \PlaygroundCore\Controller\ConsoleController
13
+     */
14 14
     public function createService(ServiceLocatorInterface $locator)
15 15
     {
16 16
         $controller = new ConsoleController($locator);
Please login to merge, or discard this patch.