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 ( 7b9169...dd3b16 )
by Jan
07:25
created
src/Resources/contao/dca/tl_belegungsplan_calender.php 1 patch
Spacing   +29 added lines, -54 removed lines patch added patch discarded remove patch
@@ -15,63 +15,51 @@  discard block
 block discarded – undo
15 15
 /**
16 16
  * Table tl_belegungsplan_calender
17 17
  */
18
-$GLOBALS['TL_DCA']['tl_belegungsplan_calender'] = array
19
-(
18
+$GLOBALS['TL_DCA']['tl_belegungsplan_calender'] = array(
20 19
 	// Config
21
-	'config' => array
22
-	(
20
+	'config' => array(
23 21
 		'dataContainer'			=> 'Table',
24 22
 		'ptable'				=> 'tl_belegungsplan_objekte',
25 23
 		'ctable'				=> array('tl_content'),
26 24
 		'switchToEdit'			=> true,
27 25
 		'enableVersioning'		=> true,
28
-		'onsubmit_callback'		=> array(array('tl_belegungsplan_calender','loadUeberschneidung')),
26
+		'onsubmit_callback'		=> array(array('tl_belegungsplan_calender', 'loadUeberschneidung')),
29 27
 		'ondelete_callback'		=> array(array('tl_belegungsplan_calender', 'calenderOndeleteCallback')),
30
-		'sql' => array
31
-		(
32
-			'keys' => array
33
-			(
28
+		'sql' => array(
29
+			'keys' => array(
34 30
 				'id' => 'primary',
35 31
 				'pid' => 'index'
36 32
 			)
37 33
 		)
38 34
 	),
39 35
 	// List
40
-	'list' => array
41
-	(
42
-		'sorting' => array
43
-		(
36
+	'list' => array(
37
+		'sorting' => array(
44 38
 			'mode'                    => 4,
45 39
 			'fields'                  => array('startDate DESC'),
46 40
 			'headerFields'            => array('name'),
47 41
 			'panelLayout'             => 'filter;sort,search,limit',
48 42
 			'child_record_callback'   => array('tl_belegungsplan_calender', 'listCalender')
49 43
 		),
50
-		'label' => array
51
-		(
44
+		'label' => array(
52 45
 			'fields'                  => array('gast', 'startDate', 'endDate'),
53 46
 			'format'                  => '%s'
54 47
 		),
55
-		'global_operations' => array
56
-		(
57
-			'all' => array
58
-			(
48
+		'global_operations' => array(
49
+			'all' => array(
59 50
 				'label'               => &$GLOBALS['TL_LANG']['MSC']['all'],
60 51
 				'href'                => 'act=select',
61 52
 				'class'               => 'header_edit_all',
62 53
 				'attributes'          => 'onclick="Backend.getScrollOffset()" accesskey="e"'
63 54
 			)
64 55
 		),
65
-		'operations' => array
66
-		(
67
-			'edit' => array
68
-			(
56
+		'operations' => array(
57
+			'edit' => array(
69 58
 				'label'               => &$GLOBALS['TL_LANG']['tl_belegungsplan_calender']['edit'],
70 59
 				'href'                => 'act=edit',
71 60
 				'icon'                => 'edit.svg'
72 61
 			),
73
-			'delete' => array
74
-			(
62
+			'delete' => array(
75 63
 				'label'               => &$GLOBALS['TL_LANG']['tl_belegungsplan_calender']['delete'],
76 64
 				'href'                => 'act=delete',
77 65
 				'icon'                => 'delete.svg',
@@ -80,8 +68,7 @@  discard block
 block discarded – undo
80 68
 		)
81 69
 	),
82 70
 	// Palettes
83
-	'palettes' => array
84
-	(
71
+	'palettes' => array(
85 72
 		'__selector__'				=> array('dauer'),
86 73
 		'default'					=> '{title_legend},gast,author;{day_legend},dauer',
87 74
 		'oneday'					=> '{title_legend},gast,author;{day_legend},dauer;{date_legend},startDate',
@@ -91,24 +78,19 @@  discard block
 block discarded – undo
91 78
 	'subpalettes' => array(
92 79
 	),
93 80
 	// Fields
94
-	'fields' => array
95
-	(
96
-		'id' => array
97
-		(
81
+	'fields' => array(
82
+		'id' => array(
98 83
 			'sql'                     => "int(10) unsigned NOT NULL auto_increment"
99 84
 		),
100
-		'pid' => array
101
-		(
85
+		'pid' => array(
102 86
 			'foreignKey'              => 'tl_belegungsplan_objekte.name',
103 87
 			'sql'                     => "int(10) unsigned NOT NULL default '0'",
104 88
 			'relation'                => array('type'=>'belongsTo', 'load'=>'eager')
105 89
 		),
106
-		'tstamp' => array
107
-		(
90
+		'tstamp' => array(
108 91
 			'sql'                     => "int(10) unsigned NOT NULL default '0'"
109 92
 		),
110
-		'gast' => array
111
-		(
93
+		'gast' => array(
112 94
 			'label'                   => &$GLOBALS['TL_LANG']['tl_belegungsplan_calender']['gast'],
113 95
 			'exclude'                 => true,
114 96
 			'search'                  => true,
@@ -117,8 +99,7 @@  discard block
 block discarded – undo
117 99
 			'eval'                    => array('mandatory'=>true, 'maxlength'=>255, 'tl_class'=>'long'),
118 100
 			'sql'                     => "varchar(255) NOT NULL default ''"
119 101
 		),
120
-		'author' => array
121
-		(
102
+		'author' => array(
122 103
 			'label'                   => &$GLOBALS['TL_LANG']['tl_belegungsplan_calender']['author'],
123 104
 			'default'                 => BackendUser::getInstance()->id,
124 105
 			'exclude'                 => true,
@@ -132,8 +113,7 @@  discard block
 block discarded – undo
132 113
 			'sql'                     => "int(10) unsigned NOT NULL default '0'",
133 114
 			'relation'                => array('type'=>'belongsTo', 'load'=>'eager')
134 115
 		),
135
-		'startDate' => array
136
-		(
116
+		'startDate' => array(
137 117
 			'label'			=> &$GLOBALS['TL_LANG']['tl_belegungsplan_calender']['startDate'],
138 118
 			'exclude'		=> true,
139 119
 			'search'		=> true,
@@ -142,14 +122,12 @@  discard block
 block discarded – undo
142 122
 			'flag'			=> 8,
143 123
 			'inputType'		=> 'text',
144 124
 			'eval'			=> array('rgxp'=>'date', 'mandatory'=>true, 'doNotCopy'=>true, 'datepicker'=>true, 'tl_class'=>'w50 wizard'),
145
-			'save_callback'	=> array
146
-			(
147
-				array('tl_belegungsplan_calender','setEndDate')
125
+			'save_callback'	=> array(
126
+				array('tl_belegungsplan_calender', 'setEndDate')
148 127
 			),
149 128
 			'sql'			=> "int(10) unsigned NULL"
150 129
 		),
151
-		'endDate' => array
152
-		(
130
+		'endDate' => array(
153 131
 			'label'			=> &$GLOBALS['TL_LANG']['tl_belegungsplan_calender']['endDate'],
154 132
 			'exclude'		=> true,
155 133
 			'search'		=> true,
@@ -158,21 +136,18 @@  discard block
 block discarded – undo
158 136
 			'flag'			=> 8,
159 137
 			'inputType'		=> 'text',
160 138
 			'eval'			=> array('rgxp'=>'date', 'mandatory'=>true, 'doNotCopy'=>true, 'datepicker'=>true, 'tl_class'=>'w50 wizard'),
161
-			'save_callback'	=> array
162
-			(
163
-				array('tl_belegungsplan_calender','loadEndDate')
139
+			'save_callback'	=> array(
140
+				array('tl_belegungsplan_calender', 'loadEndDate')
164 141
 			),
165 142
 			'sql'			=> "int(10) unsigned NULL"
166 143
 		),
167
-		'ueberschneidung' => array
168
-		(
144
+		'ueberschneidung' => array(
169 145
 			'label'			=> &$GLOBALS['TL_LANG']['tl_belegungsplan_calender']['ueberschneidung'],
170 146
 			'exclude'		=> true,
171 147
 			'inputType'		=> 'text',
172 148
 			'sql'			=> "text NULL"
173 149
 		),
174
-		'dauer' => array
175
-		(
150
+		'dauer' => array(
176 151
 			'label'			=> &$GLOBALS['TL_LANG']['tl_belegungsplan_calender']['dauer'],
177 152
 			'inputType'		=> 'radio',
178 153
 			'options'		=> array('oneday', 'moreday'),
@@ -209,7 +184,7 @@  discard block
 block discarded – undo
209 184
 	public function listCalender($arrRow)
210 185
 	{
211 186
 		return '<div class="tl_content_left">' . $arrRow['gast'] . 
212
-		' <span style="color:#999;padding-left:3px">[' . Date::parse(Config::get('dateFormat'), $arrRow['startDate']) .($arrRow['dauer'] == 'moreday' ? $GLOBALS['TL_LANG']['MSC']['cal_timeSeparator'] . Date::parse(Config::get('dateFormat'), $arrRow['endDate']) : '') . ']</span>' . 
187
+		' <span style="color:#999;padding-left:3px">[' . Date::parse(Config::get('dateFormat'), $arrRow['startDate']) . ($arrRow['dauer'] == 'moreday' ? $GLOBALS['TL_LANG']['MSC']['cal_timeSeparator'] . Date::parse(Config::get('dateFormat'), $arrRow['endDate']) : '') . ']</span>' . 
213 188
 		($arrRow['endDate'] < $arrRow['startDate'] ? ' ' . Image::getHtml('error.svg', $GLOBALS['TL_LANG']['tl_belegungsplan_calender']['endDateListError'], 'title="' . $GLOBALS['TL_LANG']['tl_belegungsplan_calender']['endDateListError'] . '"') : '') . 
214 189
 		($arrRow['ueberschneidung'] ? ' ' . Image::getHtml('error_404.svg', $GLOBALS['TL_LANG']['tl_belegungsplan_calender']['ueberschneidung'][0], 'title="' . $GLOBALS['TL_LANG']['tl_belegungsplan_calender']['ueberschneidung'][0] . '"') : '') . 
215 190
 		'</div>';
Please login to merge, or discard this patch.