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.
Passed
Branch master (3eac19)
by Gabriel
05:37 queued 18s
created
src/form/element/Select.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             $option = (object) $option;
14 14
             
15 15
             $oValue    = $option->$valueKey;
16
-            $oLabel   = $option->$labelKey;
16
+            $oLabel = $option->$labelKey;
17 17
             $oDisabled = $option->disabled;
18 18
 
19 19
             $atribs = array(
Please login to merge, or discard this patch.
src/form/element/Texteditor.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
     }
30 30
     
31 31
     protected function filterHTML() {
32
-       $this->setValue($this->getInputFilter()->process($this->getValue()));
33
-       return $this;
32
+        $this->setValue($this->getInputFilter()->process($this->getValue()));
33
+        return $this;
34 34
     }
35 35
 
36 36
 
Please login to merge, or discard this patch.
src/form/element/Radio.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             $this->setAttrib('checked', 'checked');
19 19
         } else {
20 20
             $this->delAttrib('checked');			
21
-		}
21
+        }
22 22
 		
23 23
         return $this;
24 24
     }
Please login to merge, or discard this patch.
src/form/element/CheckboxGroup.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             foreach ($elements as $key=>$element) {				
32 32
                 $element->setChecked(false);
33 33
             }
34
-		}
34
+        }
35 35
         return $this;
36 36
     }
37 37
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $element = $this->getForm()->getNewElement('checkbox');
40 40
         $name = $this->getName();
41 41
         if (!strpos($name, '[]')) {
42
-            $name = $name .'[]';
42
+            $name = $name . '[]';
43 43
         }
44 44
         $element->setName($name);
45 45
         return $element;
Please login to merge, or discard this patch.
src/form/element/Input_Group.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@
 block discarded – undo
65 65
         trigger_error('No new element funtion defined for this group', E_USER_ERROR);
66 66
     }
67 67
     	
68
-	public function getValues()
69
-	{
70
-		return $this->_values;
71
-	}
68
+    public function getValues()
69
+    {
70
+        return $this->_values;
71
+    }
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 
21 21
             $oValue    = $option->$valueKey;
22
-            $oLabel   = $option->$labelKey;
22
+            $oLabel = $option->$labelKey;
23 23
             $oDisabled = $option->disabled;
24 24
 
25 25
             if ($oDisabled) {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * @return Nip_Form_Element_Input_Group
36 36
      */
37
-    public function addOption($value, $label , $attribs=array()) {
37
+    public function addOption($value, $label, $attribs = array()) {
38 38
         $element = $this->getNewElement();
39 39
         $element->setValue($value);
40 40
         $element->setLabel($label);
Please login to merge, or discard this patch.
src/form/element/Dateselect.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
                     $element->setValue($value);
116 116
                 }
117 117
             }
118
-		}
118
+        }
119 119
         return $this;
120 120
     }
121 121
 
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
         
12 12
         $localeObj = Nip_Locale::instance();
13 13
         $this->setLocale($localeObj->getCurrent());
14
-        $this->setFormat($localeObj->getOption(array('time','dateFormat')));
14
+        $this->setFormat($localeObj->getOption(array('time', 'dateFormat')));
15 15
         
16 16
         $this->initSelects();
17 17
     }  
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function updateNameSelects() {                               
26 26
         $inputName = $this->getName();
27
-        $this->_elements['day']->setName($inputName.'[day]');
28
-        $this->_elements['month']->setName($inputName.'[month]');
29
-        $this->_elements['year']->setName($inputName.'[year]'); 
27
+        $this->_elements['day']->setName($inputName . '[day]');
28
+        $this->_elements['month']->setName($inputName . '[month]');
29
+        $this->_elements['year']->setName($inputName . '[year]'); 
30 30
     }
31 31
     
32 32
     public function initSelects() {                  
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         if (!$this->_elements['day']) {
36 36
             $dayElement = $this->getForm()->getNewElement('select');    
37 37
             
38
-            for ($i=1; $i<=31 ; $i++) {
38
+            for ($i = 1; $i <= 31; $i++) {
39 39
                 $dayElement->addOption($i, $i);
40 40
             }
41 41
             $dayElement->setValue(date('d'));
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
         
46 46
         if (!$this->_elements['month']) {        
47 47
             $monthElement = $this->getForm()->getNewElement('select');    
48
-            for ($i=1; $i<=12 ; $i++) {
49
-                $monthElement->addOption($i, date('M', mktime(0,0,0,$i,1,2014)));
48
+            for ($i = 1; $i <= 12; $i++) {
49
+                $monthElement->addOption($i, date('M', mktime(0, 0, 0, $i, 1, 2014)));
50 50
             }        
51 51
             $monthElement->setValue(date('m'));
52 52
             $this->_elements['month'] = $monthElement;
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
         if (!$this->_elements['year']) {         
56 56
             $yearElement = $this->getForm()->getNewElement('select');   
57 57
             $curentYear = date('Y');
58
-            $startYear = $curentYear-100;
59
-            $endYear = $curentYear+5;
60
-            for ($i=$startYear; $i<=$endYear ; $i++) {
58
+            $startYear = $curentYear - 100;
59
+            $endYear = $curentYear + 5;
60
+            for ($i = $startYear; $i <= $endYear; $i++) {
61 61
                 $yearElement->addOption($i, $i);
62 62
             }        
63 63
             $yearElement->setValue(date('Y'));
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $month = $this->_elements['month']->getValue();
136 136
         $year = $this->_elements['year']->getValue();
137 137
         
138
-        return mktime(0,0,0,$month, $day, $year);
138
+        return mktime(0, 0, 0, $month, $day, $year);
139 139
     }
140 140
         
141 141
 }
142 142
\ No newline at end of file
Please login to merge, or discard this patch.
src/form/element/Timeselect.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
                     $element->setValue($value);
97 97
                 }
98 98
             }
99
-		}
99
+        }
100 100
         return $this;
101 101
     }
102 102
 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function updateNameSelects() {                               
20 20
         $inputName = $this->getName();
21
-        $this->_elements['hours']->setName($inputName.'[hours]');
22
-        $this->_elements['minutes']->setName($inputName.'[minutes]');
23
-        $this->_elements['seconds']->setName($inputName.'[seconds]'); 
21
+        $this->_elements['hours']->setName($inputName . '[hours]');
22
+        $this->_elements['minutes']->setName($inputName . '[minutes]');
23
+        $this->_elements['seconds']->setName($inputName . '[seconds]'); 
24 24
     }
25 25
     
26 26
     public function initSelects() {                  
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
             $hoursElement = $this->getForm()->getNewElement('select');                
31 31
             
32 32
             $hoursElement->addOption('-', 'HH');
33
-            for ($i=0; $i<=24 ; $i++) {
34
-                $hoursElement->addOption($i, $i.'h');
33
+            for ($i = 0; $i <= 24; $i++) {
34
+                $hoursElement->addOption($i, $i . 'h');
35 35
             }
36 36
             $hoursElement->setValue('-');
37 37
             
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
             $minutesElement = $this->getForm()->getNewElement('select');    
44 44
             
45 45
             $minutesElement->addOption('-', 'MM');
46
-            for ($i=0; $i<=59 ; $i++) {
47
-                $minutesElement->addOption($i, $i.'m');
46
+            for ($i = 0; $i <= 59; $i++) {
47
+                $minutesElement->addOption($i, $i . 'm');
48 48
             }        
49 49
             $minutesElement->setValue('-');
50 50
             
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             $secondsElement = $this->getForm()->getNewElement('select');   
56 56
             
57 57
             $secondsElement->addOption('-', 'SS');
58
-            for ($i=0; $i<=59 ; $i++) {
59
-                $secondsElement->addOption($i, $i.'s');
58
+            for ($i = 0; $i <= 59; $i++) {
59
+                $secondsElement->addOption($i, $i . 's');
60 60
             }        
61 61
             $secondsElement->setValue('-');
62 62
             
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
             $value = $this->getValue();
107 107
             if ($value) {
108 108
                 $expectedValue = str_pad(intval($this->_elements['hours']->getValue()), 2, "0", STR_PAD_LEFT);
109
-                $expectedValue .= ':'. str_pad(intval($this->_elements['minutes']->getValue()), 2, "0", STR_PAD_LEFT);
110
-                $expectedValue .= ':'. str_pad(intval($this->_elements['seconds']->getValue()), 2, "0", STR_PAD_LEFT);
109
+                $expectedValue .= ':' . str_pad(intval($this->_elements['minutes']->getValue()), 2, "0", STR_PAD_LEFT);
110
+                $expectedValue .= ':' . str_pad(intval($this->_elements['seconds']->getValue()), 2, "0", STR_PAD_LEFT);
111 111
                 if ($expectedValue != $value) {
112 112
                     $message = $this->getForm()->getMessageTemplate('bad-' . $this->getName());
113 113
                     $message = $message ? $message : 'I couldn\'t parse the ' . strtolower($this->getLabel()) . ' you entered';                
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
         $hour = intval($this->_elements['hours']->getValue());
123 123
         $minutes = intval($this->_elements['minutes']->getValue());
124 124
         $seconds = intval($this->_elements['seconds']->getValue());
125
-        if ($hour+$minutes+$seconds > 0) {
126
-            return mktime($hour,$minutes,$seconds);
125
+        if ($hour + $minutes + $seconds > 0) {
126
+            return mktime($hour, $minutes, $seconds);
127 127
         }
128 128
         return false;
129 129
     }
Please login to merge, or discard this patch.
src/form/element/File.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 class Nip_Form_Element_File extends Nip_Form_Element_Input_Abstract {
3 3
     
4
-     protected $_value;
4
+        protected $_value;
5 5
 
6 6
 
7
-     public function init() {
7
+        public function init() {
8 8
         parent::init();
9 9
         $this->setAttrib('type', 'file');
10 10
         $this->getForm()->setAttrib('enctype', 'multipart/form-data');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             $name = str_replace(']', '', $name);
18 18
             $parts = explode('[', $name);
19 19
 
20
-            if (count($parts) > 1 ) { 
20
+            if (count($parts) > 1) { 
21 21
                 if ($_FILES[$parts[0]]) {
22 22
                     $fileData = array();
23 23
                     foreach ($_FILES[$parts[0]] as $key=>$data) {
Please login to merge, or discard this patch.
src/form/element/TextMiniEditor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
     protected $_type = 'textMiniEditor';
5 5
 
6
-    protected $_allowedTags = array("a", "b", "br", "p", "span", "strong" );
6
+    protected $_allowedTags = array("a", "b", "br", "p", "span", "strong");
7 7
     protected $_allowedAttributes = array("align", "src", "href", "target");
8 8
 
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.