Passed
Push — master ( 29e6e2...1e3734 )
by Dmitry
01:35
created
src/Provider31/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
          *      @param string $name
42 42
          *      @param string $value (optional)
43 43
          */
44
-        public function createElement($name, $value=NULL)
44
+        public function createElement($name, $value = NULL)
45 45
         {
46 46
                 return parent::createElement($name, $value);
47 47
         }
Please login to merge, or discard this patch.
src/Provider31/Request/General.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         /**
40 40
          *      @var array list of possible operations
41 41
          */
42
-        protected $operations = array('Check','Payment','Confirm','Cancel');
42
+        protected $operations = array('Check', 'Payment', 'Confirm', 'Cancel');
43 43
         
44 44
         /**
45 45
          *      General constructor
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
          */
223 223
         public function verify_sign($options)
224 224
         {
225
-                if (!isset($options['UseSign']) || ($options['UseSign'] === false))
225
+                if ( ! isset($options['UseSign']) || ($options['UseSign'] === false))
226 226
                 {
227 227
                         return null;
228 228
                 }
@@ -276,9 +276,9 @@  discard block
 block discarded – undo
276 276
          *
277 277
          *      @return array nodes with the name 
278 278
          */
279
-        protected function getNodes($dom, $name, $ret=array())
279
+        protected function getNodes($dom, $name, $ret = array())
280 280
         {
281
-                foreach($dom->childNodes as $child)
281
+                foreach ($dom->childNodes as $child)
282 282
                 {
283 283
                         if ($child->nodeName == $name)
284 284
                         {
Please login to merge, or discard this patch.
src/Provider31/Response/Check.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 		$this->AccountInfo = self::createElement('AccountInfo');
43 43
 		$this->Response->appendChild($this->AccountInfo);
44 44
 		
45
-		foreach($accountinfo as $parameter=>$value)
45
+		foreach ($accountinfo as $parameter=>$value)
46 46
 		{
47 47
 			$this->AccountInfo->appendChild(self::createElement($parameter, $value));
48 48
 		}
Please login to merge, or discard this patch.
src/Provider31/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
          */
72 72
         private static function get_http_raw_post_data()
73 73
         {
74
-                Log::instance()->add('request from ' . $_SERVER['REMOTE_ADDR']);
74
+                Log::instance()->add('request from '.$_SERVER['REMOTE_ADDR']);
75 75
                 
76 76
                 $raw_request = file_get_contents('php://input');
77 77
                 
Please login to merge, or discard this patch.
src/Exception/Runtime.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
          *      @param string $message
21 21
          *      @param \Throwable $previous
22 22
          */
23
-        public function __construct($message, $code=0, \Exception $previous=null)
23
+        public function __construct($message, $code = 0, \Exception $previous = null)
24 24
         {
25 25
                 parent::__construct($message, $code, $previous, true);
26 26
         }
Please login to merge, or discard this patch.
src/Exception/General.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
          *      @param string $message
22 22
          *      @param \Throwable $previous
23 23
          */
24
-        public function __construct($message, $code=0, \Exception $previous=null, $tracelog=false)
24
+        public function __construct($message, $code = 0, \Exception $previous = null, $tracelog = false)
25 25
         {
26
-                Log::instance()->error($message.(($tracelog)?PHP_EOL.$this->getTraceAsString():null));
26
+                Log::instance()->error($message.(($tracelog) ?PHP_EOL.$this->getTraceAsString() : null));
27 27
                 parent::__construct($message, $code, $previous);
28 28
         }
29 29
 }
Please login to merge, or discard this patch.