Completed
Pull Request — master (#26)
by Lars
10:03
created
src/intraface.dk/demo/Demo/Login/Root.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 {
4 4
     function renderHtml()
5 5
     {
6
-        return get_class($this) . ' has intentionally been left blank';
6
+        return get_class($this).' has intentionally been left blank';
7 7
     }
8 8
 
9 9
     function getPrivateKey()
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
 
24 24
     function getContactClient()
25 25
     {
26
-        return new IntrafacePublic_Contact_XMLRPC_Client($this->getCredentials(), false, INTRAFACE_XMLPRC_SERVER_PATH . "contact/server.php");
26
+        return new IntrafacePublic_Contact_XMLRPC_Client($this->getCredentials(), false, INTRAFACE_XMLPRC_SERVER_PATH."contact/server.php");
27 27
     }
28 28
 
29 29
     function getNewsletterClient()
30 30
     {
31
-        return new IntrafacePublic_Newsletter_XMLRPC_Client($this->getCredentials(), false, INTRAFACE_XMLPRC_SERVER_PATH . "newsletter/server.php");
31
+        return new IntrafacePublic_Newsletter_XMLRPC_Client($this->getCredentials(), false, INTRAFACE_XMLPRC_SERVER_PATH."newsletter/server.php");
32 32
     }
33 33
 
34 34
     function getDebtorClient()
35 35
     {
36
-        return new IntrafacePublic_Debtor_XMLRPC_Client($this->getCredentials(), true, INTRAFACE_XMLPRC_SERVER_PATH . "debtor/server.php");
36
+        return new IntrafacePublic_Debtor_XMLRPC_Client($this->getCredentials(), true, INTRAFACE_XMLPRC_SERVER_PATH."debtor/server.php");
37 37
     }
38 38
 
39 39
     function execute()
Please login to merge, or discard this patch.
src/intraface.dk/demo/Demo/Newsletter/Show.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     private function getCredentials()
33 33
     {
34 34
         return array("private_key" => $this->context->getPrivateKey(),
35
-                     "session_id" => md5($this->session()->sessionId()));
35
+                        "session_id" => md5($this->session()->sessionId()));
36 36
     }
37 37
 
38 38
     function getNewsletter()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $this->getCredentials(),
44 44
             $list_id,
45 45
             $debug,
46
-            INTRAFACE_XMLPRC_SERVER_PATH . "newsletter/server0101.php",
46
+            INTRAFACE_XMLPRC_SERVER_PATH."newsletter/server0101.php",
47 47
             'utf-8'
48 48
         ); // , 'iso-8859-1', 'xmlrpcext'
49 49
         return $client;
Please login to merge, or discard this patch.
src/intraface.dk/demo/Demo/Newsletter/Root.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     function renderHtml()
12 12
     {
13
-        return get_class($this) . ' intentionally left blank';
13
+        return get_class($this).' intentionally left blank';
14 14
     }
15 15
 
16 16
     function getPrivateKey()
Please login to merge, or discard this patch.
src/intraface.dk/demo/Demo/CMS/Root.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 {
4 4
     function renderHtml()
5 5
     {
6
-        return get_class($this) . ' has intentionally been left blank';
6
+        return get_class($this).' has intentionally been left blank';
7 7
     }
8 8
 
9 9
     function getPrivateKey()
Please login to merge, or discard this patch.
src/intraface.dk/demo/Demo/Root.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     function renderHtml()
17 17
     {
18
-        return get_class($this) . ' intentionally left blank';
18
+        return get_class($this).' intentionally left blank';
19 19
     }
20 20
 
21 21
     function execute()
Please login to merge, or discard this patch.
src/intraface.dk/demo/Demo/Shop/Show.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     private function getCredentials()
42 42
     {
43 43
         return array("private_key" => $this->context->getPrivateKey(),
44
-                     "session_id" => md5($this->session()->sessionId()));
44
+                        "session_id" => md5($this->session()->sessionId()));
45 45
     }
46 46
 
47 47
     private function intranetHasOnlinePaymentAccess()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             $this->getCredentials(),
61 61
             $shop_id,
62 62
             $debug,
63
-            INTRAFACE_XMLPRC_SERVER_PATH . "shop/server0100.php",
63
+            INTRAFACE_XMLPRC_SERVER_PATH."shop/server0100.php",
64 64
             'utf-8'
65 65
         ); // 'iso-8859-1', 'xmlrpcext'
66 66
         return new IntrafacePublic_Shop($client, $this->cache);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 new IntrafacePublic_OnlinePayment_Client_XMLRPC(
75 75
                     $this->getCredentials(),
76 76
                     $debug,
77
-                    INTRAFACE_XMLPRC_SERVER_PATH . "onlinepayment/server0100.php", // , 'iso-8859-1', 'xmlrpcext'
77
+                    INTRAFACE_XMLPRC_SERVER_PATH."onlinepayment/server0100.php", // , 'iso-8859-1', 'xmlrpcext'
78 78
                     'utf-8'
79 79
                 ),
80 80
                 $this->cache
Please login to merge, or discard this patch.
src/intraface.dk/webservice/xmlrpc/index.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
 $HTTP_RAW_POST_DATA = file_get_contents('php://input');
33 33
 
34 34
 k()
35
-  ->setIdentityLoader(new MyIdentityLoader())
36
-  // Use container for wiring of components
37
-  ->setComponentCreator(new k_InjectorAdapter(new bucket_Container(new Intraface_Factory)))
38
-  // Enable file logging
39
-  //->setLog(dirname(__FILE__) . '/../log/debug.log')
40
-  // Uncomment the next line to enable in-browser debugging
41
-  //->setDebug()
42
-  // Dispatch request
43
-  ->run('Intraface_XMLRPC_Controller')
44
-  ->out();
35
+    ->setIdentityLoader(new MyIdentityLoader())
36
+    // Use container for wiring of components
37
+    ->setComponentCreator(new k_InjectorAdapter(new bucket_Container(new Intraface_Factory)))
38
+    // Enable file logging
39
+    //->setLog(dirname(__FILE__) . '/../log/debug.log')
40
+    // Uncomment the next line to enable in-browser debugging
41
+    //->setDebug()
42
+    // Dispatch request
43
+    ->run('Intraface_XMLRPC_Controller')
44
+    ->out();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-require_once dirname(__FILE__) . '/../../common.php';
2
+require_once dirname(__FILE__).'/../../common.php';
3 3
 require_once 'konstrukt/konstrukt.inc.php';
4 4
 require_once 'Ilib/ClassLoader.php';
5 5
 require_once 'konstrukt/konstrukt.inc.php';
Please login to merge, or discard this patch.
src/intraface.dk/core/index.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
310 310
  * Translates a string.
311 311
  */
312 312
 function __($str) {
313
-  return $GLOBALS['k_current_context']->translator()->translate($str);
313
+    return $GLOBALS['k_current_context']->translator()->translate($str);
314 314
 }
315 315
 
316 316
 if (realpath($_SERVER['SCRIPT_FILENAME']) == __FILE__) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,9 @@
 block discarded – undo
285 285
     public $options;
286 286
     function options()
287 287
     {
288
-        if (empty($this->options)) return array();
288
+        if (empty($this->options)) {
289
+            return array();
290
+        }
289 291
         return $this->options;
290 292
     }
291 293
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$config_file = dirname(__FILE__) . DIRECTORY_SEPARATOR . '/../config.local.php';
2
+$config_file = dirname(__FILE__).DIRECTORY_SEPARATOR.'/../config.local.php';
3 3
 
4 4
 if (!file_exists($config_file)) {
5 5
     die('The config.local.php file is missing. Please create it.');
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 set_error_handler('intraface_exceptions_error_handler', error_reporting());
19 19
 
20
-require_once dirname(__FILE__) . '/../../../vendor/autoload.php';
20
+require_once dirname(__FILE__).'/../../../vendor/autoload.php';
21 21
 require_once 'Intraface/common.php';
22 22
 spl_autoload_register('k_autoload');
23 23
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             $res = $translation2->setLang($lang);
131 131
 
132 132
             if (PEAR::isError($res)) {
133
-                throw new Exception('Could not setLang():' . $res->getMessage());
133
+                throw new Exception('Could not setLang():'.$res->getMessage());
134 134
             }
135 135
 
136 136
             $this->page = $translation2->getPage('common');
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 {
221 221
     function create($filename)
222 222
     {
223
-        $filename = $filename . '.tpl.php';
223
+        $filename = $filename.'.tpl.php';
224 224
         $__template_filename__ = k_search_include_path($filename);
225 225
         if (!is_file($__template_filename__)) {
226 226
             throw new Exception("Failed opening '".$filename."' for inclusion. (include_path=".ini_get('include_path').")");
Please login to merge, or discard this patch.
cron/common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 /**
3 3
  * Set environment for the crontabs
4 4
  */
5
-$config_file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.local.php';
5
+$config_file = dirname(__FILE__).DIRECTORY_SEPARATOR.'config.local.php';
6 6
 if (!file_exists($config_file)) {
7 7
     die('The config.local.php file is missing. Please create it.');
8 8
 }
Please login to merge, or discard this patch.