Passed
Push — master ( 1266bf...5a0d0e )
by Dmitry
02:03
created
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.
src/Provider31/Response.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
      *      @param string $name
53 53
      *      @param string $value (optional)
54 54
      */
55
-    public function createElement($name, $value=NULL)
55
+    public function createElement($name, $value = NULL)
56 56
     {
57 57
         return parent::createElement($name, $value);
58 58
     }
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
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 		$this->AccountInfo = $this->createElement('AccountInfo');
49 49
 		$this->Response->appendChild($this->AccountInfo);
50 50
 
51
-		foreach($accountinfo as $parameter=>$value)
51
+		foreach ($accountinfo as $parameter=>$value)
52 52
 		{
53 53
 			$this->AccountInfo->appendChild($this->createElement($parameter, $value));
54 54
 		}
Please login to merge, or discard this patch.
src/Provider31/Request/RAW.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function get_http_raw_post_data()
54 54
     {
55
-        Log::instance()->add('request from ' . $_SERVER['REMOTE_ADDR']);
55
+        Log::instance()->add('request from '.$_SERVER['REMOTE_ADDR']);
56 56
 
57 57
         $this->raw_request = file_get_contents('php://input');
58 58
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $doc = new \DOMDocument();
87 87
         if ( ! $doc->loadXML($this->raw_request))
88 88
         {
89
-            foreach(libxml_get_errors() as $e){
89
+            foreach (libxml_get_errors() as $e) {
90 90
                 Log::instance()->error($e->message);
91 91
             }
92 92
             throw new Exception\Structure('The wrong XML is received', -51);
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
      *
105 105
      *      @return array nodes with the name
106 106
      */
107
-    protected function getNodes($dom, $name, $ret=array())
107
+    protected function getNodes($dom, $name, $ret = array())
108 108
     {
109
-        foreach($dom->childNodes as $child)
109
+        foreach ($dom->childNodes as $child)
110 110
         {
111 111
             if ($child->nodeName == $name)
112 112
             {
Please login to merge, or discard this patch.
src/Provider31/Request/General.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      *      @var array list of possible operations
49 49
      */
50
-    protected $operations = array('Check','Payment','Confirm','Cancel');
50
+    protected $operations = array('Check', 'Payment', 'Confirm', 'Cancel');
51 51
 
52 52
     /**
53 53
      *      General constructor
Please login to merge, or discard this patch.