Completed
Push — master ( 6c59a0...1892a3 )
by Mario
06:26
created
lib/API/Value/Parameter/Input/CityName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             return $this->name;
56 56
         }
57 57
 
58
-        return $this->name . ',' . (string) $this->code;
58
+        return $this->name . ',' . (string)$this->code;
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
lib/API/Value/Parameter/Input/DaysCount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function getGetParameterValue(): string
38 38
     {
39
-        return (string) $this->count;
39
+        return (string)$this->count;
40 40
     }
41 41
 
42 42
     /**
Please login to merge, or discard this patch.
lib/API/Value/Parameter/Input/CityCount.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
      */
29 29
     public function getGetParameterValue(): string
30 30
     {
31
-        return (string) $this->cnt;
31
+        return (string)$this->cnt;
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
lib/API/Value/Parameter/Input/GeographicCoordinates.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@
 block discarded – undo
51 51
      */
52 52
     public function getUriParameterValue(): string
53 53
     {
54
-        return (string) $this->latitude->getLatitude() .
54
+        return (string)$this->latitude->getLatitude() .
55 55
             ',' .
56
-            (string) $this->longitude->getLongitude();
56
+            (string)$this->longitude->getLongitude();
57 57
     }
58 58
 
59 59
     /**
Please login to merge, or discard this patch.
lib/API/Value/Parameter/Input/ZipCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@
 block discarded – undo
36 36
     public function getGetParameterValue(): string
37 37
     {
38 38
         if (null === $this->countryCode) {
39
-            return (string) $this->zip;
39
+            return (string)$this->zip;
40 40
         }
41 41
 
42
-        return (string) $this->zip . ',' . $this->countryCode;
42
+        return (string)$this->zip . ',' . $this->countryCode;
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
lib/API/Value/Parameter/Input/CityId.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function getGetParameterValue(): string
38 38
     {
39
-        return (string) $this->cityId;
39
+        return (string)$this->cityId;
40 40
     }
41 41
 
42 42
     /**
Please login to merge, or discard this patch.
lib/API/Value/Parameter/Input/BoundingBox.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@
 block discarded – undo
56 56
      */
57 57
     public function getGetParameterValue(): string
58 58
     {
59
-        return (string) $this->longitudeLeft
60
-            . ',' . (string) $this->latitudeBottom
61
-            . ',' . (string) $this->longitudeRight
62
-            . ',' . (string) $this->latitudeTop
63
-            . ',' . (string) $this->zoom;
59
+        return (string)$this->longitudeLeft
60
+            . ',' . (string)$this->latitudeBottom
61
+            . ',' . (string)$this->longitudeRight
62
+            . ',' . (string)$this->latitudeTop
63
+            . ',' . (string)$this->zoom;
64 64
     }
65 65
 
66 66
     /**
Please login to merge, or discard this patch.
spec/Core/WeatherServicesSpec.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 
7 7
 use Marek\OpenWeatherMap\Core\WeatherServices;
8 8
 
9
-describe(WeatherServices::class, static function () {
10
-    describe('->getWeatherService', static function () {
11
-        it('it is ok', static function () {
9
+describe(WeatherServices::class, static function() {
10
+    describe('->getWeatherService', static function() {
11
+        it('it is ok', static function() {
12 12
             expect(1)->toBe(1);
13 13
         });
14 14
     });
Please login to merge, or discard this patch.
spec/Http/Client/SymfonyHttpClientSpec.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,39 +6,39 @@
 block discarded – undo
6 6
 
7 7
 use Marek\OpenWeatherMap\Http\Client\SymfonyHttpClient;
8 8
 
9
-describe(SymfonyHttpClient::class, function () {
10
-    beforeEach(function () {
9
+describe(SymfonyHttpClient::class, function() {
10
+    beforeEach(function() {
11 11
         $this->data = '{"coord":{"lon":-0.13,"lat":51.51},"weather":[{"id":300,"main":"Drizzle","description":"light intensity drizzle","icon":"09d"}],"base":"stations","main":{"temp":280.32,"pressure":1012,"humidity":81,"temp_min":279.15,"temp_max":281.15},"visibility":10000,"wind":{"speed":4.1,"deg":80},"clouds":{"all":90},"dt":1485789600,"sys":{"type":1,"id":5091,"message":0.0103,"country":"GB","sunrise":1485762037,"sunset":1485794875},"id":2643743,"name":"London","cod":200}';
12 12
         $this->decoded = json_decode($this->data, true, 512, JSON_THROW_ON_ERROR);
13 13
         $this->response = new JsonResponse($this->data, 300);
14 14
     });
15 15
 
16
-    describe('->getStatusCode()', function () {
17
-        it('expects that it will return proper http status code', function () {
16
+    describe('->getStatusCode()', function() {
17
+        it('expects that it will return proper http status code', function() {
18 18
             expect($this->response->getStatusCode())->toBe(200);
19 19
         });
20 20
     });
21 21
 
22
-    describe('->getData()', function () {
23
-        it('expects that', function () {
22
+    describe('->getData()', function() {
23
+        it('expects that', function() {
24 24
             expect($this->response->getData())->toBe($this->decoded);
25 25
         });
26 26
     });
27 27
 
28
-    describe('->isOk()', function () {
29
-        it('expects that', function () {
28
+    describe('->isOk()', function() {
29
+        it('expects that', function() {
30 30
             expect($this->response->isOk())->toBe(true);
31 31
         });
32 32
     });
33 33
 
34
-    describe('->isAuthorized()', function () {
35
-        it('expects that', function () {
34
+    describe('->isAuthorized()', function() {
35
+        it('expects that', function() {
36 36
             expect($this->response->isAuthorized())->toBe(true);
37 37
         });
38 38
     });
39 39
 
40
-    describe('->getMessage()', function () {
41
-        it('expects that', function () {
40
+    describe('->getMessage()', function() {
41
+        it('expects that', function() {
42 42
             expect($this->response->getMessage())->toBe('');
43 43
         });
44 44
     });
Please login to merge, or discard this patch.