Completed
Pull Request — master (#26)
by Lars
10:03
created
src/Intraface/XMLRPC/OnlinePayment/Server0002.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -170,12 +170,12 @@
 block discarded – undo
170 170
         }
171 171
 
172 172
         $data = array('contact_id' => $debtor->getContact()->getId(),
173
-                      'subject'    => $subject,
174
-                      'body'       => $body,
175
-                      'from_email' => $this->kernel->intranet->address->get('email'),
176
-                      'from_name'  => $this->kernel->intranet->address->get('name'),
177
-                      'type_id'    => 13, // onlinepayment
178
-                      'belong_to'  => $payment_id);
173
+                        'subject'    => $subject,
174
+                        'body'       => $body,
175
+                        'from_email' => $this->kernel->intranet->address->get('email'),
176
+                        'from_name'  => $this->kernel->intranet->address->get('name'),
177
+                        'type_id'    => 13, // onlinepayment
178
+                        'belong_to'  => $payment_id);
179 179
 
180 180
         if (!$email->save($data)) {
181 181
             throw new Exception('Could not save email to onlinepayment');
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
         if (!$payment_id = $onlinepayment->save($values)) {
133 133
             // this is probably a little to hard reaction.
134
-            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt ' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
134
+            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt '.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
135 135
         }
136 136
 
137 137
         if ($onlinepayment->get('status') == 'authorized') {
@@ -154,19 +154,19 @@  discard block
 block discarded – undo
154 154
 
155 155
             $settings = Doctrine::getTable('Intraface_modules_onlinepayment_Language')->findOneByIntranetId($kernel->intranet->getId());
156 156
 
157
-            $subject = $settings->getConfirmationEmailSubject($shop->getLanguage()) . ' (#' . $payment_id . ')';
158
-            $body = $settings->getConfirmationEmailBody($shop->getLanguage()) . "\n\n" . $this->kernel->intranet->address->get('name');
157
+            $subject = $settings->getConfirmationEmailSubject($shop->getLanguage()).' (#'.$payment_id.')';
158
+            $body = $settings->getConfirmationEmailBody($shop->getLanguage())."\n\n".$this->kernel->intranet->address->get('name');
159 159
         } catch (Exception $e) {
160 160
         }
161 161
 
162 162
         if (empty($subject)) {
163
-            $subject = 'Payment confirmation / betalingsbekræftelse (#' . $payment_id . ')';
163
+            $subject = 'Payment confirmation / betalingsbekræftelse (#'.$payment_id.')';
164 164
         }
165 165
 
166 166
         if (empty($body)) {
167
-            $body    = 'We have received your payment for order #' .$debtor->getId(). '.' . "\n\n";
168
-            $body   .= 'Vi har modtaget din betaling for ordre #' .$debtor->getId(). '.';
169
-            $body   .= "\n\nYours sincerely / Venlig hilsen\n".  $this->kernel->intranet->address->get('name');
167
+            $body    = 'We have received your payment for order #'.$debtor->getId().'.'."\n\n";
168
+            $body   .= 'Vi har modtaget din betaling for ordre #'.$debtor->getId().'.';
169
+            $body   .= "\n\nYours sincerely / Venlig hilsen\n".$this->kernel->intranet->address->get('name');
170 170
         }
171 171
 
172 172
         $data = array('contact_id' => $debtor->getContact()->getId(),
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
         if (!$email->queue()) {
185 185
             $this->error->merge($email->error->getMessage());
186
-            throw new Exception('Could not send email to ' . $debtor->getContact()->getId());
186
+            throw new Exception('Could not send email to '.$debtor->getContact()->getId());
187 187
         }
188 188
 
189 189
         return true;
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
         if (!$payment_id = $onlinepayment->create()) {
205 205
             // this is probably a little to hard reaction
206
-            throw new XML_RPC2_FaultException('onlinepayment could not be created' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
206
+            throw new XML_RPC2_FaultException('onlinepayment could not be created'.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
207 207
         }
208 208
 
209 209
         return $this->prepareResponseData($payment_id);
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/OnlinePayment/Server0001.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,12 +119,12 @@
 block discarded – undo
119 119
         $body   .= "\n\nYours sincerely / Venlig hilsen\n".  $this->kernel->intranet->address->get('name');
120 120
 
121 121
         $data = array('contact_id' => $debtor->getContact()->getId(),
122
-                      'subject'    => $subject,
123
-                      'body'       => $body,
124
-                      'from_email' => $this->kernel->intranet->address->get('email'),
125
-                      'from_name'  => $this->kernel->intranet->address->get('name'),
126
-                      'type_id'    => 13, // onlinepayment
127
-                      'belong_to'  => $payment_id);
122
+                        'subject'    => $subject,
123
+                        'body'       => $body,
124
+                        'from_email' => $this->kernel->intranet->address->get('email'),
125
+                        'from_name'  => $this->kernel->intranet->address->get('name'),
126
+                        'type_id'    => 13, // onlinepayment
127
+                        'belong_to'  => $payment_id);
128 128
 
129 129
         if (!$email->save($data)) {
130 130
             throw new Exception('Could not save email to onlinepayment');
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
         if (!$payment_id = $onlinepayment->save($values)) {
100 100
             // this is probably a little to hard reaction.
101
-            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt ' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
101
+            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt '.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
102 102
         }
103 103
 
104 104
         if ($onlinepayment->get('status') == 'authorized') {
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
         $this->kernel->useShared('email');
114 114
         $email = new Email($this->kernel);
115 115
 
116
-        $subject = 'Payment confirmation / betalingsbekræftelse (#' . $payment_id . ')';
117
-        $body    = 'We have received your payment for order #' .$debtor->getId(). '.' . "\n\n";
118
-        $body   .= 'Vi har modtaget din betaling for ordre #' .$debtor->getId(). '.';
119
-        $body   .= "\n\nYours sincerely / Venlig hilsen\n".  $this->kernel->intranet->address->get('name');
116
+        $subject = 'Payment confirmation / betalingsbekræftelse (#'.$payment_id.')';
117
+        $body    = 'We have received your payment for order #'.$debtor->getId().'.'."\n\n";
118
+        $body   .= 'Vi har modtaget din betaling for ordre #'.$debtor->getId().'.';
119
+        $body   .= "\n\nYours sincerely / Venlig hilsen\n".$this->kernel->intranet->address->get('name');
120 120
 
121 121
         $data = array('contact_id' => $debtor->getContact()->getId(),
122 122
                       'subject'    => $subject,
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
         if (!$email->queue()) {
136 136
             $this->error->merge($email->error->getMessage());
137
-            throw new Exception('Could not send email to ' . $debtor->getContact()->getId());
137
+            throw new Exception('Could not send email to '.$debtor->getContact()->getId());
138 138
             ;
139 139
             return false;
140 140
         }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
         if (!$payment_id = $onlinepayment->create()) {
160 160
             // this is probably a little to hard reaction
161
-            throw new XML_RPC2_FaultException('onlinepayment could not be created' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
161
+            throw new XML_RPC2_FaultException('onlinepayment could not be created'.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
162 162
         }
163 163
 
164 164
         return $this->prepareResponseData($payment_id);
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/OnlinePayment/Server.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         if (!$payment_id = $onlinepayment->save($values)) {
97 97
             // this is probably a little to hard reaction.
98
-            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt ' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
98
+            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt '.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
99 99
         }
100 100
 
101 101
         $this->sendEmailOnOnlinePayment($debtor, $payment_id);
@@ -108,10 +108,10 @@  discard block
 block discarded – undo
108 108
         $this->kernel->useShared('email');
109 109
         $email = new Email($this->kernel);
110 110
 
111
-        $subject = 'Payment confirmation / betalingsbekræftelse (#' . $payment_id . ')';
112
-        $body    = 'We have received your payment for order #' .$debtor->getId(). '.' . "\n\n";
113
-        $body   .= 'Vi har modtaget din betaling for ordre #' .$debtor->getId(). '.';
114
-        $body   .= "\n\nYours sincerely / Venlig hilsen\n".  $this->kernel->intranet->address->get('name');
111
+        $subject = 'Payment confirmation / betalingsbekræftelse (#'.$payment_id.')';
112
+        $body    = 'We have received your payment for order #'.$debtor->getId().'.'."\n\n";
113
+        $body   .= 'Vi har modtaget din betaling for ordre #'.$debtor->getId().'.';
114
+        $body   .= "\n\nYours sincerely / Venlig hilsen\n".$this->kernel->intranet->address->get('name');
115 115
 
116 116
         $data = array('contact_id' => $debtor->getContact()->getId(),
117 117
                       'subject'    => $subject,
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
         if (!$email->queue()) {
131 131
             $this->error->merge($email->error->getMessage());
132
-            throw new Exception('Could not send email to ' . $debtor->getContact()->getId());
132
+            throw new Exception('Could not send email to '.$debtor->getContact()->getId());
133 133
             ;
134 134
             return false;
135 135
         }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
         if (!$payment_id = $onlinepayment->create()) {
155 155
             // this is probably a little to hard reaction
156
-            throw new XML_RPC2_FaultException('onlinepayment could not be created' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
156
+            throw new XML_RPC2_FaultException('onlinepayment could not be created'.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
157 157
         }
158 158
 
159 159
         return $this->prepareResponseData($payment_id);
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,12 +119,12 @@
 block discarded – undo
119 119
         $body   .= "\n\nYours sincerely / Venlig hilsen\n".  $this->kernel->intranet->address->get('name');
120 120
 
121 121
         $data = array('contact_id' => $debtor->getContact()->getId(),
122
-                      'subject'    => $subject,
123
-                      'body'       => $body,
124
-                      'from_email' => $this->kernel->intranet->address->get('email'),
125
-                      'from_name'  => $this->kernel->intranet->address->get('name'),
126
-                      'type_id'    => 13, // onlinepayment
127
-                      'belong_to'  => $payment_id);
122
+                        'subject'    => $subject,
123
+                        'body'       => $body,
124
+                        'from_email' => $this->kernel->intranet->address->get('email'),
125
+                        'from_name'  => $this->kernel->intranet->address->get('name'),
126
+                        'type_id'    => 13, // onlinepayment
127
+                        'belong_to'  => $payment_id);
128 128
 
129 129
         if (!$email->save($data)) {
130 130
             throw new Exception('Could not save email to onlinepayment');
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/OnlinePayment/Server0100.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         if (!$payment_id = $onlinepayment->save($values)) {
135 135
             // this is probably a little to hard reaction.
136
-            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt ' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
136
+            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt '.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
137 137
         }
138 138
 
139 139
         if ($onlinepayment->get('status') == 'authorized') {
@@ -166,19 +166,19 @@  discard block
 block discarded – undo
166 166
             // @todo: Change with gateway.
167 167
             $settings = $doctrine->getTable('Intraface_modules_onlinepayment_Language')->findOneByIntranetId($kernel->intranet->getId());
168 168
 
169
-            $subject = $settings->getConfirmationEmailSubject($shop->getLanguage()) . ' (#' . $payment_id . ')';
170
-            $body = $settings->getConfirmationEmailBody($shop->getLanguage()) . "\n\n" . $this->kernel->intranet->address->get('name');
169
+            $subject = $settings->getConfirmationEmailSubject($shop->getLanguage()).' (#'.$payment_id.')';
170
+            $body = $settings->getConfirmationEmailBody($shop->getLanguage())."\n\n".$this->kernel->intranet->address->get('name');
171 171
         } catch (Exception $e) {
172 172
         }
173 173
 
174 174
         if (empty($subject)) {
175
-            $subject = 'Payment confirmation / betalingsbekræftelse (#' . $payment_id . ')';
175
+            $subject = 'Payment confirmation / betalingsbekræftelse (#'.$payment_id.')';
176 176
         }
177 177
 
178 178
         if (empty($body)) {
179
-            $body    = 'We have received your payment for order #' .$debtor->getId(). '.' . "\n\n";
180
-            $body   .= 'Vi har modtaget din betaling for ordre #' .$debtor->getId(). '.';
181
-            $body   .= "\n\nYours sincerely / Venlig hilsen\n".  $this->kernel->intranet->address->get('name');
179
+            $body    = 'We have received your payment for order #'.$debtor->getId().'.'."\n\n";
180
+            $body   .= 'Vi har modtaget din betaling for ordre #'.$debtor->getId().'.';
181
+            $body   .= "\n\nYours sincerely / Venlig hilsen\n".$this->kernel->intranet->address->get('name');
182 182
         }
183 183
 
184 184
         $data = array('contact_id' => $debtor->getContact()->getId(),
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
         if (!$email->queue()) {
197 197
             $this->error->merge($email->error->getMessage());
198
-            throw new Exception('Could not send email to ' . $debtor->getContact()->getId());
198
+            throw new Exception('Could not send email to '.$debtor->getContact()->getId());
199 199
         }
200 200
 
201 201
         return true;
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
         if (!$payment_id = $onlinepayment->create()) {
217 217
             // this is probably a little to hard reaction
218
-            throw new XML_RPC2_FaultException('onlinepayment could not be created' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
218
+            throw new XML_RPC2_FaultException('onlinepayment could not be created'.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
219 219
         }
220 220
 
221 221
         return $this->prepareResponseData($payment_id);
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -170,12 +170,12 @@
 block discarded – undo
170 170
         }
171 171
 
172 172
         $data = array('contact_id' => $debtor->getContact()->getId(),
173
-                      'subject'    => $subject,
174
-                      'body'       => $body,
175
-                      'from_email' => $this->kernel->intranet->address->get('email'),
176
-                      'from_name'  => $this->kernel->intranet->address->get('name'),
177
-                      'type_id'    => 13, // onlinepayment
178
-                      'belong_to'  => $payment_id);
173
+                        'subject'    => $subject,
174
+                        'body'       => $body,
175
+                        'from_email' => $this->kernel->intranet->address->get('email'),
176
+                        'from_name'  => $this->kernel->intranet->address->get('name'),
177
+                        'type_id'    => 13, // onlinepayment
178
+                        'belong_to'  => $payment_id);
179 179
 
180 180
         if (!$email->save($data)) {
181 181
             throw new Exception('Could not save email to onlinepayment');
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Admin/Server.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@
 block discarded – undo
70 70
         );
71 71
     }
72 72
 
73
-       /**
74
-     * Checking credentials
75
-     *
76
-     * @param struct $master_password
77
-     *
78
-     * @return boolean
79
-     */
73
+        /**
74
+         * Checking credentials
75
+         *
76
+         * @param struct $master_password
77
+         *
78
+         * @return boolean
79
+         */
80 80
     private function checkMasterpassword($master_password)
81 81
     {
82 82
         if ($master_password != 'abcdefghijklmnopqrstuvwxyz123456789#') {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
29 29
         $db = MDB2::singleton(DB_DSN);
30 30
 
31 31
         if (PEAR::isError($db)) {
32
-            throw new XML_RPC2_Exception('error accessing the database ' . $db->getUserInfo());
32
+            throw new XML_RPC2_Exception('error accessing the database '.$db->getUserInfo());
33 33
         }
34 34
 
35 35
         $db->setFetchMode(MDB2_FETCHMODE_ASSOC);
36 36
         $result = $db->query("SELECT id, name, private_key FROM intranet WHERE identifier = ".$db->quote($intranet_identifier, 'text')." AND identifier <> ''");
37 37
 
38 38
         if (PEAR::isError($result)) {
39
-            throw new XML_RPC2_Exception('error querying the database ' . $result->getUserInfo());
39
+            throw new XML_RPC2_Exception('error querying the database '.$result->getUserInfo());
40 40
         }
41 41
 
42 42
         if ($result->numRows() <> 1) {
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/CMS/Server0300.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             // niveau 9999 g�r at den ikke kan genkende den, og tager top_level.
67 67
             // 0 der ellers skulle v�re topmenu virker af en m�rkelig grund ikke. Variablen er ikke registeret som sat!
68 68
             //
69
-            $cmspage->value['navigation_toplevel'] = $cmspage->navigation->build(9999, 'array');    // 'toplevel'
69
+            $cmspage->value['navigation_toplevel'] = $cmspage->navigation->build(9999, 'array'); // 'toplevel'
70 70
             $cmspage->value['navigation_sublevel'] = $cmspage->navigation->build(1, 'array'); // 'sublevel'
71 71
             $cmspage->value['sections'] = $cmspage->collect();
72 72
             $cmspage->value['comments'] = $cmspage->getComments();
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $this->factory($site_id);
150 150
 
151 151
         $cmspage = new CMS_Page($this->site);
152
-        $value['toplevel'] = $cmspage->navigation->build(9999, 'array');    // 'toplevel'
152
+        $value['toplevel'] = $cmspage->navigation->build(9999, 'array'); // 'toplevel'
153 153
         $value['sublevel'] = $cmspage->navigation->build(1, 'array'); // 'sublevel'
154 154
 
155 155
         return $this->prepareResponseData($value);
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
  */
10 10
 class Intraface_XMLRPC_CMS_Server0300 extends Intraface_XMLRPC_Server
11 11
 {
12
+    /**
13
+     * @param integer $site_id
14
+     */
12 15
     private function factory($site_id)
13 16
     {
14 17
         if (!$this->kernel->weblogin->hasModuleAccess('cms')) { // -2
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/CMS/Server.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
              * niveau 9999 g�r at den ikke kan genkende den, og tager top_level.
68 68
              * 0 der ellers skulle v�re topmenu virker af en m�rkelig grund ikke. Variablen er ikke registeret som sat!
69 69
              */
70
-            $cmspage->value['navigation_toplevel'] = $cmspage->navigation->build(9999, 'array');    // 'toplevel'
70
+            $cmspage->value['navigation_toplevel'] = $cmspage->navigation->build(9999, 'array'); // 'toplevel'
71 71
             $cmspage->value['navigation_sublevel'] = $cmspage->navigation->build(1, 'array'); // 'sublevel'
72 72
             $cmspage->value['sections'] = $cmspage->collect();
73 73
             $cmspage->value['comments'] = $cmspage->getComments();
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
     private $credentials;
13 13
     private $kernel;
14 14
 
15
+    /**
16
+     * @param integer $site_id
17
+     */
15 18
     private function factory($site_id)
16 19
     {
17 20
         if (!$this->kernel->weblogin->hasModuleAccess('cms')) { // -2
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/CMS/Server0400.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             // level 9999 cannot be recognized, so we take top level
64 64
             // 0 which should be top level does not work - the variable is not set
65 65
 
66
-            $cmspage->value['navigation_toplevel'] = $cmspage->navigation->build(9999, 'array');    // 'toplevel'
66
+            $cmspage->value['navigation_toplevel'] = $cmspage->navigation->build(9999, 'array'); // 'toplevel'
67 67
             $cmspage->value['navigation_sublevel'] = $cmspage->navigation->build(1, 'array'); // 'sublevel'
68 68
             $cmspage->value['sections'] = $cmspage->collect();
69 69
             $cmspage->value['comments'] = $cmspage->getComments();
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         $this->factory($site_id);
146 146
 
147 147
         $cmspage = new CMS_Page($this->site);
148
-        $value['toplevel'] = $cmspage->navigation->build(9999, 'array');    // 'toplevel'
148
+        $value['toplevel'] = $cmspage->navigation->build(9999, 'array'); // 'toplevel'
149 149
         $value['sublevel'] = $cmspage->navigation->build(1, 'array'); // 'sublevel'
150 150
 
151 151
         return $this->prepareResponseData($value);
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
  */
10 10
 class Intraface_XMLRPC_CMS_Server0400 extends Intraface_XMLRPC_Server0100
11 11
 {
12
+    /**
13
+     * @param integer $site_id
14
+     */
12 15
     private function factory($site_id)
13 16
     {
14 17
         if (!$this->kernel->weblogin->hasModuleAccess('cms')) { // -2
Please login to merge, or discard this patch.
src/Intraface/Main.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     function includeFile($file)
161 161
     {
162 162
         // @todo constant should be removed
163
-        $file = PATH_INCLUDE_MODULE . $this->module_name . '/' . $file;
163
+        $file = PATH_INCLUDE_MODULE.$this->module_name.'/'.$file;
164 164
         if (!file_exists($file)) {
165 165
             return false;
166 166
         }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         // @todo global should be removed
220 220
         global $_setting; // globalized other places also
221 221
 
222
-        include(dirname(__FILE__). '/modules/' .$this->module_name.'/'.$file);
222
+        include(dirname(__FILE__).'/modules/'.$this->module_name.'/'.$file);
223 223
     }
224 224
 
225 225
     /**
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     public function getPath()
231 231
     {
232
-        return PATH_WWW . 'restricted/module/' . $this->module_name . '/';
232
+        return PATH_WWW.'restricted/module/'.$this->module_name.'/';
233 233
     }
234 234
 
235 235
     /**
Please login to merge, or discard this patch.