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 — develop ( c0787d...9e1273 )
by Gabriel
05:23
created
src/Helpers/Arrays.php 2 patches
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -237,8 +237,9 @@  discard block
 block discarded – undo
237 237
     public function toXML($data, $rootNodeName = 'ResultSet', &$xml = null)
238 238
     {
239 239
         // turn off compatibility mode as simple xml throws a wobbly if you don't.
240
-        if (ini_get('zend.ze1_compatibility_mode') == 1)
241
-            ini_set('zend.ze1_compatibility_mode', 0);
240
+        if (ini_get('zend.ze1_compatibility_mode') == 1) {
241
+                    ini_set('zend.ze1_compatibility_mode', 0);
242
+        }
242 243
 
243 244
         if (is_null($xml)) {
244 245
             $xml = simplexml_load_string("<?xml version='1.0' encoding='utf-8'?><$rootNodeName />");
@@ -260,8 +261,9 @@  discard block
 block discarded – undo
260 261
                 $node = $this->isAssoc($value) || $numeric ? $xml->addChild($key) : $xml;
261 262
 
262 263
                 // recursive call
263
-                if ($numeric)
264
-                    $key = 'anon';
264
+                if ($numeric) {
265
+                                    $key = 'anon';
266
+                }
265 267
                 $this->toXML($value, $key, $node);
266 268
             } else {
267 269
                 // add single node.
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * Return the first element in an array passing a given truth test.
34 34
      *
35
-     * @param  array $array
35
+     * @param  Nip\Container\ServiceProviders\Providers\AbstractServiceProvider[] $array
36 36
      * @param  callable|null $callback
37 37
      * @param  mixed $default
38 38
      * @return mixed
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * Fetch the same property for all the elements.
189 189
      *
190
-     * @param array|\Nip\Records\Collections\Collection $array
190
+     * @param Nip\Records\Collections\Collection $array
191 191
      * @param string $property
192 192
      * @param bool|string $return
193 193
      * @return array The property values
@@ -258,7 +258,6 @@  discard block
 block discarded – undo
258 258
      *
259 259
      * @param array $array
260 260
      * @param array $params
261
-     * @param string $key
262 261
      * @return array
263 262
      */
264 263
     public function findAll($array, $params, $returnKey = false)
Please login to merge, or discard this patch.
src/Helpers/Strings.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -82,39 +82,39 @@
 block discarded – undo
82 82
         return $string;
83 83
     }
84 84
 
85
-	public function moneyFormat($number)
86
-	{
87
-		return money_format('%n', $number);
88
-	}
85
+    public function moneyFormat($number)
86
+    {
87
+        return money_format('%n', $number);
88
+    }
89 89
 	
90
-	public function cronoTimeInSeconds($time)
91
-	{
92
-		$parts = explode(':', $time);		
93
-		$seconds = array_pop($parts);
94
-		$minutes = array_pop($parts);
95
-		$hours = array_pop($parts);
96
-		$days = array_pop($parts);
97
-
98
-		return (($days*24 + $hours)*60 + $minutes)*60 + $seconds;		
99
-	}
90
+    public function cronoTimeInSeconds($time)
91
+    {
92
+        $parts = explode(':', $time);		
93
+        $seconds = array_pop($parts);
94
+        $minutes = array_pop($parts);
95
+        $hours = array_pop($parts);
96
+        $days = array_pop($parts);
97
+
98
+        return (($days*24 + $hours)*60 + $minutes)*60 + $seconds;		
99
+    }
100 100
 	
101
-	public function secondsInCronoTime($seconds)
102
-	{
103
-		if ($days = intval((floor($seconds / 86400)))) {
101
+    public function secondsInCronoTime($seconds)
102
+    {
103
+        if ($days = intval((floor($seconds / 86400)))) {
104 104
             $seconds = $seconds - $days*86400;
105
-			$return .= ($return ? ':' : '') . str_pad($days, 2, 0,STR_PAD_LEFT);
106
-		}
107
-		if ($hours = intval((floor($seconds / 3600))) OR $return) {
105
+            $return .= ($return ? ':' : '') . str_pad($days, 2, 0,STR_PAD_LEFT);
106
+        }
107
+        if ($hours = intval((floor($seconds / 3600))) OR $return) {
108 108
             $seconds = $seconds - $hours*3600;
109
-			$return .= ($return ? ':' : '') . str_pad($hours, 2, 0,STR_PAD_LEFT);
110
-		}
111
-		if ($minutes = intval((floor($seconds / 60))) OR $return) {
112
-			$seconds = $seconds - $minutes*60;
113
-			$return .= ($return ? ':' : '') . str_pad($minutes, 2, 0, STR_PAD_LEFT);
114
-		}
115
-		$seconds = round($seconds, 2);  
116
-		$return .= ($return ? ':' : '') . str_pad($seconds, 2, 0, STR_PAD_LEFT);
109
+            $return .= ($return ? ':' : '') . str_pad($hours, 2, 0,STR_PAD_LEFT);
110
+        }
111
+        if ($minutes = intval((floor($seconds / 60))) OR $return) {
112
+            $seconds = $seconds - $minutes*60;
113
+            $return .= ($return ? ':' : '') . str_pad($minutes, 2, 0, STR_PAD_LEFT);
114
+        }
115
+        $seconds = round($seconds, 2);  
116
+        $return .= ($return ? ':' : '') . str_pad($seconds, 2, 0, STR_PAD_LEFT);
117 117
 			
118
-		return $return;
119
-	}
118
+        return $return;
119
+    }
120 120
 }
121 121
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         foreach ($matches as &$match) {
76 76
             if (preg_match('/<(a|img)\b/', $match) && !preg_match('/(?:http|#|mailto)/', $match)) {
77
-                $match = preg_replace('/^([^"]+")([^"]+)/', '$1'.$base.'$2', $match);
77
+                $match = preg_replace('/^([^"]+")([^"]+)/', '$1' . $base . '$2', $match);
78 78
             }
79 79
         }
80 80
 
@@ -95,21 +95,21 @@  discard block
 block discarded – undo
95 95
 		$hours = array_pop($parts);
96 96
 		$days = array_pop($parts);
97 97
 
98
-		return (($days*24 + $hours)*60 + $minutes)*60 + $seconds;		
98
+		return (($days * 24 + $hours) * 60 + $minutes) * 60 + $seconds;		
99 99
 	}
100 100
 	
101 101
 	public function secondsInCronoTime($seconds)
102 102
 	{
103 103
 		if ($days = intval((floor($seconds / 86400)))) {
104
-            $seconds = $seconds - $days*86400;
105
-			$return .= ($return ? ':' : '') . str_pad($days, 2, 0,STR_PAD_LEFT);
104
+            $seconds = $seconds - $days * 86400;
105
+			$return .= ($return ? ':' : '') . str_pad($days, 2, 0, STR_PAD_LEFT);
106 106
 		}
107 107
 		if ($hours = intval((floor($seconds / 3600))) OR $return) {
108
-            $seconds = $seconds - $hours*3600;
109
-			$return .= ($return ? ':' : '') . str_pad($hours, 2, 0,STR_PAD_LEFT);
108
+            $seconds = $seconds - $hours * 3600;
109
+			$return .= ($return ? ':' : '') . str_pad($hours, 2, 0, STR_PAD_LEFT);
110 110
 		}
111 111
 		if ($minutes = intval((floor($seconds / 60))) OR $return) {
112
-			$seconds = $seconds - $minutes*60;
112
+			$seconds = $seconds - $minutes * 60;
113 113
 			$return .= ($return ? ':' : '') . str_pad($minutes, 2, 0, STR_PAD_LEFT);
114 114
 		}
115 115
 		$seconds = round($seconds, 2);  
Please login to merge, or discard this patch.
src/Http/Request/Http.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
             // This is why we use urldecode and then normalize to
63 63
             // RFC 3986 with rawurlencode.
64 64
             $parts[] = isset($keyValuePair[1]) ?
65
-                rawurlencode(urldecode($keyValuePair[0])) . '=' . rawurlencode(urldecode($keyValuePair[1])) :
66
-                rawurlencode(urldecode($keyValuePair[0]));
65
+                rawurlencode(urldecode($keyValuePair[0])) . '=' . rawurlencode(urldecode($keyValuePair[1])) : rawurlencode(urldecode($keyValuePair[0]));
67 66
             $order[] = urldecode($keyValuePair[0]);
68 67
         }
69 68
         array_multisort($order, SORT_ASC, $parts);
Please login to merge, or discard this patch.
src/Database/Query/Condition/AndCondition.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,18 +5,18 @@
 block discarded – undo
5 5
 class AndCondition extends Condition
6 6
 {
7 7
 
8
-	protected $_condition;
9
-	protected $_andCondition;
8
+    protected $_condition;
9
+    protected $_andCondition;
10 10
 
11
-	public function __construct($condition, $andCondition)
12
-	{
13
-		$this->_condition = $condition;
14
-		$this->_andCondition = $andCondition;
15
-	}
11
+    public function __construct($condition, $andCondition)
12
+    {
13
+        $this->_condition = $condition;
14
+        $this->_andCondition = $andCondition;
15
+    }
16 16
 
17
-	public function getString()
18
-	{
19
-		return $this->protectCondition($this->_condition->getString()) . " AND " . $this->protectCondition($this->_andCondition->getString()) . "";
20
-	}
17
+    public function getString()
18
+    {
19
+        return $this->protectCondition($this->_condition->getString()) . " AND " . $this->protectCondition($this->_andCondition->getString()) . "";
20
+    }
21 21
 
22 22
 }
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
src/Database/Query/Condition/OrCondition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
     }
11 11
 
12 12
     public function getString() {
13
-        return $this->protectCondition($this->_condition->getString()) ." OR ". $this->protectCondition($this->_orCondition->getString()) ."";
13
+        return $this->protectCondition($this->_condition->getString()) . " OR " . $this->protectCondition($this->_orCondition->getString()) . "";
14 14
     }
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
src/Database/Query/Truncate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
      */
15 15
     public function assemble()
16 16
     {
17
-        return 'TRUNCATE TABLE '.$this->getTable();
17
+        return 'TRUNCATE TABLE ' . $this->getTable();
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/Database/Query/Delete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
     {
18 18
         $order = $this->parseOrder();
19 19
 
20
-        $query = 'DELETE FROM '.$this->getManager()->protect($this->getTable());
20
+        $query = 'DELETE FROM ' . $this->getManager()->protect($this->getTable());
21 21
 
22 22
         $query .= $this->assembleWhere();
23 23
 
24 24
         if (!empty($order)) {
25
-            $query .= ' ORDER BY '.$order;
25
+            $query .= ' ORDER BY ' . $order;
26 26
         }
27 27
 
28 28
         $query .= $this->assembleLimit();
Please login to merge, or discard this patch.
src/Database/Query/Replace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function assemble()
16 16
     {
17
-        $query = "REPLACE INTO ".$this->protect($this->getTable()).$this->parseCols().$this->parseValues();
17
+        $query = "REPLACE INTO " . $this->protect($this->getTable()) . $this->parseCols() . $this->parseValues();
18 18
 
19 19
         return $query;
20 20
     }
Please login to merge, or discard this patch.
src/Database/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
     public function checkValid()
104 104
     {
105 105
         if (!$this->isValid()) {
106
-            trigger_error("Invalid result for query [".$this->getQuery()->getString()."]", E_USER_WARNING);
106
+            trigger_error("Invalid result for query [" . $this->getQuery()->getString() . "]", E_USER_WARNING);
107 107
 
108 108
             return false;
109 109
         }
Please login to merge, or discard this patch.