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
Push — master ( 388e4c...507539 )
by Jared
02:07
created
src/JCFirebase.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -47,31 +47,31 @@  discard block
 block discarded – undo
47 47
     );
48 48
     public $requestOptions = array();
49 49
 
50
-    public function __construct($firebaseURI,$firebaseSecret = '',$firebaseDefaultPath = '/')
50
+    public function __construct($firebaseURI, $firebaseSecret = '', $firebaseDefaultPath = '/')
51 51
     {
52 52
         $this->firebaseSecret = $firebaseSecret;
53 53
         $this->firebaseURI = $firebaseURI;
54 54
         $this->firebaseDefaultPath = $firebaseDefaultPath;
55 55
     }
56 56
 
57
-    public function getPathURI($path = ''){
57
+    public function getPathURI($path = '') {
58 58
         //remove .json or last slash from firebaseURI
59 59
         $templates = array(
60 60
             '.json',
61 61
             '/.json',
62 62
             '/'
63 63
         );
64
-        foreach ($templates as $template){
65
-            $this->firebaseURI = rtrim($this->firebaseURI,$template);
64
+        foreach ($templates as $template) {
65
+            $this->firebaseURI = rtrim($this->firebaseURI, $template);
66 66
         }
67 67
 
68 68
         //check https
69
-        if(strpos($this->firebaseURI, 'http://') !== false){
69
+        if (strpos($this->firebaseURI, 'http://') !== false) {
70 70
             throw new \Exception("https is required.");
71 71
         }
72 72
 
73 73
         //check firebaseURI
74
-        if(strlen($this->firebaseURI) == 0){
74
+        if (strlen($this->firebaseURI) == 0) {
75 75
             throw new \Exception("firebase URI is required");
76 76
         }
77 77
 
@@ -84,37 +84,37 @@  discard block
 block discarded – undo
84 84
      * @param array $options
85 85
      * @return \Requests_Response
86 86
      */
87
-    public function get($path = '',$options = array()){
88
-        return Requests::get($this->getPathURI($path),$this->requestHeader,$this->mergeRequestOptions($options));
87
+    public function get($path = '', $options = array()) {
88
+        return Requests::get($this->getPathURI($path), $this->requestHeader, $this->mergeRequestOptions($options));
89 89
     }
90 90
 
91
-    public function put($path = '',$options = array()){
92
-        return Requests::put($this->getPathURI($path),$this->requestHeader,$this->mergeRequestOptions($options,true));
91
+    public function put($path = '', $options = array()) {
92
+        return Requests::put($this->getPathURI($path), $this->requestHeader, $this->mergeRequestOptions($options, true));
93 93
     }
94 94
 
95
-    public function post($path = '',$options = array()){
96
-        return Requests::post($this->getPathURI($path),$this->requestHeader,$this->mergeRequestOptions($options,true));
95
+    public function post($path = '', $options = array()) {
96
+        return Requests::post($this->getPathURI($path), $this->requestHeader, $this->mergeRequestOptions($options, true));
97 97
     }
98 98
 
99
-    public function patch($path = '',$options = array()){
100
-        return Requests::patch($this->getPathURI($path),$this->requestHeader,$this->mergeRequestOptions($options,true));
99
+    public function patch($path = '', $options = array()) {
100
+        return Requests::patch($this->getPathURI($path), $this->requestHeader, $this->mergeRequestOptions($options, true));
101 101
     }
102 102
 
103
-    public function delete($path = '',$options = array()){
104
-        return Requests::delete($this->getPathURI($path),$this->requestHeader,$this->mergeRequestOptions($options));
103
+    public function delete($path = '', $options = array()) {
104
+        return Requests::delete($this->getPathURI($path), $this->requestHeader, $this->mergeRequestOptions($options));
105 105
     }
106 106
 
107
-    protected function mergeRequestOptions($options = array(),$encode = false){
107
+    protected function mergeRequestOptions($options = array(), $encode = false) {
108 108
         $requestOptions = array();
109
-        if(isset($options['settings'])){
110
-            $requestOptions = array_merge($options['settings'],$requestOptions);
109
+        if (isset($options['settings'])) {
110
+            $requestOptions = array_merge($options['settings'], $requestOptions);
111 111
         }
112 112
 
113
-        if(isset($options['data'])){
114
-            $requestOptions = array_merge($options['data'],$requestOptions);
113
+        if (isset($options['data'])) {
114
+            $requestOptions = array_merge($options['data'], $requestOptions);
115 115
         }
116 116
 
117
-        if($encode){
117
+        if ($encode) {
118 118
             $requestOptions = json_encode($requestOptions);
119 119
         }
120 120
 
Please login to merge, or discard this patch.