Completed
Push — master ( 761c35...904cd9 )
by Dmitry
02:07
created
src/ErrorResponse.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
         {
43 43
             throw new FormatException('invalid json response!');
44 44
         }
45
-        $this->error_code = (isset($this->json['error']['code']))?$this->json['error']['code']:'undefined';
45
+        $this->error_code = (isset($this->json['error']['code'])) ? $this->json['error']['code'] : 'undefined';
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *      @param array $value
44 44
      *      @return array
45 45
      */
46
-    public function data($value=null)
46
+    public function data($value = null)
47 47
     {
48 48
         if ($value !== null)
49 49
         {
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
      *      @param mixed $value
60 60
      *      @return string
61 61
      */
62
-    protected function as_string($value=null)
62
+    protected function as_string($value = null)
63 63
     {
64
-        return (is_scalar($value))?((is_bool($value))?(($value)?'true':'false'):"$value"):null;
64
+        return (is_scalar($value)) ? ((is_bool($value)) ? (($value) ? 'true' : 'false') : "$value") : null;
65 65
     }
66 66
 
67 67
     /**
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
      *      @param mixed $value
71 71
      *      @return integer
72 72
      */
73
-    protected function as_int($value=null)
73
+    protected function as_int($value = null)
74 74
     {
75
-        return (is_int($value))?$value:null;
75
+        return (is_int($value)) ? $value : null;
76 76
     }
77 77
 
78 78
     /**
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
      *      @param mixed $value
82 82
      *      @return array
83 83
      */
84
-    protected function as_array($value=null)
84
+    protected function as_array($value = null)
85 85
     {
86
-        return (is_array($value))?$value:null;
86
+        return (is_array($value)) ? $value : null;
87 87
     }
88 88
 
89 89
     /**
Please login to merge, or discard this patch.
src/Orders/Create/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      *      @param string $value
38 38
      *      @return string
39 39
      */
40
-    public function sessionId($value=null)
40
+    public function sessionId($value = null)
41 41
     {
42 42
         if ($value !== null)
43 43
         {
Please login to merge, or discard this patch.
src/Orders/Cancel/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *      @param string $value
43 43
      *      @return string
44 44
      */
45
-    public function sessionId($value=null)
45
+    public function sessionId($value = null)
46 46
     {
47 47
         if ($value !== null)
48 48
         {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *      @param string $value
59 59
      *      @return string
60 60
      */
61
-    public function id($value=null)
61
+    public function id($value = null)
62 62
     {
63 63
         if ($value !== null)
64 64
         {
Please login to merge, or discard this patch.
src/Orders/Show/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      *      @param string $value
38 38
      *      @return string
39 39
      */
40
-    public function id($value=null)
40
+    public function id($value = null)
41 41
     {
42 42
         if ($value !== null)
43 43
         {
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
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
      *      @param string $message
12 12
      *      @param Throwable $previous
13 13
      */
14
-    public function __construct($message, \Exception $previous=null, $tracelog=false)
14
+    public function __construct($message, \Exception $previous = null, $tracelog = false)
15 15
     {
16
-        Log::instance()->error($message.(($tracelog)?PHP_EOL.$this->getTraceAsString():null));
16
+        Log::instance()->error($message.(($tracelog) ?PHP_EOL.$this->getTraceAsString() : null));
17 17
         $code = 0;
18 18
         parent::__construct($message, $code, $previous);
19 19
     }
Please login to merge, or discard this patch.
src/Sessions/Create/Request.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
      *      @param string $value
43 43
      *      @return string
44 44
      */
45
-    public function clientId($value=null)
45
+    public function clientId($value = null)
46 46
     {
47 47
         if ($value !== null)
48 48
         {
Please login to merge, or discard this patch.
src/Callback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     protected function get_http_raw_post_data()
82 82
     {
83
-        Log::instance()->add('callback request from ' . $_SERVER['REMOTE_ADDR']);
83
+        Log::instance()->add('callback request from '.$_SERVER['REMOTE_ADDR']);
84 84
 
85 85
         $raw_request = file_get_contents('php://input');
86 86
 
Please login to merge, or discard this patch.
src/Reports/Client/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      *      @param string $value
38 38
      *      @return string
39 39
      */
40
-    public function sessionId($value=null)
40
+    public function sessionId($value = null)
41 41
     {
42 42
         if ($value !== null)
43 43
         {
Please login to merge, or discard this patch.