Completed
Push — master ( e4c266...3c5e1d )
by Michał
02:49
created
src/auth/id/protocols/oauth2/Provider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 'grant_type'    => 'authorization_code',
68 68
                 'code'          => $code
69 69
             ]
70
-        ])->then(function (array $data) {
70
+        ])->then(function(array $data) {
71 71
             return $this->createToken($data);
72 72
         });
73 73
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function identify(oauth2\Token $token) : Promise
79 79
     {
80
-        return $this->request('GET', $this->getIdentifyUrl(), $token)->then(function (array $data) use ($token) {
80
+        return $this->request('GET', $this->getIdentifyUrl(), $token)->then(function(array $data) use ($token) {
81 81
             return $this->createIdentity($token, $data);
82 82
         });
83 83
     }
Please login to merge, or discard this patch.
src/auth/id/protocols/oauth2/providers/Bitbucket.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
             // Intercept the flow - instead of directly returning a Promise for the entity's identity data,
61 61
             // we will now return a Promise that resolves once both the email and identity
62 62
             // data have been resolved and the email has been mapped into the identity data.
63
-            $promise = $this->getEmail($token)->then(function ($email) use ($token, $promise) {
63
+            $promise = $this->getEmail($token)->then(function($email) use ($token, $promise) {
64 64
 
65 65
                 // Map the email in once the identity data is available (has succesfully resolved).
66
-                return $promise->then(function (array $data) use ($token, $email) {
66
+                return $promise->then(function(array $data) use ($token, $email) {
67 67
 
68 68
                     $data['email'] = $email ?? $data['email'];
69 69
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             });
73 73
         }
74 74
 
75
-        return $promise->then(function (array $data) use ($token) {
75
+        return $promise->then(function(array $data) use ($token) {
76 76
             return $this->createIdentity($token, $data);
77 77
         });
78 78
     }
Please login to merge, or discard this patch.
src/auth/id/protocols/oauth2/providers/Github.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
             // Intercept the flow - instead of directly returning a Promise for the entity's identity data,
56 56
             // we will now return a Promise that resolves once both the email and identity
57 57
             // data have been resolved and the email has been mapped into the identity data.
58
-            $promise = $this->getEmail($token)->then(function ($email) use ($token, $promise) {
58
+            $promise = $this->getEmail($token)->then(function($email) use ($token, $promise) {
59 59
 
60 60
                 // Map the e-mail address in once the identity data is available (has successfully resolved).
61
-                return $promise->then(function (array $data) use ($token, $email) {
61
+                return $promise->then(function(array $data) use ($token, $email) {
62 62
 
63 63
                     $data['email'] = $email ?? $data['email'];
64 64
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             });
68 68
         }
69 69
 
70
-        return $promise->then(function (array $data) use ($token) {
70
+        return $promise->then(function(array $data) use ($token) {
71 71
             return $this->createIdentity($token, $data);
72 72
         });
73 73
     }
Please login to merge, or discard this patch.
src/auth/id/protocols/oauth2/providers/LinkedIn.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
     public function getIdentifyUrl() : string
39 39
     {
40 40
         $fields = [
41
-            'id',                   'first-name',   'last-name',    'formatted-name',
42
-            'email-address',        'headline',     'location',     'industry',
43
-            'public-profile-url',   'picture-url',
41
+            'id', 'first-name', 'last-name', 'formatted-name',
42
+            'email-address', 'headline', 'location', 'industry',
43
+            'public-profile-url', 'picture-url',
44 44
         ];
45 45
 
46 46
         // Talk about proprietary 'standards'...
Please login to merge, or discard this patch.
src/auth/id/identities/Twitter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return  string
62 62
      */
63
-    public function getDescription() : ?string
63
+    public function getDescription() : ? string
64 64
     {
65 65
         return $this->description;
66 66
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return  string
72 72
      */
73
-    public function getLocation() : ?string
73
+    public function getLocation() : ? string
74 74
     {
75 75
         return $this->location;
76 76
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @return  int
82 82
      */
83
-    public function getFollowersCount() : ?int
83
+    public function getFollowersCount() : ? int
84 84
     {
85 85
         return $this->followersCount;
86 86
     }
Please login to merge, or discard this patch.
src/events/interfaces/EmitterAware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      *
20 20
      * @return  Emitter
21 21
      */
22
-    public function getEmitter() : ?Emitter;
22
+    public function getEmitter() : ? Emitter;
23 23
 
24 24
     /**
25 25
      * Sets the Event Emitter instance this object should have access to.
Please login to merge, or discard this patch.
src/events/traits/Emitter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     {
76 76
         // We'll create a wrapper closure which will remove the listener once it receives the first event
77 77
         // and forward the arguments from the wrapper to the actual listener.
78
-        $wrapper = function (...$payload) use (&$wrapper, $event, $listener) {
78
+        $wrapper = function(...$payload) use (&$wrapper, $event, $listener) {
79 79
             $this->off($event, $wrapper);
80 80
 
81 81
             $listener(...$payload);
Please login to merge, or discard this patch.
src/events/traits/EmitterAware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * @see \nyx\events\interfaces\EmitterAware::getEmitter()
26 26
      */
27
-    public function getEmitter() : ?interfaces\Emitter
27
+    public function getEmitter() : ? interfaces\Emitter
28 28
     {
29 29
         return $this->emitter;
30 30
     }
Please login to merge, or discard this patch.
src/connect/streams/Stream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -459,7 +459,7 @@
 block discarded – undo
459 459
 
460 460
         // Those may change, so... besides - fancy syntax, eh chaps?
461 461
         $this->status->{((isset($this->metadata['seekable']) && $this->metadata['seekable']) ? 'set' : 'remove')}(interfaces\Stream::SEEKABLE);
462
-        $this->status->{((isset($this->metadata['blocked'])  && $this->metadata['blocked'])  ? 'set' : 'remove')}(interfaces\Stream::BLOCKED);
462
+        $this->status->{((isset($this->metadata['blocked']) && $this->metadata['blocked']) ? 'set' : 'remove')}(interfaces\Stream::BLOCKED);
463 463
 
464 464
         return true;
465 465
     }
Please login to merge, or discard this patch.