Completed
Push — master ( e6ed61...6d89c4 )
by Michał
02:50
created
src/notify/transports/slack/message/Attachment.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -705,7 +705,7 @@
 block discarded – undo
705 705
         }
706 706
 
707 707
         throw new \InvalidArgumentException("Expected an array or an instance of ".attachment\Action::class.", got [".diagnostics\Debug::getTypeName($action)."] instead.");
708
-   }
708
+    }
709 709
 
710 710
     /**
711 711
      * {@inheritDoc}
Please login to merge, or discard this patch.
src/notify/transports/slack/Response.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *
75 75
      * @return  string
76 76
      */
77
-    public function getType() : ?string
77
+    public function getType() : ? string
78 78
     {
79 79
         return $this->type;
80 80
     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @return  string
104 104
      */
105
-    public function getResponseUrl() : ?string
105
+    public function getResponseUrl() : ? string
106 106
     {
107 107
         return $this->url;
108 108
     }
Please login to merge, or discard this patch.
src/console/input/Parameter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return  string
63 63
      */
64
-    public function getDescription() : ?string
64
+    public function getDescription() : ? string
65 65
     {
66 66
         return $this->description;
67 67
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @return  Value
86 86
      */
87
-    public function getValue() : ?Value
87
+    public function getValue() : ? Value
88 88
     {
89 89
         return $this->value;
90 90
     }
Please login to merge, or discard this patch.
src/console/Terminal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @return  array   An array containing two keys - 'width' and 'height'. The values for those keys can be null
23 23
      *                  if the respective value could not be determined.
24 24
      */
25
-    abstract protected function getDimensions() : ?array;
25
+    abstract protected function getDimensions() : ? array;
26 26
 
27 27
     /**
28 28
      * Creates a new Terminal instance.
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @return  string              The output of the process or null if the process could not be executed.
95 95
      * @todo                        Use the Process component instead since we're relying on proc_open() anyways?
96 96
      */
97
-    protected function execute(string $command) : ?string
97
+    protected function execute(string $command) : ? string
98 98
     {
99 99
         // We require proc_open() to suppress error output.
100 100
         if (!function_exists('proc_open')) {
Please login to merge, or discard this patch.
src/console/terminals/Posix.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * {@inheritDoc}
19 19
      */
20
-    protected function getDimensions() : ?array
20
+    protected function getDimensions() : ? array
21 21
     {
22 22
         // Query stty first, then fall back to tput.
23 23
         if (null === $dimensions = $this->getDimensionsFromStty()) {
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @return  array   Either an array containing two keys - 'width' and 'height' or null if the data couldn't
39 39
      *                  be parsed to retrieve anything useful.
40 40
      */
41
-    protected function getDimensionsFromStty() : ?array
41
+    protected function getDimensionsFromStty() : ? array
42 42
     {
43 43
         if (empty($output = $this->execute('stty -a | grep columns'))) {
44 44
             return null;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @return  array   Either an array containing two keys - 'width' and 'height' or null if the data couldn't
61 61
      *                  be parsed to retrieve anything useful.
62 62
      */
63
-    protected function getDimensionsFromTput() : ?array
63
+    protected function getDimensionsFromTput() : ? array
64 64
     {
65 65
         if (empty($output = $this->execute('tput cols && tput lines'))) {
66 66
             return null;
Please login to merge, or discard this patch.
src/console/terminals/Windows.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * {@inheritDoc}
19 19
      */
20
-    protected function getDimensions() : ?array
20
+    protected function getDimensions() : ? array
21 21
     {
22 22
         // Ansicon environmental variable is our first fallback. Result of 'mode CON' is the next one.
23 23
         if (null === $dimensions = $this->getDimensionsFromAnsicon()) {
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @return  array   Either an array containing two keys - 'width' and 'height' or null if the data couldn't
39 39
      *                  be parsed to retrieve anything useful.
40 40
      */
41
-    protected function getDimensionsFromAnsicon() : ?array
41
+    protected function getDimensionsFromAnsicon() : ? array
42 42
     {
43 43
         if (preg_match('/^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$/', trim(getenv('ANSICON')), $matches)) {
44 44
             return [
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @return  array   Either an array containing two keys - 'width' and 'height' or null if the data couldn't
57 57
      *                  be parsed to retrieve anything useful.
58 58
      */
59
-    protected function getDimensionsFromMode() : ?array
59
+    protected function getDimensionsFromMode() : ? array
60 60
     {
61 61
         if (empty($output = $this->execute('mode CON'))) {
62 62
             return null;
Please login to merge, or discard this patch.
src/auth/id/Provider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     public function request(string $method, string $url, auth\interfaces\Token $token = null, array $options = []) : Promise
109 109
     {
110 110
         return $this->getHttpClient()->requestAsync($method, $url, array_merge_recursive($this->getDefaultRequestOptions($token), $options))->then(
111
-            function (Response $response) use($token) {
111
+            function(Response $response) use($token) {
112 112
                 return $this->onRequestSuccess($response, $token);
113 113
             },
114 114
             function(\Exception $exception) use($token) {
Please login to merge, or discard this patch.
src/auth/id/interfaces/Identity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,26 +26,26 @@
 block discarded – undo
26 26
      *
27 27
      * @return  string|null
28 28
      */
29
-    public function getUsername() : ?string;
29
+    public function getUsername() : ? string;
30 30
 
31 31
     /**
32 32
      * Returns the full name bound to the Identity.
33 33
      *
34 34
      * @return  string|null
35 35
      */
36
-    public function getName() : ?string;
36
+    public function getName() : ? string;
37 37
 
38 38
     /**
39 39
      * Returns the e-mail address bound to the Identity.
40 40
      *
41 41
      * @return  string|null
42 42
      */
43
-    public function getEmail() : ?string;
43
+    public function getEmail() : ? string;
44 44
 
45 45
     /**
46 46
      * Returns the avatar URI bound to the Identity.
47 47
      *
48 48
      * @return  string|null
49 49
      */
50
-    public function getAvatar() : ?string;
50
+    public function getAvatar() : ? string;
51 51
 }
Please login to merge, or discard this patch.
src/auth/id/Identity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * {@inheritDoc}
115 115
      */
116
-    public function getUsername() : ?string
116
+    public function getUsername() : ? string
117 117
     {
118 118
         return $this->username;
119 119
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * {@inheritDoc}
123 123
      */
124
-    public function getName() : ?string
124
+    public function getName() : ? string
125 125
     {
126 126
         return $this->name;
127 127
     }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * {@inheritDoc}
131 131
      */
132
-    public function getEmail() : ?string
132
+    public function getEmail() : ? string
133 133
     {
134 134
         return $this->email;
135 135
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * {@inheritDoc}
139 139
      */
140
-    public function getAvatar() : ?string
140
+    public function getAvatar() : ? string
141 141
     {
142 142
         return $this->avatar;
143 143
     }
Please login to merge, or discard this patch.