Passed
Branch master (90bcaa)
by Laurynas
06:31
created
src/Submission/Entry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function date($id, $date)
104 104
     {
105
-        if (! Util::isValidDate($date)) {
105
+        if (!Util::isValidDate($date)) {
106 106
             throw new \InvalidArgumentException("Date must be provided in Y-m-d format");
107 107
         }
108 108
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             $this->additional['mark_complete'] = 1;
150 150
         }
151 151
 
152
-        return $this->client->post('survey/'. $this->client->getSurveyId() .'/entries', $this->data, $this->additional);
152
+        return $this->client->post('survey/' . $this->client->getSurveyId() . '/entries', $this->data, $this->additional);
153 153
     }
154 154
 
155 155
 }
156 156
\ No newline at end of file
Please login to merge, or discard this patch.
src/Client.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,6 @@
 block discarded – undo
77 77
         echo("You may want to view this in your browser with enabled JSON Formatter or with REST API Client: $url");
78 78
 
79 79
         return Request::get($url)
80
-                      ->send()->body;
80
+                        ->send()->body;
81 81
     }
82 82
 }
83 83
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $template = Request::init()
29 29
             ->withStrictSSL()
30 30
             ->addHeader('Authorization', 'token')
31
-            ->addHeader('User-Agent', 'Qualia API/PHP/'. PHP_VERSION . ' (' . PHP_OS . ')')
31
+            ->addHeader('User-Agent', 'Qualia API/PHP/' . PHP_VERSION . ' (' . PHP_OS . ')')
32 32
             ->parseWith(function($body) {
33 33
                 return json_decode($body, true);
34 34
             })
Please login to merge, or discard this patch.