Completed
Push — master ( 5c2100...1b2de0 )
by Laurynas
47:44 queued 03:50
created
src/Client.php 1 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.
src/Submission/Entry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function date($id, $date)
105 105
     {
106
-        if (! Util::isValidDate($date)) {
106
+        if (!Util::isValidDate($date)) {
107 107
             throw new InvalidArgumentException("Date must be provided in Y-m-d format");
108 108
         }
109 109
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $this->additional['mark_complete'] = 1;
151 151
         }
152 152
 
153
-        return $this->client->post('survey/'. $this->client->getSurveyId() .'/entries', $this->data, $this->additional);
153
+        return $this->client->post('survey/' . $this->client->getSurveyId() . '/entries', $this->data, $this->additional);
154 154
     }
155 155
 
156 156
 }
157 157
\ No newline at end of file
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__.'/TestCase.php';
4
-require __DIR__.'/../vendor/autoload.php';
3
+require __DIR__ . '/TestCase.php';
4
+require __DIR__ . '/../vendor/autoload.php';
Please login to merge, or discard this patch.
tests/Submission/EntryTest.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
         $response = Entry::build($this->client)
54 54
              ->uniqueId($id)
55
-             ->email('q_3RYJ4MpggyMFuU50', $id."[email protected]")
55
+             ->email('q_3RYJ4MpggyMFuU50', $id . "[email protected]")
56 56
              ->send();
57 57
 
58 58
         self::assertEquals('success', $response['message']);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $id = uniqid('', true);
65 65
 
66 66
         $response = Entry::build($this->client)
67
-                         ->email('q_3RYJ4MpggyMFuU50', $id."[email protected]")
67
+                         ->email('q_3RYJ4MpggyMFuU50', $id . "[email protected]")
68 68
                          ->response('q_tVabQ3cUlwZTgQ10', 'o_ACvo61cUuKXxD5C1')
69 69
                          ->send();
70 70
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $response = Entry::build($this->client)
80 80
              ->uniqueId($id)
81
-             ->email('q_3RYJ4MpggyMFuU50', $id."[email protected]")
81
+             ->email('q_3RYJ4MpggyMFuU50', $id . "[email protected]")
82 82
              ->name('q_KCyzOs7VqevWbEO0', "Unit", "Tester")
83 83
              ->date('q_1J75WdyBwVpwlJUM', date('Y-m-d'))
84 84
              ->response('q_KCyzOs7VqevWbEO0', ['o_wCcuY5a54YBeXLC1', 'o_ACvo61cUuKXxD5C1'])
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         $response = Entry::build($this->client)
96 96
              ->uniqueId($id)
97
-             ->email('q_3RYJ4MpggyMFuU50', $id."[email protected]")
97
+             ->email('q_3RYJ4MpggyMFuU50', $id . "[email protected]")
98 98
              ->send(true);
99 99
 
100 100
         self::assertEquals('success', $response['message']);
Please login to merge, or discard this patch.