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/Collections/Traits/ArrayAccessTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function offsetSet($offset, $value)
40 40
     {
41
-        if ( ! isset($offset)) {
41
+        if (!isset($offset)) {
42 42
             $this->add($value);
43 43
             return;
44 44
         }
Please login to merge, or discard this patch.
src/Collections/Traits/TransformMethodsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function toArray()
19 19
     {
20
-        return array_map(function ($value) {
20
+        return array_map(function($value) {
21 21
             return $value instanceof AbstractCollection ? $value->toArray() : $value;
22 22
         }, $this->items);
23 23
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     function jsonSerialize()
33 33
     {
34
-        return array_map(function ($value) {
34
+        return array_map(function($value) {
35 35
             if ($value instanceof JsonSerializable) {
36 36
                 return $value->jsonSerialize();
37 37
             } else {
Please login to merge, or discard this patch.
src/Utility/DateTimePlus.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,13 +52,13 @@
 block discarded – undo
52 52
                 'daysInMonth' => 't',
53 53
                 'timestamp' => 'U',
54 54
             ]):
55
-                return (int)$this->format($formats[$name]);
55
+                return (int) $this->format($formats[$name]);
56 56
             case $name === 'weekOfMonth':
57
-                return (int)ceil($this->day / static::DAYS_PER_WEEK);
57
+                return (int) ceil($this->day / static::DAYS_PER_WEEK);
58 58
             case $name === 'age':
59
-                return (int)$this->diffInYears();
59
+                return (int) $this->diffInYears();
60 60
             case $name === 'quarter':
61
-                return (int)ceil($this->month / 3);
61
+                return (int) ceil($this->month / 3);
62 62
             case $name === 'offset':
63 63
                 return $this->getOffset();
64 64
             case $name === 'offsetHours':
Please login to merge, or discard this patch.
src/Container/ServiceProviders/ProviderRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
     public function getProvider($provider)
133 133
     {
134 134
         $name = is_string($provider) ? $provider : get_class($provider);
135
-        return \Nip_Helper_Arrays::first($this->providers, function ($value) use ($name) {
135
+        return \Nip_Helper_Arrays::first($this->providers, function($value) use ($name) {
136 136
             return $value instanceof $name;
137 137
         });
138 138
     }
Please login to merge, or discard this patch.
src/I18n/TranslatorServiceProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     protected function registerLoader()
47 47
     {
48
-        $this->getContainer()->share('translation.loader', function () {
48
+        $this->getContainer()->share('translation.loader', function() {
49 49
             $backend = $this->createFileBackend();
50 50
             return $backend;
51 51
         });
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     protected function registerLanguages()
57 57
     {
58
-        $this->getContainer()->share('translation.languages', function () {
58
+        $this->getContainer()->share('translation.languages', function() {
59 59
             return $this->getLanguages();
60 60
         });
61 61
     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     }
130 130
 
131 131
     /**
132
-     * @param null $languageDirectory
132
+     * @param string $languageDirectory
133 133
      */
134 134
     public function setLanguageDirectory($languageDirectory)
135 135
     {
Please login to merge, or discard this patch.
src/form/Renderer/DisplayGroup.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 
12 12
     /**
13
-     * @param  Nip_Form_DisplayGroup $form
14 13
      * @return Nip_Form_Renderer_DisplayGroup
15 14
      */
16 15
     public function setGroup(Nip_Form_DisplayGroup $group)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     
30 30
     public function render()
31 31
     {
32
-        $return = '<fieldset'.$this->renderAttributes().'>';
32
+        $return = '<fieldset' . $this->renderAttributes() . '>';
33 33
         $return .= '<legend>' . $this->getGroup()->getLegend() . '</legend>';
34 34
 
35 35
         $renderer = clone $this->getGroup()->getForm()->getRenderer();
Please login to merge, or discard this patch.
src/form/Renderer/Abstract.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $return = '<form ';
93 93
         $attributes = $this->getForm()->getAttribs();
94 94
         foreach ($attributes as $name => $value) {
95
-            $return .= $name.'="'.$value.'" ';
95
+            $return .= $name . '="' . $value . '" ';
96 96
         }
97 97
         $return .= '>';
98 98
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         if ($buttons) {
177 177
             $return .= '<div class="form-actions">';
178 178
             foreach ($buttons as $button) {
179
-                $return .= $button->render()."\n";
179
+                $return .= $button->render() . "\n";
180 180
             }
181 181
             $return .= '    <div class="clear"></div>';
182 182
             $return .= '</div>';
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
             $error = $element->isError();
211 211
         }
212 212
 
213
-        $return = '<label class="col-sm-3 '.($error ? ' error' : '').'">';
214
-        $return .= $label.':';
213
+        $return = '<label class="col-sm-3 ' . ($error ? ' error' : '') . '">';
214
+        $return .= $label . ':';
215 215
 
216 216
         if ($required) {
217 217
             $return .= '<span class="required">*</span>';
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     protected function getNewElementRenderer(Nip_Form_Element_Abstract $element)
244 244
     {
245 245
         $type = $element->getType();
246
-        $name = 'Nip_Form_Renderer_Elements_'.ucfirst($type);
246
+        $name = 'Nip_Form_Renderer_Elements_' . ucfirst($type);
247 247
         $renderer = new $name();
248 248
         $renderer->setRenderer($this);
249 249
         $renderer->setElement($element);
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     protected function getNewButtonRenderer(Nip_Form_Button_Abstract $button)
273 273
     {
274 274
         $type = $button->getType();
275
-        $name = 'Nip_Form_Renderer_Button_'.ucfirst($type);
275
+        $name = 'Nip_Form_Renderer_Button_' . ucfirst($type);
276 276
         $renderer = new $name();
277 277
         $renderer->setRenderer($this);
278 278
         $renderer->setItem($button);
Please login to merge, or discard this patch.
src/form/Renderer/Table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $this->_data[$idRow][$idCol]['element'] = $element;
39 39
         $this->_data[$idRow][$idCol]['type'] = $type;
40 40
         if (!in_array($idCol, $this->_cols)) {
41
-            $this->_cols[]= $idCol;
41
+            $this->_cols[] = $idCol;
42 42
         }
43 43
     }
44 44
 
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
     public function renderElements() {
51 51
         $return = '<table';
52 52
         foreach ($this->_table as $attrib => $value) {
53
-            $return .= ' '. $attrib .'="'. $value .'"';
53
+            $return .= ' ' . $attrib . '="' . $value . '"';
54 54
         }
55 55
         $return .= '>';
56 56
         $renderRows = $this->renderRows();
57 57
         $return .= '<tbody';
58 58
         foreach ($this->_tbody as $attrib => $value) {
59
-            $return .= ' '. $attrib .'="'. $value .'"';
59
+            $return .= ' ' . $attrib . '="' . $value . '"';
60 60
         }
61 61
         $return .= '>';
62 62
         if ($renderRows) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 $return .= '<tr';
78 78
                 if ($this->_rows[$idRow]) {
79 79
                     foreach ($this->_rows[$idRow] as $attrib => $value) {
80
-                        $return .= ' '. $attrib .'="'. $value .'"';
80
+                        $return .= ' ' . $attrib . '="' . $value . '"';
81 81
                     }
82 82
                 }
83 83
 
Please login to merge, or discard this patch.
src/form/Renderer/Elements/Checkbox.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 class Nip_Form_Renderer_Elements_Checkbox extends Nip_Form_Renderer_Elements_Input_Abstract {
3 3
 
4 4
     public function generateElement() {
5
-		if (!$this->getElement()->getValue()) {
6
-			$this->getElement()->setValue('on');
7
-		}
5
+        if (!$this->getElement()->getValue()) {
6
+            $this->getElement()->setValue('on');
7
+        }
8 8
         $this->getElement()->removeClass('form-control');
9 9
         
10 10
         $return = '<div class="checkbox">';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         $return = '<div class="checkbox">';
11 11
             $return .= '<label>';
12 12
             $return .= parent::generateElement();
13
-            $return .= ' '. $this->getElement()->getLabel();
13
+            $return .= ' ' . $this->getElement()->getLabel();
14 14
             $return .= '</label>';
15 15
         $return .= '</div>';
16 16
         return $return;
Please login to merge, or discard this patch.