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/Records/Filters/Column/AbstractFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         $table = $this->getManager()->getRecordManager()->getTable();
51 51
 
52
-        return '`'.$table.'`.`'.$this->getField().'`';
52
+        return '`' . $table . '`.`' . $this->getField() . '`';
53 53
     }
54 54
 
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
src/Tool.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     public function getMenu($name)
75 75
     {
76 76
         if (!$this->_menus[$name]) {
77
-            $class = 'Nip_Tool_Menu_'.ucfirst($name);
77
+            $class = 'Nip_Tool_Menu_' . ucfirst($name);
78 78
             $this->_menus[$name] = new $class();
79 79
             $this->_menus[$name]->setTool($this);
80 80
         }
Please login to merge, or discard this patch.
src/Config/Config.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function __construct(array $array = [], $allowModifications = false)
44 44
     {
45
-        $this->allowModifications = (bool)$allowModifications;
45
+        $this->allowModifications = (bool) $allowModifications;
46 46
 
47 47
         foreach ($array as $key => $value) {
48 48
             $this->setDataItem($key, $value);
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * Retrieve a value and return $default if there is no element set.
82 82
      *
83 83
      * @param  string $key
84
-     * @param  mixed $default
84
+     * @param  string $default
85 85
      * @return mixed
86 86
      */
87 87
     public function get($key, $default = null)
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     }
97 97
 
98 98
     /**
99
-     * @param $key
99
+     * @param string $key
100 100
      * @return mixed|null
101 101
      */
102 102
     public function getByKey($key)
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     }
121 121
 
122 122
     /**
123
-     * @param $path
123
+     * @param string $path
124 124
      * @return string
125 125
      */
126 126
     protected function getByPath($path)
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     }
164 164
 
165 165
     /**
166
-     * @param $path
166
+     * @param string $path
167 167
      * @return bool
168 168
      */
169 169
     public function hasByPath($path)
Please login to merge, or discard this patch.
src/form/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function getModelMessage($name, $variables = array())
26 26
     {
27
-        return $this->getModel()->getManager()->getMessage('form.'.$name, $variables);
27
+        return $this->getModel()->getManager()->getMessage('form.' . $name, $variables);
28 28
     }
29 29
 
30 30
     /**
Please login to merge, or discard this patch.
src/form/Decorator/Elements/Abstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $decorator = $this->generate();
51 51
         switch ($this->_placement) {
52 52
             case self::PREPEND:
53
-                return $decorator . $this->getSeparator() .  $content;
53
+                return $decorator . $this->getSeparator() . $content;
54 54
             case self::APPEND:
55 55
             default:
56 56
                 return $content . $this->getSeparator() . $decorator;
Please login to merge, or discard this patch.
src/Helpers/View/GoogleDFP.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@
 block discarded – undo
79 79
         $add = $this->_slots[$id];
80 80
         if ($add) {
81 81
             return "
82
-                <!-- ".$add['unitName']." -->
83
-                <div id='".$add['divId']."' style='width:".$add['width']."px; height:".$add['height']."px;'>
82
+                <!-- ".$add['unitName'] . " -->
83
+                <div id='".$add['divId'] . "' style='width:" . $add['width'] . "px; height:" . $add['height'] . "px;'>
84 84
                 <script type='text/javascript'>
85
-                googletag.cmd.push(function() { googletag.display('".$add['divId']."'); });
85
+                googletag.cmd.push(function() { googletag.display('".$add['divId'] . "'); });
86 86
                 </script>
87 87
                 </div>";
88 88
         }
Please login to merge, or discard this patch.
src/Helpers/view/Meta.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -192,43 +192,43 @@
 block discarded – undo
192 192
     public function __toString()
193 193
     {
194 194
         if ($this->title) {
195
-            $return[] = '<title>'.$this->title.'</title>';
195
+            $return[] = '<title>' . $this->title . '</title>';
196 196
         }
197 197
 
198 198
         $return[] = '<meta http-equiv="Content-Type" content="text/html;" />';
199
-        $return[] = '<meta charset="'.$this->charset.'">';
200
-        $return[] = '<meta http-equiv="content-language" content="'.$this->language.'" />';
199
+        $return[] = '<meta charset="' . $this->charset . '">';
200
+        $return[] = '<meta http-equiv="content-language" content="' . $this->language . '" />';
201 201
 
202 202
         $return[] = '<meta name="viewport" 
203 203
                         content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>';
204 204
 
205 205
         if ($this->authors) {
206
-            $return[] = '<meta name="author" content="'.implode(", ", $this->authors).'" />';
206
+            $return[] = '<meta name="author" content="' . implode(", ", $this->authors) . '" />';
207 207
         }
208 208
         if ($this->publisher) {
209
-            $return[] = '<meta name="publisher" content="'.$this->publisher.'" />';
209
+            $return[] = '<meta name="publisher" content="' . $this->publisher . '" />';
210 210
         }
211 211
         if ($this->copyright) {
212
-            $return[] = '<meta name="copyright" content="'.$this->copyright.'" />';
212
+            $return[] = '<meta name="copyright" content="' . $this->copyright . '" />';
213 213
         }
214 214
 
215
-        $return[] = '<meta name="robots" content="'.$this->robots.'" />';
215
+        $return[] = '<meta name="robots" content="' . $this->robots . '" />';
216 216
 
217 217
         if ($this->keywords) {
218
-            $return[] = '<meta name="keywords" content="'.implode(",", $this->keywords).'" />';
218
+            $return[] = '<meta name="keywords" content="' . implode(",", $this->keywords) . '" />';
219 219
         }
220 220
 
221 221
         if (!empty($this->description)) {
222
-            $return[] = '<meta name="description" content="'.$this->description.'" />';
222
+            $return[] = '<meta name="description" content="' . $this->description . '" />';
223 223
         }
224 224
 
225 225
         if (!empty($this->verify_v1)) {
226
-            $return[] = '<meta name="verify-v1" content="'.$this->verify_v1.'" />';
226
+            $return[] = '<meta name="verify-v1" content="' . $this->verify_v1 . '" />';
227 227
         }
228 228
 
229 229
         foreach ($this->feeds as $feed) {
230 230
             $return[] = '<link rel="alternate" 
231
-                type="application/rss+xml" title="'.$feed->title.'" href="'.$feed->url.'" />';
231
+                type="application/rss+xml" title="'.$feed->title . '" href="' . $feed->url . '" />';
232 232
         }
233 233
 
234 234
 //        $return[] = '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />';
Please login to merge, or discard this patch.
src/Helpers/view/Paginator.php 1 patch
Indentation   +70 added lines, -70 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@  discard block
 block discarded – undo
5 5
 class Paginator extends AbstractHelper
6 6
 {
7 7
 
8
-	protected $_url;
8
+    protected $_url;
9 9
     protected $_interval = [];
10
-	protected $_paginator;
11
-	protected $_viewPath = "/pagination";
10
+    protected $_paginator;
11
+    protected $_viewPath = "/pagination";
12 12
 
13
-	public function __call($name, $arguments)
14
-	{
15
-		return call_user_func_array(array($this->getPaginator(), $name), $arguments);
16
-	}
13
+    public function __call($name, $arguments)
14
+    {
15
+        return call_user_func_array(array($this->getPaginator(), $name), $arguments);
16
+    }
17 17
 
18 18
     /**
19 19
      * @return \Nip_Record_Paginator
@@ -30,75 +30,75 @@  discard block
 block discarded – undo
30 30
         return $this;
31 31
     }
32 32
 
33
-	public function url($page)
34
-	{
35
-		$return = $this->_url;
33
+    public function url($page)
34
+    {
35
+        $return = $this->_url;
36 36
         $return = str_replace('&amp;page=' . $this->getPaginator()->getPage(), '', $return);
37 37
         $return = str_replace('&page=' . $this->getPaginator()->getPage(), '', $return);
38 38
         $return = str_replace('page=' . $this->getPaginator()->getPage(), '', $return);
39 39
 
40
-		if ($page > 1) {
41
-			$return = rtrim($return, "/");
40
+        if ($page > 1) {
41
+            $return = rtrim($return, "/");
42 42
 
43 43
             if (strpos($return, '?') === false) {
44
-				$return .= '?page=' . $page;
45
-			} else {
46
-				$return .= '&page=' . $page;
47
-			}
44
+                $return .= '?page=' . $page;
45
+            } else {
46
+                $return .= '&page=' . $page;
47
+            }
48
+        }
49
+        return $return;
50
+    }
51
+
52
+    public function render()
53
+    {
54
+        $return = '';
55
+
56
+        if ($this->getPaginator() && $this->getPaginator()->getPages() > 1) {
57
+            $this->getView()->paginator = $this;
58
+            $this->getView()->pages = $this->getPaginator()->getPages();
59
+            $this->getView()->page = $this->getPaginator()->getPage();
60
+            $this->getView()->interval = $this->getInterval();
61
+
62
+            $return = $this->getView()->load($this->_viewPath, array(), true);
63
+        }
64
+
65
+        return $return;
66
+    }
67
+
68
+    public function getInterval()
69
+    {
70
+        $this->interval['min'] = 1;
71
+        $this->interval['max'] = $this->getPaginator()->getPages();
72
+
73
+        $pages = $this->interval['max'];
74
+        $page = $this->getPaginator()->getPage();
75
+
76
+        if ($pages > 7) {
77
+            if ($page <= 6) {
78
+                $this->interval['min'] = 1;
79
+                $this->interval['max'] = 7;
80
+            } elseif ($pages - $page <= 5) {
81
+                $this->interval['min'] = $pages - 6;
82
+                $this->interval['max'] = $pages;
83
+            } else {
84
+                $this->interval['min'] = $page - 3;
85
+                $this->interval['max'] = $page + 3;
86
+            }
48 87
         }
49
-		return $return;
50
-	}
51
-
52
-	public function render()
53
-	{
54
-		$return = '';
55
-
56
-		if ($this->getPaginator() && $this->getPaginator()->getPages() > 1) {
57
-			$this->getView()->paginator = $this;
58
-			$this->getView()->pages = $this->getPaginator()->getPages();
59
-			$this->getView()->page = $this->getPaginator()->getPage();
60
-			$this->getView()->interval = $this->getInterval();
61
-
62
-			$return = $this->getView()->load($this->_viewPath, array(), true);
63
-		}
64
-
65
-		return $return;
66
-	}
67
-
68
-	public function getInterval()
69
-	{
70
-		$this->interval['min'] = 1;
71
-		$this->interval['max'] = $this->getPaginator()->getPages();
72
-
73
-		$pages = $this->interval['max'];
74
-		$page = $this->getPaginator()->getPage();
75
-
76
-		if ($pages > 7) {
77
-			if ($page <= 6) {
78
-				$this->interval['min'] = 1;
79
-				$this->interval['max'] = 7;
80
-			} elseif ($pages - $page <= 5) {
81
-				$this->interval['min'] = $pages - 6;
82
-				$this->interval['max'] = $pages;
83
-			} else {
84
-				$this->interval['min'] = $page - 3;
85
-				$this->interval['max'] = $page + 3;
86
-			}
87
-		}
88
-
89
-		return $this->interval;
90
-	}
91
-
92
-	public function setViewPath($view)
93
-	{
94
-		$this->_viewPath = $view;
95
-		return $this;
96
-	}
97
-
98
-	public function setURL($url)
99
-	{
100
-		$this->_url = $url;
101
-		return $this;
102
-	}
88
+
89
+        return $this->interval;
90
+    }
91
+
92
+    public function setViewPath($view)
93
+    {
94
+        $this->_viewPath = $view;
95
+        return $this;
96
+    }
97
+
98
+    public function setURL($url)
99
+    {
100
+        $this->_url = $url;
101
+        return $this;
102
+    }
103 103
 
104 104
 }
Please login to merge, or discard this patch.
src/Helpers/view/Messages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         $return = '';
38 38
 
39
-        $items = (array)$items;
39
+        $items = (array) $items;
40 40
 
41 41
         if (count($items)) {
42 42
             if ($wrap) {
Please login to merge, or discard this patch.