Completed
Push — master ( 06e75e...4dd477 )
by Florian
06:57
created
lib/Payone/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
         if (is_array($validatorConfig)) {
390 390
             $validator = array();
391 391
             foreach ($validatorConfig as $config) {
392
-                if ($config === 'default' or ! class_exists($config)) {
392
+                if ($config === 'default' or !class_exists($config)) {
393 393
                     return null;
394 394
                 } else {
395 395
                     $validator[] = new $config();
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
             return $validator;
400 400
         } else {
401 401
             // Load validator by config (if non-default):
402
-            if ($validatorConfig === 'default' or ! class_exists($validatorConfig)) {
402
+            if ($validatorConfig === 'default' or !class_exists($validatorConfig)) {
403 403
                 return null;
404 404
             } else {
405 405
                 $validator = new $validatorConfig();
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/Shop/Global.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     protected $parameter_invoice = array();
53 53
 
54 54
     /** @var Payone_Settings_Data_ConfigFile_Global_StatusMapping */
55
-    protected $status_mapping = null ;
55
+    protected $status_mapping = null;
56 56
 
57 57
     /** @var array */
58 58
     protected $payment_creditcard = array();
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/Root.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,6 +68,6 @@
 block discarded – undo
68 68
 
69 69
     public function addShop($shop)
70 70
     {
71
-        return $this->shop[]=$shop;
71
+        return $this->shop[] = $shop;
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Abstract.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
     protected $title = '';
42 42
 
43 43
     protected $mid = null;
44
-    protected $aid =null;
44
+    protected $aid = null;
45 45
     protected $portalid = null;
46 46
     protected $fee_config = array();
47 47
     protected $min_order_total = null;
48
-    protected $max_order_total =null;
48
+    protected $max_order_total = null;
49 49
     /** @var string */
50 50
     protected $types = null;
51 51
     /** @var string */
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     public function addFeeConfig($value)
115 115
     {
116
-        return $this->fee_config[]=$value;
116
+        return $this->fee_config[] = $value;
117 117
     }
118 118
 
119 119
     public function setMaxOrderTotal($max_order_total)
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/PaymentMethod/CashOnDelivery.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * @param string $active
58 58
      */
59
-    public function setActive( $active)
59
+    public function setActive($active)
60 60
     {
61 61
         $this->active = $active;
62 62
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * @param string $authorization
74 74
      */
75
-    public function setAuthorization( $authorization)
75
+    public function setAuthorization($authorization)
76 76
     {
77 77
         $this->authorization = $authorization;
78 78
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     /**
89 89
      * @param string $countries
90 90
      */
91
-    public function setCountries( $countries)
91
+    public function setCountries($countries)
92 92
     {
93 93
         $this->countries = $countries;
94 94
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * @param string $mode
107 107
      */
108
-    public function setMode( $mode)
108
+    public function setMode($mode)
109 109
     {
110 110
         $this->mode = $mode;
111 111
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * @param string $newOrderStatus
123 123
      */
124
-    public function setNewOrderStatus( $newOrderStatus)
124
+    public function setNewOrderStatus($newOrderStatus)
125 125
     {
126 126
         $this->newOrderStatus = $newOrderStatus;
127 127
     }
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerHierarchy.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
 	 * @return Logger Logger instance.
113 113
 	 */
114 114
 	public function getLogger($name) {
115
-		if(!isset($this->loggers[$name])) {
115
+		if (!isset($this->loggers[$name])) {
116 116
 			$logger = new Payone_Log4php_Logger($name);
117 117
 
118 118
 			$nodes = explode('.', $name);
119 119
 			$firstNode = array_shift($nodes);
120 120
 			
121 121
 			// if name is not a first node but another first node is their
122
-			if($firstNode != $name and isset($this->loggers[$firstNode])) {
122
+			if ($firstNode != $name and isset($this->loggers[$firstNode])) {
123 123
 				$logger->setParent($this->loggers[$firstNode]);
124 124
 			} else {
125 125
 				// if there is no father, set root logger as father
@@ -127,11 +127,11 @@  discard block
 block discarded – undo
127 127
 			} 
128 128
 		
129 129
 			// if there are more nodes than one
130
-			if(count($nodes) > 0) {
130
+			if (count($nodes) > 0) {
131 131
 				// find parent node
132
-				foreach($nodes as $node) {
132
+				foreach ($nodes as $node) {
133 133
 					$parentNode = "$firstNode.$node";
134
-					if(isset($this->loggers[$parentNode]) and $parentNode != $name) {
134
+					if (isset($this->loggers[$parentNode]) and $parentNode != $name) {
135 135
 						$logger->setParent($this->loggers[$parentNode]);
136 136
 					}
137 137
 					$firstNode .= ".$node";
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @return Payone_Log4php_LoggerRoot
158 158
 	 */ 
159 159
 	public function getRootLogger() {
160
-		if(!isset($this->root) or $this->root == null) {
160
+		if (!isset($this->root) or $this->root == null) {
161 161
 			$this->root = new Payone_Log4php_LoggerRoot();
162 162
 		}
163 163
 		return $this->root;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 		$this->setThreshold(Payone_Log4php_LoggerLevel::getLevelAll());
202 202
 		$this->shutDown();
203 203
 		
204
-		foreach($this->loggers as $logger) {
204
+		foreach ($this->loggers as $logger) {
205 205
 			$logger->setLevel(null);
206 206
 			$logger->setAdditivity(true);
207 207
 			$logger->removeAllAppenders();
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 	public function shutdown() {
234 234
 		$this->root->removeAllAppenders();
235 235
 		
236
-		foreach($this->loggers as $logger) {
236
+		foreach ($this->loggers as $logger) {
237 237
 			$logger->removeAllAppenders();
238 238
 		}
239 239
 	}
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerAppenderPhp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
 class Payone_Log4php_LoggerAppenderPhp extends Payone_Log4php_LoggerAppender {
43 43
 
44 44
 	public function append(Payone_Log4php_LoggerLoggingEvent $event) {
45
-		if($this->layout !== null) {
45
+		if ($this->layout !== null) {
46 46
 			$level = $event->getLevel();
47
-			if($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelError())) {
47
+			if ($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelError())) {
48 48
 				trigger_error($this->layout->format($event), E_USER_ERROR);
49 49
 			} else if ($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelWarn())) {
50 50
 				trigger_error($this->layout->format($event), E_USER_WARNING);
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerPatternConverterSuperglobal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 		// When the key is not set, display all values
87 87
 		else {
88 88
 			$values = array();
89
-			foreach($source as $key => $value) {
89
+			foreach ($source as $key => $value) {
90 90
 				$values[] = "$key=$value";
91 91
 			}
92 92
 			$this->value = implode(', ', $values);			
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerLayoutHtml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 		if ($this->locationInfo) {
150 150
 			$locInfo = $event->getLocationInformation();
151 151
 			$sbuf .= "<td>";
152
-			$sbuf .= htmlentities($locInfo->getFileName(), ENT_QUOTES). ':' . $locInfo->getLineNumber();
152
+			$sbuf .= htmlentities($locInfo->getFileName(), ENT_QUOTES) . ':' . $locInfo->getLineNumber();
153 153
 			$sbuf .= "</td>" . PHP_EOL;
154 154
 		}
155 155
 
Please login to merge, or discard this patch.