GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (356550)
by sebastian
03:10 queued 24s
created
src/utils/ByteUtil.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @param int $byte_len
25 25
      * @return int
26 26
      */
27
-    static public function bitLength($byte_len){
27
+    static public function bitLength($byte_len) {
28 28
         return $byte_len * 8;
29 29
     }
30 30
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param int $byte_len
33 33
      * @return String
34 34
      */
35
-    static public function randomBytes($byte_len){
35
+    static public function randomBytes($byte_len) {
36 36
         return crypt_random_string($byte_len);
37 37
     }
38 38
 
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
      * @param array $oct
41 41
      * @return string
42 42
      */
43
-    static public function convertHalfWordArrayToBin(array $oct){
43
+    static public function convertHalfWordArrayToBin(array $oct) {
44 44
         $hex = '';
45
-        foreach($oct as $b){
46
-            $hex .= str_pad(dechex($b),2,'0',STR_PAD_LEFT);
45
+        foreach ($oct as $b) {
46
+            $hex .= str_pad(dechex($b), 2, '0', STR_PAD_LEFT);
47 47
         }
48 48
         return self::hex2bin($hex);
49 49
     }
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
      * @param int $nbr
53 53
      * @return string
54 54
      */
55
-    static public function convert2UnsignedLongBE($nbr){
56
-        $hex = str_pad(dechex($nbr),16,'0',STR_PAD_LEFT);
55
+    static public function convert2UnsignedLongBE($nbr) {
56
+        $hex = str_pad(dechex($nbr), 16, '0', STR_PAD_LEFT);
57 57
         return self::hex2bin($hex);
58 58
     }
59 59
 
60
-    static public function hex2bin($hex_string){
61
-        if ( function_exists( 'hex2bin' ) ){
60
+    static public function hex2bin($hex_string) {
61
+        if (function_exists('hex2bin')) {
62 62
             return hex2bin($hex_string);
63 63
         }
64
-        return pack("H*" , $hex_string);
64
+        return pack("H*", $hex_string);
65 65
     }
66 66
 }
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
src/utils/Base64UrlRepresentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * Class Base64UrlRepresentation
19 19
  * @package utils
20 20
  */
21
-final class Base64UrlRepresentation implements IObjectRepresentation{
21
+final class Base64UrlRepresentation implements IObjectRepresentation {
22 22
 
23 23
     const Padding = 4;
24 24
     /**
Please login to merge, or discard this patch.
src/jwe/impl/JWEJOSEHeaderFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
  */
24 24
 final class JWEJOSEHeaderFactory {
25 25
 
26
-    static protected function getProductClass(){
26
+    static protected function getProductClass() {
27 27
         return  '\jwe\impl\JWEJOSEHeader';
28 28
     }
29 29
 
@@ -31,16 +31,16 @@  discard block
 block discarded – undo
31 31
      * @param array $raw_headers
32 32
      * @return IJWEJOSEHeader
33 33
      */
34
-    public static function build(array $raw_headers){
34
+    public static function build(array $raw_headers) {
35 35
 
36 36
         $args = array();
37 37
 
38
-        foreach(RegisteredJWEJOSEHeaderNames::$registered_basic_headers_set as $header_name){
38
+        foreach (RegisteredJWEJOSEHeaderNames::$registered_basic_headers_set as $header_name) {
39 39
             $value = isset($raw_headers[$header_name]) ? $raw_headers[$header_name] : null;
40 40
             $type  = @RegisteredJWEJOSEHeaderNames::$registered_basic_headers_set_types[$header_name];
41
-            if(!is_null($value))
41
+            if (!is_null($value))
42 42
             {
43
-                if(is_null($type)) continue;
43
+                if (is_null($type)) continue;
44 44
                 $class    = new \ReflectionClass($type);
45 45
                 $value    = $class->newInstanceArgs(array($value));
46 46
             }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         // unregistered headers
56 56
 
57
-        foreach($raw_headers as $k => $v){
57
+        foreach ($raw_headers as $k => $v) {
58 58
             $basic_header->addHeader(new JOSEHeaderParam($k, new JsonValue($v)));
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/jwe/impl/JWEJOSEHeader.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param StringOrURI|null $type
37 37
      * @param StringOrURI|null $cty
38 38
      */
39
-    public function __construct
40
-    (
39
+    public function __construct(
41 40
         StringOrURI $alg,
42 41
         StringOrURI $enc,
43 42
         JsonValue   $kid  = null,
@@ -50,7 +49,7 @@  discard block
 block discarded – undo
50 49
 
51 50
         $this->set[RegisteredJWEJOSEHeaderNames::EncryptionAlgorithm] = $enc;
52 51
 
53
-        if(!is_null($zip) && CompressionAlgorithms_Registry::getInstance()->get($zip->getValue()))
52
+        if (!is_null($zip) && CompressionAlgorithms_Registry::getInstance()->get($zip->getValue()))
54 53
             $this->set[RegisteredJWEJOSEHeaderNames::CompressionAlgorithm] = $zip;
55 54
     }
56 55
 
Please login to merge, or discard this patch.
src/jwe/impl/IVFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param $size
27 27
      * @return string
28 28
      */
29
-    static public function build($size){
29
+    static public function build($size) {
30 30
 
31 31
         $generator = Utils_Registry::getInstance()->get(Utils_Registry::RandomNumberGeneratorService);
32 32
         return $generator->invoke($size / 8);
Please login to merge, or discard this patch.
src/jwe/impl/JWESerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         return sprintf('%s.%s.%s.%s.%s', $header, $enc_cek, $iv, $cipher_text, $tag);
46 46
     }
47 47
 
48
-    static public function deserialize($input){
48
+    static public function deserialize($input) {
49 49
         $parts = explode(IBasicJWT::SegmentSeparator, $input);
50 50
         if (count($parts) !== 5) throw new JWEInvalidCompactFormatException;
51 51
 
Please login to merge, or discard this patch.
src/jwe/impl/specs/JWE_CompactFormatSpecification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @param string $compact_format
32 32
      */
33
-    public function __construct($compact_format){
33
+    public function __construct($compact_format) {
34 34
         $this->compact_format = $compact_format;
35 35
     }
36 36
 
Please login to merge, or discard this patch.
src/jwe/impl/specs/JWE_ParamsSpecification.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@
 block discarded – undo
63 63
      * @throws JWEInvalidPayloadException
64 64
      * @throws JWEInvalidRecipientKeyException
65 65
      */
66
-    public function __construct(IJWK $key, StringOrURI $alg, StringOrURI $enc, $payload,  JsonValue $zip = null)
66
+    public function __construct(IJWK $key, StringOrURI $alg, StringOrURI $enc, $payload, JsonValue $zip = null)
67 67
     {
68 68
 
69
-        if(is_null($key))
69
+        if (is_null($key))
70 70
             throw new JWEInvalidRecipientKeyException();
71 71
 
72
-        if(is_null($payload))
72
+        if (is_null($payload))
73 73
             throw new JWEInvalidPayloadException('missing payload');
74 74
 
75 75
         $this->key     = $key;
Please login to merge, or discard this patch.
src/jwe/impl/ContentEncryptionKeyFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                  * The CEK MUST have a length equal to that required for the
58 58
                  * content encryption algorithm.
59 59
                  */
60
-                $rnd       = $generator->invoke($enc->getMinKeyLen()/8);
60
+                $rnd       = $generator->invoke($enc->getMinKeyLen() / 8);
61 61
                 $cek       = new _ContentEncryptionKey($enc->getName(), 'RAW', $rnd);
62 62
             }
63 63
             break;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param EncryptionAlgorithm $alg
86 86
      * @return Key
87 87
      */
88
-    static public function fromRaw($value, EncryptionAlgorithm $alg){
88
+    static public function fromRaw($value, EncryptionAlgorithm $alg) {
89 89
         return  new _ContentEncryptionKey($alg->getName(), 'RAW', $value);
90 90
     }
91 91
 }
92 92
\ No newline at end of file
Please login to merge, or discard this patch.