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.
Test Failed
Push — master ( 4555f8...66ef7a )
by Gabriel
06:51
created
src/functions/flash.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,25 +2,25 @@
 block discarded – undo
2 2
 
3 3
 function flash_get($name)
4 4
 {
5
-	return Nip_Flash::instance()->get($name);
5
+    return Nip_Flash::instance()->get($name);
6 6
 }
7 7
 
8 8
 function flash_add($name, $value)
9 9
 {
10
-	Nip_Flash::instance()->add($name, $value);
10
+    Nip_Flash::instance()->add($name, $value);
11 11
 }
12 12
 
13 13
 function flash_success($name, $message)
14 14
 {
15
-	Nip_Flash_Messages::instance()->add($name, 'success', $message);
15
+    Nip_Flash_Messages::instance()->add($name, 'success', $message);
16 16
 }
17 17
 
18 18
 function flash_error($name, $message)
19 19
 {
20
-	Nip_Flash_Messages::instance()->add($name, 'error', $message);
20
+    Nip_Flash_Messages::instance()->add($name, 'error', $message);
21 21
 }
22 22
 
23 23
 function flash_info($name, $message)
24 24
 {
25
-	Nip_Flash_Messages::instance()->add($name, 'info', $message);
25
+    Nip_Flash_Messages::instance()->add($name, 'info', $message);
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
src/Paginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public function getTotalPages()
30 30
     {
31
-        $this->totalPages = (int)($this->count / $this->itemsPerPage);
31
+        $this->totalPages = (int) ($this->count / $this->itemsPerPage);
32 32
         if ($this->count % $this->itemsPerPage != 0) {
33 33
             $this->totalPages++;
34 34
         }
Please login to merge, or discard this patch.
src/service/Maps.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function  __construct() {        
21 21
     }
22 22
 
23
-    public function  __call($name,  $arguments) {
23
+    public function  __call($name, $arguments) {
24 24
         if (strpos($name, 'render') === 0) {
25 25
             return call_user_func_array(array($this->getProvider(), $name), $arguments);
26 26
         }
Please login to merge, or discard this patch.
src/service/maps/objects/Marker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@
 block discarded – undo
19 19
     }
20 20
 
21 21
     public function setDraggable($draggable = true) {
22
-        $this->setParam('draggable',(bool) $draggable);
22
+        $this->setParam('draggable', (bool) $draggable);
23 23
         return $this;
24 24
     }
25 25
 
26 26
     public function moveOnClick($move = true) {
27
-        $this->setParam('moveOnClick',(bool) $move);
27
+        $this->setParam('moveOnClick', (bool) $move);
28 28
         return $this;
29 29
     }
30 30
 
Please login to merge, or discard this patch.
src/service/maps/provider/Abstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             'height' => $service->getParam('container_height') ? $service->getParam('container_height') : '500',
55 55
         );
56 56
 
57
-        $html = '<div id="'.$this->_container['id'].'" style="width: '.$this->_container['width'].'px; height: '.$this->_container['height'].'px;">&nbsp;</div> ';
57
+        $html = '<div id="' . $this->_container['id'] . '" style="width: ' . $this->_container['width'] . 'px; height: ' . $this->_container['height'] . 'px;">&nbsp;</div> ';
58 58
         return $html;
59 59
     }
60 60
 
Please login to merge, or discard this patch.
src/service/maps/provider/Google.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                 );
81 81
             });
82 82
             ';
83
-       $this->_scripts[] = $script;
83
+        $this->_scripts[] = $script;
84 84
 
85 85
         return $return;
86 86
     }
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
                     var script = document.createElement("script");
19 19
                     script.type = "text/javascript";
20 20
                     script.async = false;
21
-                    script.src = "'.$this->getScriptURL().'";
21
+                    script.src = "'.$this->getScriptURL() . '";
22 22
                     document.documentElement.firstChild.appendChild(script);
23 23
                 </script>
24 24
             ';
@@ -40,16 +40,16 @@  discard block
 block discarded – undo
40 40
         $html = '
41 41
             function loadMap() {
42 42
             if (GBrowserIsCompatible()) {
43
-                var map = new GMap2(document.getElementById("'.$this->_container['id'].'"));';
43
+                var map = new GMap2(document.getElementById("'.$this->_container['id'] . '"));';
44 44
         $center = $this->getService()->getParam('center');
45 45
         if (is_array($center) && count($center) == 3) {
46
-            list($cLat,$cLng, $cZoom) = $center;
46
+            list($cLat, $cLng, $cZoom) = $center;
47 47
         } else {
48 48
             $cLat = '37.4419';
49 49
             $cLng = '-122.1419';
50 50
             $cZoom = '1';
51 51
         }
52
-        $html .= 'map.setCenter(new GLatLng('.$cLat.','.$cLng.' ), '.$cZoom.');';
52
+        $html .= 'map.setCenter(new GLatLng(' . $cLat . ',' . $cLng . ' ), ' . $cZoom . ');';
53 53
         $html .= 'map.setUIToDefault();';
54 54
         return $html;
55 55
     }
@@ -88,17 +88,17 @@  discard block
 block discarded – undo
88 88
     public function renderMarker($marker) {
89 89
         $html = '';
90 90
         if ($marker->latitude && $marker->longitude) {
91
-            $html .= 'var latlng = new GLatLng('.$marker->latitude.', '.$marker->longitude.');';
91
+            $html .= 'var latlng = new GLatLng(' . $marker->latitude . ', ' . $marker->longitude . ');';
92 92
         } else {
93 93
             $html .= 'var latlng = map.getCenter();';
94 94
         }
95 95
         $options = array(
96 96
             'draggable' => $marker->getParam('draggable'),
97 97
         );
98
-        $html  .= 'var marker = new GMarker(latlng, ' . json_encode($options) . ');';
98
+        $html .= 'var marker = new GMarker(latlng, ' . json_encode($options) . ');';
99 99
         if ($marker->getParam('info')) {
100
-            $html  .= 'GEvent.addListener(marker, "click", function() {
101
-            marker.openInfoWindowHtml("'.$marker->getParam('info').'");
100
+            $html .= 'GEvent.addListener(marker, "click", function() {
101
+            marker.openInfoWindowHtml("'.$marker->getParam('info') . '");
102 102
             });
103 103
             GEvent.addListener(marker, "dragstart", function() {
104 104
             map.closeInfoWindow();
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
         $listeners = $marker->getListeners();
119 119
         foreach ($listeners as $type=>$functions) {
120 120
             foreach ($functions as $function) {
121
-                $html  .= 'GEvent.addListener(marker, "'.$type.'", function() {
122
-                    '.$function.'
121
+                $html .= 'GEvent.addListener(marker, "' . $type . '", function() {
122
+                    '.$function . '
123 123
                 });
124 124
                 ';
125 125
             }
126 126
         }
127
-        $html  .= 'map.addOverlay(marker);';
127
+        $html .= 'map.addOverlay(marker);';
128 128
         return $html;
129 129
     }
130 130
 }
Please login to merge, or discard this patch.
src/service/google/charts/Charts.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -3,40 +3,40 @@
 block discarded – undo
3 3
 class Nip_Service_Google_Charts
4 4
 {
5 5
 
6
-	protected $_url = "http://chart.apis.google.com/chart";
6
+    protected $_url = "http://chart.apis.google.com/chart";
7 7
 
8
-	/**
9
-	 * Chart factory
10
-	 *
11
-	 * @param string $type
12
-	 * @return Nip_Service_Google_Charts_Chart
13
-	 */
14
-	public function getChart($type = "Line")
15
-	{
16
-		$class = "Nip_Service_Google_Charts_Chart_" . $type;
8
+    /**
9
+     * Chart factory
10
+     *
11
+     * @param string $type
12
+     * @return Nip_Service_Google_Charts_Chart
13
+     */
14
+    public function getChart($type = "Line")
15
+    {
16
+        $class = "Nip_Service_Google_Charts_Chart_" . $type;
17 17
 
18
-		$chart = new $class();
19
-		$chart->setService($this);
18
+        $chart = new $class();
19
+        $chart->setService($this);
20 20
 
21
-		return $chart;
22
-	}
21
+        return $chart;
22
+    }
23 23
 
24
-	public function getURL()
25
-	{
26
-		return $this->_url;
27
-	}
24
+    public function getURL()
25
+    {
26
+        return $this->_url;
27
+    }
28 28
 
29
-	/**
30
-	 * Singleton
31
-	 *
32
-	 * @return Nip_Service_Google_Charts
33
-	 */
34
-	static public function instance()
35
-	{
36
-		static $instance;
37
-		if (!($instance instanceof self)) {
38
-			$instance = new self();
39
-		}
40
-		return $instance;
41
-	}
29
+    /**
30
+     * Singleton
31
+     *
32
+     * @return Nip_Service_Google_Charts
33
+     */
34
+    static public function instance()
35
+    {
36
+        static $instance;
37
+        if (!($instance instanceof self)) {
38
+            $instance = new self();
39
+        }
40
+        return $instance;
41
+    }
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
src/flash/Messages.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 
3 3
 class Nip_Flash_Messages extends Nip_Flash {
4 4
 	
5
-	protected $session_var	= 'flash-messages';
5
+	protected $session_var = 'flash-messages';
6 6
 
7 7
     public function add($var, $type, $value = false) {
8 8
         if (!is_array($this->next[$var][$type])) {
9 9
             $this->next[$var][$type] = array($value);
10 10
         } else {
11 11
             if (is_array($value)) {
12
-                $this->next[$var][$type] = array($this->next[$var][$type] , $value);
12
+                $this->next[$var][$type] = array($this->next[$var][$type], $value);
13 13
             } else {
14 14
                 $this->next[$var][$type][] = $value;
15 15
             }
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 class Nip_Flash_Messages extends Nip_Flash {
4 4
 	
5
-	protected $session_var	= 'flash-messages';
5
+    protected $session_var	= 'flash-messages';
6 6
 
7 7
     public function add($var, $type, $value = false) {
8 8
         if (!is_array($this->next[$var][$type])) {
@@ -15,20 +15,20 @@  discard block
 block discarded – undo
15 15
             }
16 16
         }
17 17
         
18
-		$this->write();
18
+        $this->write();
19 19
         return $this;
20 20
     }
21 21
 
22
-	/**
23
-	 * Returns static instance
24
-	 *
25
-	 * @return self
26
-	 */
27
-	static public function &instance() {
28
-		static $instance;
29
-		if (!($instance instanceof self)) {
30
-			$instance = new self();
31
-		}
32
-		return $instance;
33
-	}
22
+    /**
23
+     * Returns static instance
24
+     *
25
+     * @return self
26
+     */
27
+    static public function &instance() {
28
+        static $instance;
29
+        if (!($instance instanceof self)) {
30
+            $instance = new self();
31
+        }
32
+        return $instance;
33
+    }
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
src/Object.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -3,29 +3,29 @@
 block discarded – undo
3 3
 class Nip_Object
4 4
 {
5 5
 
6
-	protected $_data;
6
+    protected $_data;
7 7
 
8
-	public function &__get($name)
9
-	{
10
-		if (!$this->__isset($name)) {
11
-			$this->_data[$name] = null;
12
-		}
13
-		return $this->_data[$name];
14
-	}
8
+    public function &__get($name)
9
+    {
10
+        if (!$this->__isset($name)) {
11
+            $this->_data[$name] = null;
12
+        }
13
+        return $this->_data[$name];
14
+    }
15 15
 
16
-	public function __set($name, $value)
17
-	{
18
-		$this->_data[$name] = $value;
19
-	}
16
+    public function __set($name, $value)
17
+    {
18
+        $this->_data[$name] = $value;
19
+    }
20 20
 
21
-	public function __isset($name)
22
-	{
23
-		return isset($this->_data[$name]);
24
-	}
21
+    public function __isset($name)
22
+    {
23
+        return isset($this->_data[$name]);
24
+    }
25 25
 
26
-	public function __unset($name)
27
-	{
28
-		unset($this->_data[$name]);
29
-	}
26
+    public function __unset($name)
27
+    {
28
+        unset($this->_data[$name]);
29
+    }
30 30
 
31 31
 }
32 32
\ No newline at end of file
Please login to merge, or discard this patch.