Passed
Push — master ( 72f7b3...4061f4 )
by Observer
02:00
created
bin/qero-packages/winforms-php/VoidFramework/engine/common/Constants.php 3 patches
Indentation   +299 added lines, -299 removed lines patch added patch discarded remove patch
@@ -8,338 +8,338 @@
 block discarded – undo
8 8
 $converter = new WFClass ('System.Drawing.ColorTranslator');
9 9
 
10 10
 $constants = [
11
-	# Информация об окружении
11
+    # Информация об окружении
12 12
 	
13
-	'EXE_NAME'     => $APPLICATION->executablePath,
14
-	'DOC_ROOT'     => dirname ($APPLICATION->executablePath),
15
-	'IS_ADMIN'     => is_writable (getenv ('SystemRoot')),
16
-	'START_PARAMS' => $params,
17
-	'USERNAME'	   => $env->username,
13
+    'EXE_NAME'     => $APPLICATION->executablePath,
14
+    'DOC_ROOT'     => dirname ($APPLICATION->executablePath),
15
+    'IS_ADMIN'     => is_writable (getenv ('SystemRoot')),
16
+    'START_PARAMS' => $params,
17
+    'USERNAME'	   => $env->username,
18 18
 
19
-	# Константы MessageBox'а
19
+    # Константы MessageBox'а
20 20
 	
21
-	'MB_YESNO' 			  => 4,
22
-	'MB_YESNOCANCEL' 	  => 3,
23
-	'MB_OK' 			  => 0,
24
-	'MB_OKCANCEL' 		  => 1,
25
-	'MB_RETRYCANCEL' 	  => 5,
26
-	'MB_ABORTRETRYIGNORE' => 2,
27
-	'MBI_ASTERISK' 		  => 64,
28
-	'MBI_ERROR' 		  => 16,
29
-	'MBI_EXCLAMATION' 	  => 48,
30
-	'MBI_HAND' 			  => 16,
31
-	'MBI_INFORMATION' 	  => 64,
32
-	'MBI_NONE' 			  => 0,
33
-	'MBI_QUESTION' 		  => 32,
34
-	'MBI_STOP' 			  => 16,
35
-	'MBI_WARNING' 		  => 48,
36
-	'MBDB_1' 			  => 0,
37
-	'MBDB_2' 			  => 256,
38
-	'MBDB_3' 			  => 512,
21
+    'MB_YESNO' 			  => 4,
22
+    'MB_YESNOCANCEL' 	  => 3,
23
+    'MB_OK' 			  => 0,
24
+    'MB_OKCANCEL' 		  => 1,
25
+    'MB_RETRYCANCEL' 	  => 5,
26
+    'MB_ABORTRETRYIGNORE' => 2,
27
+    'MBI_ASTERISK' 		  => 64,
28
+    'MBI_ERROR' 		  => 16,
29
+    'MBI_EXCLAMATION' 	  => 48,
30
+    'MBI_HAND' 			  => 16,
31
+    'MBI_INFORMATION' 	  => 64,
32
+    'MBI_NONE' 			  => 0,
33
+    'MBI_QUESTION' 		  => 32,
34
+    'MBI_STOP' 			  => 16,
35
+    'MBI_WARNING' 		  => 48,
36
+    'MBDB_1' 			  => 0,
37
+    'MBDB_2' 			  => 256,
38
+    'MBDB_3' 			  => 512,
39 39
 	
40
-	# Константы DialogResult
40
+    # Константы DialogResult
41 41
 	
42
-	'drOk'	   => 1,
43
-	'drYes'    => 6,
44
-	'drNo' 	   => 7,
45
-	'drCancel' => 2,
46
-	'drRetry'  => 4,
47
-	'drAbort'  => 3,
48
-	'drIgnore' => 5,
49
-	'drNone'   => 0,
42
+    'drOk'	   => 1,
43
+    'drYes'    => 6,
44
+    'drNo' 	   => 7,
45
+    'drCancel' => 2,
46
+    'drRetry'  => 4,
47
+    'drAbort'  => 3,
48
+    'drIgnore' => 5,
49
+    'drNone'   => 0,
50 50
 	
51
-	# Константы форм
51
+    # Константы форм
52 52
 	
53
-	'fbsNone'			   => 0,
54
-	'fbsSingle'			   => 1,
55
-	'fbs3D'				   => 2,
56
-	'fbsDialog'			   => 3,
57
-	'fbsSizable'		   => 4,
58
-	'fbsToolWindow'		   => 5,
59
-	'fbsSizableToolWindow' => 6,
60
-
61
-	'fwsNormal'	   => 0,
62
-	'fwsMinimized' => 1,
63
-	'fwsMaximized' => 2,
64
-
65
-	'fspManual' 				=> 0,
66
-	'fspCenterScreen' 			=> 1,
67
-	'fspWindowsDefaultLocation' => 2,
68
-	'fspWindowsDefaultBounds'   => 3,
69
-	'fspCenterParent' 			=> 4,
70
-
71
-	# Константы стиля оконтовки
72
-
73
-	'bsNone' 		=> 0,
74
-	'bsFixedSingle' => 1,
75
-	'bsFixed3D' 	=> 2,
76
-
77
-	# Константы выравнивания
78
-
79
-	'alTopLeft' 	 => 1,
80
-	'alTopCenter' 	 => 2,
81
-	'alTopRight' 	 => 4,
82
-	'alMiddleLeft' 	 => 16,
83
-	'alMiddleCenter' => 32,
84
-	'alMiddleRight'  => 64,
85
-	'alBottomLeft' 	 => 256,
86
-	'alBottomCenter' => 512,
87
-	'alBottomRight'  => 1024,
88
-
89
-	# Константы притягивания (Anchor)
90
-
91
-	'acNone'   => 0,
92
-	'acTop'	   => 1,
93
-	'acBottom' => 2,
94
-	'acLeft'   => 4,
95
-	'acRight'  => 8,
96
-
97
-	# Константы SizeMode-параметра PictureBox'а
98
-
99
-	'smNormal' 		 => 0,
100
-	'smStretchImage' => 1,
101
-	'smAutoSize' 	 => 2,
102
-	'smCenterImage'  => 3,
103
-	'smZoom' 		 => 4,
104
-
105
-	# Константы View-параметра ListView'а
53
+    'fbsNone'			   => 0,
54
+    'fbsSingle'			   => 1,
55
+    'fbs3D'				   => 2,
56
+    'fbsDialog'			   => 3,
57
+    'fbsSizable'		   => 4,
58
+    'fbsToolWindow'		   => 5,
59
+    'fbsSizableToolWindow' => 6,
60
+
61
+    'fwsNormal'	   => 0,
62
+    'fwsMinimized' => 1,
63
+    'fwsMaximized' => 2,
64
+
65
+    'fspManual' 				=> 0,
66
+    'fspCenterScreen' 			=> 1,
67
+    'fspWindowsDefaultLocation' => 2,
68
+    'fspWindowsDefaultBounds'   => 3,
69
+    'fspCenterParent' 			=> 4,
70
+
71
+    # Константы стиля оконтовки
72
+
73
+    'bsNone' 		=> 0,
74
+    'bsFixedSingle' => 1,
75
+    'bsFixed3D' 	=> 2,
76
+
77
+    # Константы выравнивания
78
+
79
+    'alTopLeft' 	 => 1,
80
+    'alTopCenter' 	 => 2,
81
+    'alTopRight' 	 => 4,
82
+    'alMiddleLeft' 	 => 16,
83
+    'alMiddleCenter' => 32,
84
+    'alMiddleRight'  => 64,
85
+    'alBottomLeft' 	 => 256,
86
+    'alBottomCenter' => 512,
87
+    'alBottomRight'  => 1024,
88
+
89
+    # Константы притягивания (Anchor)
90
+
91
+    'acNone'   => 0,
92
+    'acTop'	   => 1,
93
+    'acBottom' => 2,
94
+    'acLeft'   => 4,
95
+    'acRight'  => 8,
96
+
97
+    # Константы SizeMode-параметра PictureBox'а
98
+
99
+    'smNormal' 		 => 0,
100
+    'smStretchImage' => 1,
101
+    'smAutoSize' 	 => 2,
102
+    'smCenterImage'  => 3,
103
+    'smZoom' 		 => 4,
104
+
105
+    # Константы View-параметра ListView'а
106 106
 	
107
-	'vwLargeIcon' => 0,
108
-	'vwDetails'	  => 1,
109
-	'vwSmallIcon' => 2,
110
-	'vwList' 	  => 3,
111
-	'vwTile' 	  => 4,
107
+    'vwLargeIcon' => 0,
108
+    'vwDetails'	  => 1,
109
+    'vwSmallIcon' => 2,
110
+    'vwList' 	  => 3,
111
+    'vwTile' 	  => 4,
112 112
 
113
-	# Константы dropDownStyle компонента ComboBox
113
+    # Константы dropDownStyle компонента ComboBox
114 114
 
115
-	'ddSimple'		 => 0,
116
-	'ddDropDown' 	 => 1,
117
-	'ddDropDownList' => 2,
115
+    'ddSimple'		 => 0,
116
+    'ddDropDown' 	 => 1,
117
+    'ddDropDownList' => 2,
118 118
 
119
-	# Константы причины закрытия формы
119
+    # Константы причины закрытия формы
120 120
 	
121
-	'fcrNone'                => 0,
122
-	'fcrWindowsShutDown'     => 1,
123
-	'fcrMdiFormClosing'      => 2,
124
-	'fcrUserClosing'         => 3,
125
-	'fcrTaskManagerClosing'  => 4,
126
-	'fcrFormOwnerClosing'    => 5,
127
-	'fcrApplicationExitCall' => 6,
121
+    'fcrNone'                => 0,
122
+    'fcrWindowsShutDown'     => 1,
123
+    'fcrMdiFormClosing'      => 2,
124
+    'fcrUserClosing'         => 3,
125
+    'fcrTaskManagerClosing'  => 4,
126
+    'fcrFormOwnerClosing'    => 5,
127
+    'fcrApplicationExitCall' => 6,
128 128
 	
129
-	# Константы дока
129
+    # Константы дока
130 130
 	
131
-	'dsBottom' => 2,
132
-	'dsFill'   => 5,
133
-	'dsLeft'   => 3,
134
-	'dsNone'   => 0,
135
-	'dsRight'  => 4,
136
-	'dsTop'    => 1,
131
+    'dsBottom' => 2,
132
+    'dsFill'   => 5,
133
+    'dsLeft'   => 3,
134
+    'dsNone'   => 0,
135
+    'dsRight'  => 4,
136
+    'dsTop'    => 1,
137 137
 	
138
-	# Константы FCTB.Language
138
+    # Константы FCTB.Language
139 139
 	
140
-	'langCSharp' => 1,
141
-	'langCustom' => 2,
142
-	'langHTML' 	 => 3,
143
-	'langJS' 	 => 4,
144
-	'langLua'	 => 5,
145
-	'langPHP' 	 => 6,
146
-	'langSQL' 	 => 7,
147
-	'langVB' 	 => 8,
148
-	'langXML' 	 => 9,
140
+    'langCSharp' => 1,
141
+    'langCustom' => 2,
142
+    'langHTML' 	 => 3,
143
+    'langJS' 	 => 4,
144
+    'langLua'	 => 5,
145
+    'langPHP' 	 => 6,
146
+    'langSQL' 	 => 7,
147
+    'langVB' 	 => 8,
148
+    'langXML' 	 => 9,
149 149
 	
150
-	# Константы видимости окна процесса
150
+    # Константы видимости окна процесса
151 151
 	
152
-	'pwsHidden'    => 0,
153
-	'pwsMaximized' => 3,
154
-	'pwsMinimized' => 2,
155
-	'pwsNormal'    => 1,
152
+    'pwsHidden'    => 0,
153
+    'pwsMaximized' => 3,
154
+    'pwsMinimized' => 2,
155
+    'pwsNormal'    => 1,
156 156
 	
157
-	# Константы запуска
157
+    # Константы запуска
158 158
 	
159
-	'runNo'     => 0,
160
-	'runYes'    => 1,
161
-	'runThread' => 2,
159
+    'runNo'     => 0,
160
+    'runYes'    => 1,
161
+    'runThread' => 2,
162 162
 
163
-	# Константы стиля ProgressBar'а
163
+    # Константы стиля ProgressBar'а
164 164
 
165
-	'pbBlocks'	   => 0,
166
-	'pbContinuous' => 1,
167
-	'pbMarquee'    => 2,
165
+    'pbBlocks'	   => 0,
166
+    'pbContinuous' => 1,
167
+    'pbMarquee'    => 2,
168 168
 
169
-	# Константы свойства FlatStyle
169
+    # Константы свойства FlatStyle
170 170
 	
171
-	'flFlat'	 => 0,
172
-	'flPopup'	 => 1,
173
-	'flStandard' => 2,
174
-	'flSystem'   => 3,
171
+    'flFlat'	 => 0,
172
+    'flPopup'	 => 1,
173
+    'flStandard' => 2,
174
+    'flSystem'   => 3,
175 175
 
176
-	# Константы свойства DrawMode
176
+    # Константы свойства DrawMode
177 177
 
178
-	'dwNormal'			  => 0,
179
-	'dwOwnerDrawFixed'	  => 1,
180
-	'dwOwnerDrawVariable' => 2,
178
+    'dwNormal'			  => 0,
179
+    'dwOwnerDrawFixed'	  => 1,
180
+    'dwOwnerDrawVariable' => 2,
181 181
 
182
-	# Константы свойства SizeMode PictureBox'а
182
+    # Константы свойства SizeMode PictureBox'а
183 183
 
184
-	'smNormal' 		 => 0,
185
-	'smStretchImage' => 1,
186
-	'smAutoSize'	 => 2,
187
-	'smCenterImage'  => 3,
188
-	'smZoom'		 => 4,
184
+    'smNormal' 		 => 0,
185
+    'smStretchImage' => 1,
186
+    'smAutoSize'	 => 2,
187
+    'smCenterImage'  => 3,
188
+    'smZoom'		 => 4,
189 189
 
190
-	# Цветовые константы
190
+    # Цветовые константы
191 191
 	
192
-	'clAliceBlue'			 => 0xFFF0F8FF,
193
-	'clAntiqueWhite'		 => 0xFFFAEBD7,
194
-	'clAqua'				 => 0xFF00FFFF,
195
-	'clAquamarine'			 => 0xFF7FFFD4,
196
-	'clAzure'				 => 0xFFF0FFFF,
197
-	'clBeige'				 => 0xFFF5F5DC,
198
-	'clBisque'				 => 0xFFFFE4C4,
199
-	'clBlack'				 => 0xFF000000,
200
-	'clBlanchedAlmond'		 => 0xFFFFEBCD,
201
-	'clBlue'				 => 0xFF0000FF,
202
-	'clBlueViolet'			 => 0xFF8A2BE2,
203
-	'clBrown'				 => 0xFFA52A2A,
204
-	'clBurlyWood'			 => 0xFFDEB887,
205
-	'clCadetBlue' 			 => 0xFF5F9EA0,
206
-	'clChartreuse'			 => 0xFF7FFF00,
207
-	'clChocolate'			 => 0xFFD2691E,
208
-	'clCoral'				 => 0xFFFF7F50,
209
-	'clCornflowerBlue'		 => 0xFF6495ED,
210
-	'clCornsilk'			 => 0xFFFFF8DC,
211
-	'clCrimson'				 => 0xFFDC143C,
212
-	'clCyan'				 => 0xFF00FFFF,
213
-	'clDarkBlue'			 => 0xFF00008B,
214
-	'clDarkCyan'			 => 0xFF008B8B,
215
-	'clDarkGoldenrod'		 => 0xFFB8860B,
216
-	'clDarkGray'			 => 0xFFA9A9A9,
217
-	'clDarkGreen'			 => 0xFF006400,
218
-	'clDarkKhaki'			 => 0xFFBDB76B,
219
-	'clDarkMagenta'			 => 0xFF8B008B,
220
-	'clDarkOliveGreen'		 => 0xFF556B2F,
221
-	'clDarkOrange'			 => 0xFFFF8C00,
222
-	'clDarkOrchid'			 => 0xFF9932CC,
223
-	'clDarkRed'				 => 0xFF8B0000,
224
-	'clDarkSalmon'			 => 0xFFE9967A,
225
-	'clDarkSeaGreen'		 => 0xFF8FBC8F,
226
-	'clDarkSlateBlue'		 => 0xFF483D8B,
227
-	'clDarkSlateGray'		 => 0xFF2F4F4F,
228
-	'clDarkTurquoise'		 => 0xFF00CED1,
229
-	'clDarkViolet'			 => 0xFF9400D3,
230
-	'clDeepPink'			 => 0xFFFF1493,
231
-	'clDeepSkyBlue'			 => 0xFF00BFFF,
232
-	'clDimGray'				 => 0xFF696969,
233
-	'clDodgerBlue'			 => 0xFF1E90FF,
234
-	'clFirebrick'			 => 0xFFB22222,
235
-	'clFloralWhite'			 => 0xFFFFFAF0,
236
-	'clForestGreen'			 => 0xFF228B22,
237
-	'clFuchsia'				 => 0xFFFF00FF,
238
-	'clGainsboro'			 => 0xFFDCDCDC,
239
-	'clGhostWhite'			 => 0xFFF8F8FF,
240
-	'clGold'				 => 0xFFFFD700,
241
-	'clGoldenrod'			 => 0xFFDAA520,
242
-	'clGray'				 => 0xFF808080,
243
-	'clGreen'				 => 0xFF008000,
244
-	'clGreenYellow'			 => 0xFFADFF2F,
245
-	'clHoneydew'			 => 0xFFF0FFF0,
246
-	'clHotPink'				 => 0xFFFF69B4,
247
-	'clIndianRed'			 => 0xFFCD5C5C,
248
-	'clIndigo'				 => 0xFF4B0082,
249
-	'clIvory'				 => 0xFFFFFFF0,
250
-	'clKhaki'				 => 0xFFF0E68C,
251
-	'clLavender'			 => 0xFFE6E6FA,
252
-	'clLavenderBlush'		 => 0xFFFFF0F5,
253
-	'clLawnGreen'			 => 0xFF7CFC00,
254
-	'clLemonChiffon'		 => 0xFFFFFACD,
255
-	'clLightBlue'			 => 0xFFADD8E6,
256
-	'clLightCoral'			 => 0xFFF08080,
257
-	'clLightCyan'			 => 0xFFE0FFFF,
258
-	'clLightGoldenrodYellow' => 0xFFFAFAD2,
259
-	'clLightGray' 			 => 0xFFD3D3D3,
260
-	'clLightGreen'			 => 0xFF90EE90,
261
-	'clLightPink' 			 => 0xFFFFB6C1,
262
-	'clLightSalmon'			 => 0xFFFFA07A,
263
-	'clLightSeaGreen'		 => 0xFF20B2AA,
264
-	'clLightSkyBlue'		 => 0xFF87CEFA,
265
-	'clLightSlateGray'		 => 0xFF778899,
266
-	'clLightSteelBlue'		 => 0xFFB0C4DE,
267
-	'clLightYellow'			 => 0xFFFFFFE0,
268
-	'clLime'				 => 0xFF00FF00,
269
-	'clLimeGreen'			 => 0xFF32CD32,
270
-	'clLinen'				 => 0xFFFAF0E6,
271
-	'clMagenta'				 => 0xFFFF00FF,
272
-	'clMaroon'				 => 0xFF800000,
273
-	'clMediumAquamarine'	 => 0xFF66CDAA,
274
-	'clMediumBlue' 			 => 0xFF0000CD,
275
-	'clMediumOrchid'		 => 0xFFBA55D3,
276
-	'clMediumPurple'		 => 0xFF9370DB,
277
-	'clMediumSeaGreen'		 => 0xFF3CB371,
278
-	'clMediumSlateBlue'		 => 0xFF7B68EE,
279
-	'clMediumSpringGreen'	 => 0xFF00FA9A,
280
-	'clMediumTurquoise'		 => 0xFF48D1CC,
281
-	'clMediumVioletRed'		 => 0xFFC71585,
282
-	'clMidnightBlue'		 => 0xFF191970,
283
-	'clMintCream'			 => 0xFFF5FFFA,
284
-	'clMistyRose'			 => 0xFFFFE4E1,
285
-	'clMoccasin'			 => 0xFFFFE4B5,
286
-	'clNavajoWhite'			 => 0xFFFFDEAD,
287
-	'clNavy'				 => 0xFF000080,
288
-	'clOldLace'				 => 0xFFFDF5E6,
289
-	'clOlive'				 => 0xFF808000,
290
-	'clOliveDrab'			 => 0xFF6B8E23,
291
-	'clOrange'				 => 0xFFFFA500,
292
-	'clOrangeRed'			 => 0xFFFF4500,
293
-	'clOrchid'				 => 0xFFDA70D6,
294
-	'clPaleGoldenrod'		 => 0xFFEEE8AA,
295
-	'clPaleGreen'			 => 0xFF98FB98,
296
-	'clPaleTurquoise'		 => 0xFFAFEEEE,
297
-	'clPaleVioletRed'		 => 0xFFDB7093,
298
-	'clPapayaWhip'			 => 0xFFFFEFD5,
299
-	'clPeachPuff'			 => 0xFFFFDAB9,
300
-	'clPeru'				 => 0xFFCD853F,
301
-	'clPink'				 => 0xFFFFC0CB,
302
-	'clPlum'				 => 0xFFDDA0DD,
303
-	'clPowderBlue'			 => 0xFFB0E0E6,
304
-	'clPurple'				 => 0xFF800080,
305
-	'clRed'					 => 0xFFFF0000,
306
-	'clRosyBrown'			 => 0xFFBC8F8F,
307
-	'clRoyalBlue'			 => 0xFF4169E1,
308
-	'clSaddleBrown'			 => 0xFF8B4513,
309
-	'clSalmon'				 => 0xFFFA8072,
310
-	'clSandyBrown'			 => 0xFFF4A460,
311
-	'clSeaGreen'			 => 0xFF2E8B57,
312
-	'clSeaShell'			 => 0xFFFFF5EE,
313
-	'clSienna'				 => 0xFFA0522D,
314
-	'clSilver'				 => 0xFFC0C0C0,
315
-	'clSkyBlue'				 => 0xFF87CEEB,
316
-	'clSlateBlue'			 => 0xFF6A5ACD,
317
-	'clSlateGray'			 => 0xFF708090,
318
-	'clSnow'				 => 0xFFFFFAFA,
319
-	'clSpringGreen'			 => 0xFF00FF7F,
320
-	'clSteelBlue'			 => 0xFF4682B4,
321
-	'clTan'					 => 0xFFD2B48C,
322
-	'clTeal'				 => 0xFF008080,
323
-	'clThistle'				 => 0xFFD8BFD8,
324
-	'clTomato'				 => 0xFFFF6347,
325
-	'clTurquoise'			 => 0xFF40E0D0,
326
-	'clViolet'				 => 0xFFEE82EE,
327
-	'clWheat'				 => 0xFFF5DEB3,
328
-	'clWhite'				 => 0xFFFFFFFF,
329
-	'clWhiteSmoke'			 => 0xFFF5F5F5,
330
-	'clYellow'				 => 0xFFFFFF00,
331
-	'clYellowGreen'			 => 0xFF9ACD32,
332
-
333
-	# Моя подборка цветов
334
-
335
-	'clDark'	  => $converter->fromHtml ('#0D0F12'),
336
-	'clDark2'	  => $converter->fromHtml ('#121416'),
337
-	'clTurquoise' => $converter->fromHtml ('#00ADB5'),
338
-	'clLight'  	  => $converter->fromHtml ('#EEEEEE')
192
+    'clAliceBlue'			 => 0xFFF0F8FF,
193
+    'clAntiqueWhite'		 => 0xFFFAEBD7,
194
+    'clAqua'				 => 0xFF00FFFF,
195
+    'clAquamarine'			 => 0xFF7FFFD4,
196
+    'clAzure'				 => 0xFFF0FFFF,
197
+    'clBeige'				 => 0xFFF5F5DC,
198
+    'clBisque'				 => 0xFFFFE4C4,
199
+    'clBlack'				 => 0xFF000000,
200
+    'clBlanchedAlmond'		 => 0xFFFFEBCD,
201
+    'clBlue'				 => 0xFF0000FF,
202
+    'clBlueViolet'			 => 0xFF8A2BE2,
203
+    'clBrown'				 => 0xFFA52A2A,
204
+    'clBurlyWood'			 => 0xFFDEB887,
205
+    'clCadetBlue' 			 => 0xFF5F9EA0,
206
+    'clChartreuse'			 => 0xFF7FFF00,
207
+    'clChocolate'			 => 0xFFD2691E,
208
+    'clCoral'				 => 0xFFFF7F50,
209
+    'clCornflowerBlue'		 => 0xFF6495ED,
210
+    'clCornsilk'			 => 0xFFFFF8DC,
211
+    'clCrimson'				 => 0xFFDC143C,
212
+    'clCyan'				 => 0xFF00FFFF,
213
+    'clDarkBlue'			 => 0xFF00008B,
214
+    'clDarkCyan'			 => 0xFF008B8B,
215
+    'clDarkGoldenrod'		 => 0xFFB8860B,
216
+    'clDarkGray'			 => 0xFFA9A9A9,
217
+    'clDarkGreen'			 => 0xFF006400,
218
+    'clDarkKhaki'			 => 0xFFBDB76B,
219
+    'clDarkMagenta'			 => 0xFF8B008B,
220
+    'clDarkOliveGreen'		 => 0xFF556B2F,
221
+    'clDarkOrange'			 => 0xFFFF8C00,
222
+    'clDarkOrchid'			 => 0xFF9932CC,
223
+    'clDarkRed'				 => 0xFF8B0000,
224
+    'clDarkSalmon'			 => 0xFFE9967A,
225
+    'clDarkSeaGreen'		 => 0xFF8FBC8F,
226
+    'clDarkSlateBlue'		 => 0xFF483D8B,
227
+    'clDarkSlateGray'		 => 0xFF2F4F4F,
228
+    'clDarkTurquoise'		 => 0xFF00CED1,
229
+    'clDarkViolet'			 => 0xFF9400D3,
230
+    'clDeepPink'			 => 0xFFFF1493,
231
+    'clDeepSkyBlue'			 => 0xFF00BFFF,
232
+    'clDimGray'				 => 0xFF696969,
233
+    'clDodgerBlue'			 => 0xFF1E90FF,
234
+    'clFirebrick'			 => 0xFFB22222,
235
+    'clFloralWhite'			 => 0xFFFFFAF0,
236
+    'clForestGreen'			 => 0xFF228B22,
237
+    'clFuchsia'				 => 0xFFFF00FF,
238
+    'clGainsboro'			 => 0xFFDCDCDC,
239
+    'clGhostWhite'			 => 0xFFF8F8FF,
240
+    'clGold'				 => 0xFFFFD700,
241
+    'clGoldenrod'			 => 0xFFDAA520,
242
+    'clGray'				 => 0xFF808080,
243
+    'clGreen'				 => 0xFF008000,
244
+    'clGreenYellow'			 => 0xFFADFF2F,
245
+    'clHoneydew'			 => 0xFFF0FFF0,
246
+    'clHotPink'				 => 0xFFFF69B4,
247
+    'clIndianRed'			 => 0xFFCD5C5C,
248
+    'clIndigo'				 => 0xFF4B0082,
249
+    'clIvory'				 => 0xFFFFFFF0,
250
+    'clKhaki'				 => 0xFFF0E68C,
251
+    'clLavender'			 => 0xFFE6E6FA,
252
+    'clLavenderBlush'		 => 0xFFFFF0F5,
253
+    'clLawnGreen'			 => 0xFF7CFC00,
254
+    'clLemonChiffon'		 => 0xFFFFFACD,
255
+    'clLightBlue'			 => 0xFFADD8E6,
256
+    'clLightCoral'			 => 0xFFF08080,
257
+    'clLightCyan'			 => 0xFFE0FFFF,
258
+    'clLightGoldenrodYellow' => 0xFFFAFAD2,
259
+    'clLightGray' 			 => 0xFFD3D3D3,
260
+    'clLightGreen'			 => 0xFF90EE90,
261
+    'clLightPink' 			 => 0xFFFFB6C1,
262
+    'clLightSalmon'			 => 0xFFFFA07A,
263
+    'clLightSeaGreen'		 => 0xFF20B2AA,
264
+    'clLightSkyBlue'		 => 0xFF87CEFA,
265
+    'clLightSlateGray'		 => 0xFF778899,
266
+    'clLightSteelBlue'		 => 0xFFB0C4DE,
267
+    'clLightYellow'			 => 0xFFFFFFE0,
268
+    'clLime'				 => 0xFF00FF00,
269
+    'clLimeGreen'			 => 0xFF32CD32,
270
+    'clLinen'				 => 0xFFFAF0E6,
271
+    'clMagenta'				 => 0xFFFF00FF,
272
+    'clMaroon'				 => 0xFF800000,
273
+    'clMediumAquamarine'	 => 0xFF66CDAA,
274
+    'clMediumBlue' 			 => 0xFF0000CD,
275
+    'clMediumOrchid'		 => 0xFFBA55D3,
276
+    'clMediumPurple'		 => 0xFF9370DB,
277
+    'clMediumSeaGreen'		 => 0xFF3CB371,
278
+    'clMediumSlateBlue'		 => 0xFF7B68EE,
279
+    'clMediumSpringGreen'	 => 0xFF00FA9A,
280
+    'clMediumTurquoise'		 => 0xFF48D1CC,
281
+    'clMediumVioletRed'		 => 0xFFC71585,
282
+    'clMidnightBlue'		 => 0xFF191970,
283
+    'clMintCream'			 => 0xFFF5FFFA,
284
+    'clMistyRose'			 => 0xFFFFE4E1,
285
+    'clMoccasin'			 => 0xFFFFE4B5,
286
+    'clNavajoWhite'			 => 0xFFFFDEAD,
287
+    'clNavy'				 => 0xFF000080,
288
+    'clOldLace'				 => 0xFFFDF5E6,
289
+    'clOlive'				 => 0xFF808000,
290
+    'clOliveDrab'			 => 0xFF6B8E23,
291
+    'clOrange'				 => 0xFFFFA500,
292
+    'clOrangeRed'			 => 0xFFFF4500,
293
+    'clOrchid'				 => 0xFFDA70D6,
294
+    'clPaleGoldenrod'		 => 0xFFEEE8AA,
295
+    'clPaleGreen'			 => 0xFF98FB98,
296
+    'clPaleTurquoise'		 => 0xFFAFEEEE,
297
+    'clPaleVioletRed'		 => 0xFFDB7093,
298
+    'clPapayaWhip'			 => 0xFFFFEFD5,
299
+    'clPeachPuff'			 => 0xFFFFDAB9,
300
+    'clPeru'				 => 0xFFCD853F,
301
+    'clPink'				 => 0xFFFFC0CB,
302
+    'clPlum'				 => 0xFFDDA0DD,
303
+    'clPowderBlue'			 => 0xFFB0E0E6,
304
+    'clPurple'				 => 0xFF800080,
305
+    'clRed'					 => 0xFFFF0000,
306
+    'clRosyBrown'			 => 0xFFBC8F8F,
307
+    'clRoyalBlue'			 => 0xFF4169E1,
308
+    'clSaddleBrown'			 => 0xFF8B4513,
309
+    'clSalmon'				 => 0xFFFA8072,
310
+    'clSandyBrown'			 => 0xFFF4A460,
311
+    'clSeaGreen'			 => 0xFF2E8B57,
312
+    'clSeaShell'			 => 0xFFFFF5EE,
313
+    'clSienna'				 => 0xFFA0522D,
314
+    'clSilver'				 => 0xFFC0C0C0,
315
+    'clSkyBlue'				 => 0xFF87CEEB,
316
+    'clSlateBlue'			 => 0xFF6A5ACD,
317
+    'clSlateGray'			 => 0xFF708090,
318
+    'clSnow'				 => 0xFFFFFAFA,
319
+    'clSpringGreen'			 => 0xFF00FF7F,
320
+    'clSteelBlue'			 => 0xFF4682B4,
321
+    'clTan'					 => 0xFFD2B48C,
322
+    'clTeal'				 => 0xFF008080,
323
+    'clThistle'				 => 0xFFD8BFD8,
324
+    'clTomato'				 => 0xFFFF6347,
325
+    'clTurquoise'			 => 0xFF40E0D0,
326
+    'clViolet'				 => 0xFFEE82EE,
327
+    'clWheat'				 => 0xFFF5DEB3,
328
+    'clWhite'				 => 0xFFFFFFFF,
329
+    'clWhiteSmoke'			 => 0xFFF5F5F5,
330
+    'clYellow'				 => 0xFFFFFF00,
331
+    'clYellowGreen'			 => 0xFF9ACD32,
332
+
333
+    # Моя подборка цветов
334
+
335
+    'clDark'	  => $converter->fromHtml ('#0D0F12'),
336
+    'clDark2'	  => $converter->fromHtml ('#121416'),
337
+    'clTurquoise' => $converter->fromHtml ('#00ADB5'),
338
+    'clLight'  	  => $converter->fromHtml ('#EEEEEE')
339 339
 ];
340 340
 
341 341
 foreach ($constants as $name => $value)
342
-	define ($name, $value);
342
+    define ($name, $value);
343 343
 
344 344
 $argv = START_PARAMS;
345 345
 $argc = sizeof ($argv);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -338,8 +338,9 @@
 block discarded – undo
338 338
 	'clLight'  	  => $converter->fromHtml ('#EEEEEE')
339 339
 ];
340 340
 
341
-foreach ($constants as $name => $value)
341
+foreach ($constants as $name => $value) {
342 342
 	define ($name, $value);
343
+}
343 344
 
344 345
 $argv = START_PARAMS;
345 346
 $argc = sizeof ($argv);
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace VoidEngine;
4 4
 
5
-$env 	= new WFClass ('System.Environment', 'mscorlib');
6
-$params = $env->getCommandLineArgs ()->list;
5
+$env = new WFClass('System.Environment', 'mscorlib');
6
+$params = $env->getCommandLineArgs()->list;
7 7
 
8
-$converter = new WFClass ('System.Drawing.ColorTranslator');
8
+$converter = new WFClass('System.Drawing.ColorTranslator');
9 9
 
10 10
 $constants = [
11 11
 	# Информация об окружении
12 12
 	
13 13
 	'EXE_NAME'     => $APPLICATION->executablePath,
14
-	'DOC_ROOT'     => dirname ($APPLICATION->executablePath),
15
-	'IS_ADMIN'     => is_writable (getenv ('SystemRoot')),
14
+	'DOC_ROOT'     => dirname($APPLICATION->executablePath),
15
+	'IS_ADMIN'     => is_writable(getenv('SystemRoot')),
16 16
 	'START_PARAMS' => $params,
17 17
 	'USERNAME'	   => $env->username,
18 18
 
@@ -332,17 +332,17 @@  discard block
 block discarded – undo
332 332
 
333 333
 	# Моя подборка цветов
334 334
 
335
-	'clDark'	  => $converter->fromHtml ('#0D0F12'),
336
-	'clDark2'	  => $converter->fromHtml ('#121416'),
337
-	'clTurquoise' => $converter->fromHtml ('#00ADB5'),
338
-	'clLight'  	  => $converter->fromHtml ('#EEEEEE')
335
+	'clDark'	  => $converter->fromHtml('#0D0F12'),
336
+	'clDark2'	  => $converter->fromHtml('#121416'),
337
+	'clTurquoise' => $converter->fromHtml('#00ADB5'),
338
+	'clLight'  	  => $converter->fromHtml('#EEEEEE')
339 339
 ];
340 340
 
341 341
 foreach ($constants as $name => $value)
342
-	define ($name, $value);
342
+	define($name, $value);
343 343
 
344 344
 $argv = START_PARAMS;
345
-$argc = sizeof ($argv);
345
+$argc = sizeof($argv);
346 346
 
347
-\VoidCore::removeObjects ($converter->selector);
347
+\VoidCore::removeObjects($converter->selector);
348 348
 unset ($constants, $env, $params, $converter);
Please login to merge, or discard this patch.
bin/qero-packages/winforms-php/VoidFramework/engine/VoidEngine.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,8 @@
 block discarded – undo
104 104
 require 'components/FastColoredTextBox.php';
105 105
 require 'components/Scintilla.php';
106 106
 
107
-if (is_dir ('extensions'))
107
+if (is_dir ('extensions')) {
108 108
     foreach (scandir ('extensions') as $ext)
109 109
         if (is_dir ('extensions/'. $ext) && file_exists ($ext = 'extensions/'. $ext .'/main.php'))
110 110
             require $ext;
111
+}
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
 const ENGINE_VERSION = '3.5.8 build-2019/09/22';
37 37
 const ENGINE_DIR = __DIR__;
38 38
 
39
-chdir (ENGINE_DIR);
39
+chdir(ENGINE_DIR);
40 40
 
41 41
 $GLOBALS['__debug'] = [
42
-    'start_time'   => microtime (true),
42
+    'start_time'   => microtime(true),
43 43
     'error_status' => true
44 44
 ];
45 45
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 require 'common/Others.php';
50 50
 require 'common/Events.php';
51 51
 
52
-define ('VoidEngine\CORE_VERSION', $APPLICATION->productVersion);
52
+define('VoidEngine\CORE_VERSION', $APPLICATION->productVersion);
53 53
 
54 54
 require 'components/Component.php';
55 55
 require 'components/Control.php';
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 require 'components/FastColoredTextBox.php';
97 97
 require 'components/Scintilla.php';
98 98
 
99
-if (is_dir ('extensions'))
100
-    foreach (scandir ('extensions') as $ext)
101
-        if (is_dir ('extensions/'. $ext) && file_exists ($ext = 'extensions/'. $ext .'/main.php'))
99
+if (is_dir('extensions'))
100
+    foreach (scandir('extensions') as $ext)
101
+        if (is_dir('extensions/'.$ext) && file_exists($ext = 'extensions/'.$ext.'/main.php'))
102 102
             require $ext;
Please login to merge, or discard this patch.
bin/qero-packages/winforms-php/VoidFramework/engine/extensions/VLF/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     public string $name; // Имя объекта
43 43
     public int $link; // АСД-ссылка на объект
44 44
 
45
-    public function __construct (string $name, int $link)
45
+    public function __construct(string $name, int $link)
46 46
     {
47 47
         $this->name = $name;
48 48
         $this->link = $link;
Please login to merge, or discard this patch.
winforms-php/VoidFramework/engine/extensions/VLF/bin/importer.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 class VLFImporter
6 6
 {
7
-    static function import (string $vlf, PropertyGrid $propertyGrid, ListBox $eventsList, ComboBox $currentSelectedItem, TabControl $formsList, array $settings = array (
7
+    static function import(string $vlf, PropertyGrid $propertyGrid, ListBox $eventsList, ComboBox $currentSelectedItem, TabControl $formsList, array $settings = array(
8 8
         'strong_line_parser'            => false,
9 9
         'ignore_postobject_info'        => true,
10 10
         'ignore_unexpected_method_args' => true,
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
         'debug_mode'  => false
14 14
     )): array
15 15
     {
16
-        $objects   = VLFInterpreter::run (new VLFParser ($vlf, $settings));
16
+        $objects   = VLFInterpreter::run(new VLFParser($vlf, $settings));
17 17
         $designers = [];
18 18
 
19 19
         foreach ($objects as $name => $object)
20 20
             if ($object instanceof Form)
21 21
             {
22
-                $page = new TabPage ($name);
23
-                $designers[$object->selector] = new VoidDesigner ($page, $name, $propertyGrid, $eventsList, $currentSelectedItem, $formsList, $object);
22
+                $page = new TabPage($name);
23
+                $designers[$object->selector] = new VoidDesigner($page, $name, $propertyGrid, $eventsList, $currentSelectedItem, $formsList, $object);
24 24
 
25 25
                 $designers[$object->selector]->form->text = $object->text;
26 26
 
27
-                VoidStudioAPI::addObjects ('main', ['Designer__'. $name .'Designer' => $designers[$object->selector]]);
27
+                VoidStudioAPI::addObjects('main', ['Designer__'.$name.'Designer' => $designers[$object->selector]]);
28 28
 
29
-                $formsList->items->add ($page);
29
+                $formsList->items->add($page);
30 30
                 $formsList->selectedTab = $page->selector;
31 31
             }
32 32
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                         $parent = $parent->parent;
39 39
 
40 40
                     if (isset ($designers[$parent->selector]))
41
-                        $designers[$parent->selector]->addComponent ($object->selector, $name);
41
+                        $designers[$parent->selector]->addComponent($object->selector, $name);
42 42
                 }
43 43
 
44 44
                 catch (\Throwable $e) {}
Please login to merge, or discard this patch.
Braces   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -16,10 +16,11 @@  discard block
 block discarded – undo
16 16
         $objects   = VLFInterpreter::run (new VLFParser ($vlf, $settings));
17 17
         $designers = [];
18 18
 
19
-        foreach ($objects as $name => $object)
20
-            if ($object instanceof Form)
19
+        foreach ($objects as $name => $object) {
20
+                    if ($object instanceof Form)
21 21
             {
22 22
                 $page = new TabPage ($name);
23
+        }
23 24
                 $designers[$object->selector] = new VoidDesigner ($page, $name, $propertyGrid, $eventsList, $currentSelectedItem, $formsList, $object);
24 25
 
25 26
                 $designers[$object->selector]->form->text = $object->text;
@@ -28,20 +29,19 @@  discard block
 block discarded – undo
28 29
 
29 30
                 $formsList->items->add ($page);
30 31
                 $formsList->selectedTab = $page->selector;
31
-            }
32
-
33
-            elseif ($object instanceof Control)
34
-                try
32
+            } elseif ($object instanceof Control) {
33
+                            try
35 34
                 {
36 35
                     $parent = $object->parent;
37
-                    while (!isset ($designers[$parent->selector]) && $parent->parent)
38
-                        $parent = $parent->parent;
39
-
40
-                    if (isset ($designers[$parent->selector]))
41
-                        $designers[$parent->selector]->addComponent ($object->selector, $name);
42
-                }
43
-
44
-                catch (\Throwable $e) {}
36
+            }
37
+                    while (!isset ($designers[$parent->selector]) && $parent->parent) {
38
+                                            $parent = $parent->parent;
39
+                    }
40
+
41
+                    if (isset ($designers[$parent->selector])) {
42
+                                            $designers[$parent->selector]->addComponent ($object->selector, $name);
43
+                    }
44
+                } catch (\Throwable $e) {}
45 45
 
46 46
         return $designers;
47 47
     }
Please login to merge, or discard this patch.
winforms-php/VoidFramework/engine/extensions/VLF/bin/parser.php 2 patches
Braces   +106 added lines, -87 removed lines patch added patch discarded remove patch
@@ -25,18 +25,20 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function __construct (string $content, array $settings = [])
27 27
     {
28
-        if (file_exists ($content))
29
-            $content = file_get_contents ($content);
28
+        if (file_exists ($content)) {
29
+                    $content = file_get_contents ($content);
30
+        }
30 31
 
31 32
         // Зачем? Так надо!
32 33
         $content = "# VLF begin\n\n$content\n\n# VLF end";
33 34
 
34 35
         foreach ($settings as $name => $setting)
35 36
         {
36
-            if (isset ($this->$name))
37
-                $this->$name = $setting;
38
-
39
-            else throw new \Exception ('Trying to setting up undefined property "'. $name .'"');
37
+            if (isset ($this->$name)) {
38
+                            $this->$name = $setting;
39
+            } else {
40
+                throw new \Exception ('Trying to setting up undefined property "'. $name .'"');
41
+            }
40 42
         }
41 43
 
42 44
         if ($this->use_caching && file_exists ($file = VLF_EXT_DIR .'/cache/'. sha1 ($content) .'.cache'))
@@ -49,9 +51,9 @@  discard block
 block discarded – undo
49 51
                 $this->links = $info[1][1];
50 52
 
51 53
                 return;
54
+            } else {
55
+                unlink ($file);
52 56
             }
53
-
54
-            else unlink ($file);
55 57
         }
56 58
 
57 59
         $info = $this->generateSyntaxTree ($content);
@@ -61,8 +63,9 @@  discard block
 block discarded – undo
61 63
 
62 64
         if ($this->use_caching)
63 65
         {
64
-            if (!is_dir (dirname (__DIR__) .'/cache'))
65
-                mkdir (dirname (__DIR__) .'/cache');
66
+            if (!is_dir (dirname (__DIR__) .'/cache')) {
67
+                            mkdir (dirname (__DIR__) .'/cache');
68
+            }
66 69
 
67 70
             file_put_contents (VLF_EXT_DIR .'/cache/'. sha1 ($content) .'.cache', gzdeflate (serialize ([sha1 (file_get_contents (__FILE__)), $info])));
68 71
         }
@@ -85,19 +88,22 @@  discard block
 block discarded – undo
85 88
         $tree           = [];
86 89
         $links          = [];
87 90
 
88
-        if ($this->debug_mode)
89
-            pre ($lines);
91
+        if ($this->debug_mode) {
92
+                    pre ($lines);
93
+        }
90 94
 
91 95
         foreach ($lines as $id => $line)
92 96
         {
93
-            if ($skip_at > $id)
94
-                continue;
97
+            if ($skip_at > $id) {
98
+                            continue;
99
+            }
95 100
 
96 101
             $height = $this->getLineHeight ($line);
97 102
             $words  = $this->linesFilter (explode (' ', $line));
98 103
 
99
-            if ($this->debug_mode)
100
-                pre ($words);
104
+            if ($this->debug_mode) {
105
+                            pre ($words);
106
+            }
101 107
 
102 108
             /**
103 109
              * Высокоинтеллектуальный фикс
@@ -118,16 +124,18 @@  discard block
 block discarded – undo
118 124
             {
119 125
                 $updated = false;
120 126
 
121
-                if ($this->debug_mode)
122
-                    pre ($current_object);
127
+                if ($this->debug_mode) {
128
+                                    pre ($current_object);
129
+                }
123 130
 
124 131
                 while (isset ($tree[$current_object]['info']['subparent_link']) && $tree[$link = $tree[$current_object]['info']['subparent_link']->link]['hard'] < $tree[$current_object]['hard'])
125 132
                 {
126 133
                     $current_object = $link;
127 134
                     $updated        = true;
128 135
 
129
-                    if ($this->debug_mode)
130
-                        pre ($current_object);
136
+                    if ($this->debug_mode) {
137
+                                            pre ($current_object);
138
+                    }
131 139
                 }
132 140
 
133 141
                 if (
@@ -136,13 +144,15 @@  discard block
 block discarded – undo
136 144
                     isset ($tree[$current_object]['info']['arguments'][0]) &&
137 145
                     $tree[$current_object]['info']['arguments'][0] instanceof VLFLink &&
138 146
                     $tree[$tree[$current_object]['info']['arguments'][0]->link]['hard'] < $tree[$current_object]['hard']
139
-                ) $current_object = $tree[$current_object]['info']['arguments'][0]->link;
140
-
141
-                elseif (!$updated)
142
-                    break;
147
+                ) {
148
+                    $current_object = $tree[$current_object]['info']['arguments'][0]->link;
149
+                } elseif (!$updated) {
150
+                                    break;
151
+                }
143 152
 
144
-                if ($this->debug_mode)
145
-                    pre ($current_object);
153
+                if ($this->debug_mode) {
154
+                                    pre ($current_object);
155
+                }
146 156
             }
147 157
 
148 158
             /**
@@ -150,8 +160,9 @@  discard block
 block discarded – undo
150 160
              */
151 161
             if (class_exists ($words[0]) || class_exists ('\VoidEngine\\'. $words[0]))
152 162
             {
153
-                if (!isset ($words[1]))
154
-                    throw new \Exception ('Object name mustn\'t be empty at line "'. $line .'"');
163
+                if (!isset ($words[1])) {
164
+                                    throw new \Exception ('Object name mustn\'t be empty at line "'. $line .'"');
165
+                }
155 166
 
156 167
                 /**
157 168
                  * Button NewButton
@@ -179,9 +190,7 @@  discard block
 block discarded – undo
179 190
                     $current_object = $id;
180 191
 
181 192
                     continue;
182
-                }
183
-
184
-                else
193
+                } else
185 194
                 {
186 195
                     $tree[$id] = [
187 196
                         'type'  => VLF_OBJECT_DEFINITION,
@@ -203,10 +212,9 @@  discard block
 block discarded – undo
203 212
                         
204 213
                         $end = strrpos ($line, ')');
205 214
 
206
-                        if ($end === false)
207
-                            throw new \Exception ('Line "'. $line .'" have arguments list initialization, but not have list ending');
208
-
209
-                        elseif ($begin < $end)
215
+                        if ($end === false) {
216
+                                                    throw new \Exception ('Line "'. $line .'" have arguments list initialization, but not have list ending');
217
+                        } elseif ($begin < $end)
210 218
                         {
211 219
                             $arguments = [];
212 220
                             // $parsed    = explode (',', substr ($line, $begin, $end - $begin));
@@ -216,18 +224,20 @@  discard block
 block discarded – undo
216 224
                             {
217 225
                                 $argument = trim ($argument);
218 226
 
219
-                                if (strlen ($argument) > 0)
220
-                                    $arguments[] = isset ($links[$argument]) ?
227
+                                if (strlen ($argument) > 0) {
228
+                                                                    $arguments[] = isset ($links[$argument]) ?
221 229
                                         new VLFLink ($argument, $links[$argument]) :
222 230
                                         $argument;
223
-
224
-                                else throw new \Exception ('Argument '. ($argument_id + 1) .' mustn\'t have zero length at line "'. $line .'"');
231
+                                } else {
232
+                                    throw new \Exception ('Argument '. ($argument_id + 1) .' mustn\'t have zero length at line "'. $line .'"');
233
+                                }
225 234
                             }
226 235
 
227 236
                             $tree[$id]['info']['arguments'] = $arguments;
228 237
 
229
-                            if (!$this->ignore_postobject_info && trim (substr ($line, $end)) > 0)
230
-                                throw new \Exception ('You mustn\'t write any chars after arguments definition');
238
+                            if (!$this->ignore_postobject_info && trim (substr ($line, $end)) > 0) {
239
+                                                            throw new \Exception ('You mustn\'t write any chars after arguments definition');
240
+                            }
231 241
                         }
232 242
 
233 243
                         $tree[$id]['info']['subparent_link'] = new VLFLink ($tree[$current_object]['info']['object_name'], $current_object);
@@ -291,13 +301,14 @@  discard block
 block discarded – undo
291 301
 
292 302
                         $comment .= $parsed[0];
293 303
                         $skip_at  = $parsed[1];
304
+                    } else {
305
+                        throw new \Exception ('Unknown char founded after syntax-control symbol at line "'. $line .'"');
294 306
                     }
295
-
296
-                    else throw new \Exception ('Unknown char founded after syntax-control symbol at line "'. $line .'"');
297 307
                 }
298 308
                 
299
-                if ($this->debug_mode)
300
-                    pre ("Comment:\n\n$comment");
309
+                if ($this->debug_mode) {
310
+                                    pre ("Comment:\n\n$comment");
311
+                }
301 312
             }
302 313
 
303 314
             /**
@@ -319,9 +330,9 @@  discard block
 block discarded – undo
319 330
 
320 331
                         $code   .= $parsed[0];
321 332
                         $skip_at = $parsed[1];
333
+                    } else {
334
+                        throw new \Exception ('Unknown char founded after syntax-control symbol at line "'. $line .'"');
322 335
                     }
323
-
324
-                    else throw new \Exception ('Unknown char founded after syntax-control symbol at line "'. $line .'"');
325 336
                 }
326 337
                 
327 338
                 $tree[$id] = [
@@ -376,8 +387,9 @@  discard block
 block discarded – undo
376 387
 
377 388
                 if ($postChar == ':' || $postChar == '^')
378 389
                 {
379
-                    if (!isset ($words[1]))
380
-                        throw new \Exception ('Property value mustn\'t be empty at line "'. $line .'"');
390
+                    if (!isset ($words[1])) {
391
+                                            throw new \Exception ('Property value mustn\'t be empty at line "'. $line .'"');
392
+                    }
381 393
 
382 394
                     $propertyName     = substr ($words[0], 0, -1);
383 395
                     $propertyValue    = implode (' ', array_slice ($words, 1));
@@ -412,8 +424,9 @@  discard block
 block discarded – undo
412 424
                         'syntax_nodes' => []
413 425
                     ];
414 426
 
415
-                    if (isset ($links[$info['info']['property_value']]))
416
-                        $info['info']['property_value'] = new VLFLink ($info['info']['property_value'], $links[$info['info']['property_value']]);
427
+                    if (isset ($links[$info['info']['property_value']])) {
428
+                                            $info['info']['property_value'] = new VLFLink ($info['info']['property_value'], $links[$info['info']['property_value']]);
429
+                    }
417 430
 
418 431
                     $tree[$current_object]['syntax_nodes'][] = $info;
419 432
                 }
@@ -431,10 +444,9 @@  discard block
 block discarded – undo
431 444
                         
432 445
                         $end = strrpos ($line, ')');
433 446
 
434
-                        if ($end === false)
435
-                            throw new \Exception ('Line "'. $line .'" have arguments list initialization, but not have list ending');
436
-
437
-                        elseif ($begin < $end)
447
+                        if ($end === false) {
448
+                                                    throw new \Exception ('Line "'. $line .'" have arguments list initialization, but not have list ending');
449
+                        } elseif ($begin < $end)
438 450
                         {
439 451
                             // $parsed = explode (',', substr ($line, $begin, $end - $begin));
440 452
                             $parsed = $this->parseArguments (substr ($line, $begin, $end - $begin));
@@ -443,24 +455,27 @@  discard block
 block discarded – undo
443 455
                             {
444 456
                                 $argument = trim ($argument);
445 457
 
446
-                                if (strlen ($argument) > 0)
447
-                                    $arguments[] = isset ($links[$argument]) ?
458
+                                if (strlen ($argument) > 0) {
459
+                                                                    $arguments[] = isset ($links[$argument]) ?
448 460
                                         new VLFLink ($argument, $links[$argument]) :
449 461
                                         $argument;
450
-
451
-                                else throw new \Exception ('Argument '. ($argument_id + 1) .' mustn\'t have zero length at line "'. $line .'"');
462
+                                } else {
463
+                                    throw new \Exception ('Argument '. ($argument_id + 1) .' mustn\'t have zero length at line "'. $line .'"');
464
+                                }
452 465
                             }
453 466
 
454
-                            if (!$this->ignore_postobject_info && trim (substr ($line, $end)) > 0)
455
-                                throw new \Exception ('You mustn\'t write any chars after arguments definition');
467
+                            if (!$this->ignore_postobject_info && trim (substr ($line, $end)) > 0) {
468
+                                                            throw new \Exception ('You mustn\'t write any chars after arguments definition');
469
+                            }
456 470
                         }
457 471
                     }
458 472
 
459 473
                     /**
460 474
                      * ->show
461 475
                      */
462
-                    elseif (!$this->ignore_unexpected_method_args)
463
-                        throw new \Exception ('Unexpected method arguments list at line "'. $line .'"');
476
+                    elseif (!$this->ignore_unexpected_method_args) {
477
+                                            throw new \Exception ('Unexpected method arguments list at line "'. $line .'"');
478
+                    }
464 479
 
465 480
                     $tree[$current_object]['syntax_nodes'][] = [
466 481
                         'type'  => VLF_METHOD_CALL,
@@ -513,7 +528,9 @@  discard block
 block discarded – undo
513 528
             /**
514 529
              * Что-то загадочное, таинственное, неизвестное человечеству
515 530
              */
516
-            else throw new \Exception ('Unknown structures founded at line "'. $line .'"');
531
+            else {
532
+                throw new \Exception ('Unknown structures founded at line "'. $line .'"');
533
+            }
517 534
         }
518 535
 
519 536
         return [$tree, $links];
@@ -535,8 +552,9 @@  discard block
 block discarded – undo
535 552
 
536 553
         foreach ($lines as $line_id => $line)
537 554
         {
538
-            if ($line_id <= $begin_id)
539
-                continue;
555
+            if ($line_id <= $begin_id) {
556
+                            continue;
557
+            }
540 558
 
541 559
             if (!(bool)(trim ($line)))
542 560
             {
@@ -547,13 +565,15 @@  discard block
 block discarded – undo
547 565
 
548 566
             $height = $this->getLineHeight ($line);
549 567
 
550
-            if ($this->debug_mode)
551
-                pre ("$height, $down_height, $line");
552
-
553
-            if ($height > $down_height)
554
-                $parsed .= "$line\n";
568
+            if ($this->debug_mode) {
569
+                            pre ("$height, $down_height, $line");
570
+            }
555 571
 
556
-            else break;
572
+            if ($height > $down_height) {
573
+                            $parsed .= "$line\n";
574
+            } else {
575
+                break;
576
+            }
557 577
         }
558 578
 
559 579
         return [$parsed, $line_id];
@@ -577,8 +597,9 @@  discard block
 block discarded – undo
577 597
     {
578 598
         $i = 0;
579 599
 
580
-        while (isset ($line[$i]) && $line[$i] == "\t")
581
-            ++$i;
600
+        while (isset ($line[$i]) && $line[$i] == "\t") {
601
+                    ++$i;
602
+        }
582 603
         
583 604
         return strlen ($line = str_repeat ('    ', $i) . substr ($line, $i)) - strlen ($line = trim ($line));
584 605
     }
@@ -595,8 +616,9 @@  discard block
 block discarded – undo
595 616
     {
596 617
         return array_filter ($segments, function ($text)
597 618
         {
598
-            if ($this->strong_line_parser && preg_match ('/[^a-z0-9]/i', $text))
599
-                throw new \Exception  ('Line "'. $text .'" mustn\'t have any not-alphabet or not-numeric characters');
619
+            if ($this->strong_line_parser && preg_match ('/[^a-z0-9]/i', $text)) {
620
+                            throw new \Exception  ('Line "'. $text .'" mustn\'t have any not-alphabet or not-numeric characters');
621
+            }
600 622
             
601 623
             return strlen (trim ($text)) > 0;
602 624
         });
@@ -617,18 +639,15 @@  discard block
 block discarded – undo
617 639
         {
618 640
             $t .= $arguments[$i];
619 641
 
620
-            if ($arguments[$i] == '\\')
621
-                $canSplit = $i + 1;
622
-
623
-            elseif ($canSplit < $i)
642
+            if ($arguments[$i] == '\\') {
643
+                            $canSplit = $i + 1;
644
+            } elseif ($canSplit < $i)
624 645
             {
625
-                if ($arguments[$i] == '\'' && !$split2)
626
-                    $split1 = !$split1;
627
-
628
-                elseif ($arguments[$i] == '"' && !$split1)
629
-                    $split2 = !$split2;
630
-
631
-                elseif (!$split1 && !$split2 && $arguments[$i] == ',')
646
+                if ($arguments[$i] == '\'' && !$split2) {
647
+                                    $split1 = !$split1;
648
+                } elseif ($arguments[$i] == '"' && !$split1) {
649
+                                    $split2 = !$split2;
650
+                } elseif (!$split1 && !$split2 && $arguments[$i] == ',')
632 651
                 {
633 652
                     $args[] = substr ($t, 0, -1);
634 653
                     $t = '';
Please login to merge, or discard this patch.
Spacing   +81 added lines, -83 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
      * @param string $content - VLF разметка или путь до файла разметки
24 24
      * [@param array $settings = []] - список настроек и их значений (настройка => значение)
25 25
      */
26
-    public function __construct (string $content, array $settings = [])
26
+    public function __construct(string $content, array $settings = [])
27 27
     {
28
-        if (file_exists ($content))
29
-            $content = file_get_contents ($content);
28
+        if (file_exists($content))
29
+            $content = file_get_contents($content);
30 30
 
31 31
         // Зачем? Так надо!
32 32
         $content = "# VLF begin\n\n$content\n\n# VLF end";
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
             if (isset ($this->$name))
37 37
                 $this->$name = $setting;
38 38
 
39
-            else throw new \Exception ('Trying to setting up undefined property "'. $name .'"');
39
+            else throw new \Exception('Trying to setting up undefined property "'.$name.'"');
40 40
         }
41 41
 
42
-        if ($this->use_caching && file_exists ($file = VLF_EXT_DIR .'/cache/'. sha1 ($content) .'.cache'))
42
+        if ($this->use_caching && file_exists($file = VLF_EXT_DIR.'/cache/'.sha1($content).'.cache'))
43 43
         {
44
-            $info = unserialize (gzinflate (file_get_contents ($file)));
44
+            $info = unserialize(gzinflate(file_get_contents($file)));
45 45
 
46
-            if ($info[0] == sha1 (file_get_contents (__FILE__)))
46
+            if ($info[0] == sha1(file_get_contents(__FILE__)))
47 47
             {
48 48
                 $this->tree  = $info[1][0];
49 49
                 $this->links = $info[1][1];
@@ -51,20 +51,20 @@  discard block
 block discarded – undo
51 51
                 return;
52 52
             }
53 53
 
54
-            else unlink ($file);
54
+            else unlink($file);
55 55
         }
56 56
 
57
-        $info = $this->generateSyntaxTree ($content);
57
+        $info = $this->generateSyntaxTree($content);
58 58
 
59 59
         $this->tree  = $info[0];
60 60
         $this->links = $info[1];
61 61
 
62 62
         if ($this->use_caching)
63 63
         {
64
-            if (!is_dir (dirname (__DIR__) .'/cache'))
65
-                mkdir (dirname (__DIR__) .'/cache');
64
+            if (!is_dir(dirname(__DIR__).'/cache'))
65
+                mkdir(dirname(__DIR__).'/cache');
66 66
 
67
-            file_put_contents (VLF_EXT_DIR .'/cache/'. sha1 ($content) .'.cache', gzdeflate (serialize ([sha1 (file_get_contents (__FILE__)), $info])));
67
+            file_put_contents(VLF_EXT_DIR.'/cache/'.sha1($content).'.cache', gzdeflate(serialize([sha1(file_get_contents(__FILE__)), $info])));
68 68
         }
69 69
     }
70 70
 
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
      * 
77 77
      * @return array - возвращает АСД
78 78
      */
79
-    protected function generateSyntaxTree (string $content): array
79
+    protected function generateSyntaxTree(string $content): array
80 80
     {
81
-        $lines          = $this->linesFilter ($untouched_lines = explode ($this->divider, $content));
81
+        $lines          = $this->linesFilter($untouched_lines = explode($this->divider, $content));
82 82
         $current_object = null;
83 83
         $parent_objects = [];
84 84
         $skip_at        = -1;
@@ -86,18 +86,18 @@  discard block
 block discarded – undo
86 86
         $links          = [];
87 87
 
88 88
         if ($this->debug_mode)
89
-            pre ($lines);
89
+            pre($lines);
90 90
 
91 91
         foreach ($lines as $id => $line)
92 92
         {
93 93
             if ($skip_at > $id)
94 94
                 continue;
95 95
 
96
-            $height = $this->getLineHeight ($line);
97
-            $words  = $this->linesFilter (explode (' ', $line));
96
+            $height = $this->getLineHeight($line);
97
+            $words  = $this->linesFilter(explode(' ', $line));
98 98
 
99 99
             if ($this->debug_mode)
100
-                pre ($words);
100
+                pre($words);
101 101
 
102 102
             /**
103 103
              * Высокоинтеллектуальный фикс
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 $updated = false;
120 120
 
121 121
                 if ($this->debug_mode)
122
-                    pre ($current_object);
122
+                    pre($current_object);
123 123
 
124 124
                 while (isset ($tree[$current_object]['info']['subparent_link']) && $tree[$link = $tree[$current_object]['info']['subparent_link']->link]['hard'] < $tree[$current_object]['hard'])
125 125
                 {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                     $updated        = true;
128 128
 
129 129
                     if ($this->debug_mode)
130
-                        pre ($current_object);
130
+                        pre($current_object);
131 131
                 }
132 132
 
133 133
                 if (
@@ -142,16 +142,16 @@  discard block
 block discarded – undo
142 142
                     break;
143 143
 
144 144
                 if ($this->debug_mode)
145
-                    pre ($current_object);
145
+                    pre($current_object);
146 146
             }
147 147
 
148 148
             /**
149 149
              * Button ...
150 150
              */
151
-            if (class_exists ($words[0]) || class_exists ('\VoidEngine\\'. $words[0]))
151
+            if (class_exists($words[0]) || class_exists('\VoidEngine\\'.$words[0]))
152 152
             {
153 153
                 if (!isset ($words[1]))
154
-                    throw new \Exception ('Object name mustn\'t be empty at line "'. $line .'"');
154
+                    throw new \Exception('Object name mustn\'t be empty at line "'.$line.'"');
155 155
 
156 156
                 /**
157 157
                  * Button NewButton
@@ -197,40 +197,39 @@  discard block
 block discarded – undo
197 197
                         'syntax_nodes' => []
198 198
                     ];
199 199
 
200
-                    if (($begin = strpos ($line, '(')) !== false)
200
+                    if (($begin = strpos($line, '(')) !== false)
201 201
                     {
202 202
                         ++$begin;
203 203
                         
204
-                        $end = strrpos ($line, ')');
204
+                        $end = strrpos($line, ')');
205 205
 
206 206
                         if ($end === false)
207
-                            throw new \Exception ('Line "'. $line .'" have arguments list initialization, but not have list ending');
207
+                            throw new \Exception('Line "'.$line.'" have arguments list initialization, but not have list ending');
208 208
 
209 209
                         elseif ($begin < $end)
210 210
                         {
211 211
                             $arguments = [];
212 212
                             // $parsed    = explode (',', substr ($line, $begin, $end - $begin));
213
-                            $parsed    = $this->parseArguments (substr ($line, $begin, $end - $begin));
213
+                            $parsed    = $this->parseArguments(substr($line, $begin, $end - $begin));
214 214
 
215 215
                             foreach ($parsed as $argument_id => $argument)
216 216
                             {
217
-                                $argument = trim ($argument);
217
+                                $argument = trim($argument);
218 218
 
219
-                                if (strlen ($argument) > 0)
219
+                                if (strlen($argument) > 0)
220 220
                                     $arguments[] = isset ($links[$argument]) ?
221
-                                        new VLFLink ($argument, $links[$argument]) :
222
-                                        $argument;
221
+                                        new VLFLink($argument, $links[$argument]) : $argument;
223 222
 
224
-                                else throw new \Exception ('Argument '. ($argument_id + 1) .' mustn\'t have zero length at line "'. $line .'"');
223
+                                else throw new \Exception('Argument '.($argument_id + 1).' mustn\'t have zero length at line "'.$line.'"');
225 224
                             }
226 225
 
227 226
                             $tree[$id]['info']['arguments'] = $arguments;
228 227
 
229
-                            if (!$this->ignore_postobject_info && trim (substr ($line, $end)) > 0)
230
-                                throw new \Exception ('You mustn\'t write any chars after arguments definition');
228
+                            if (!$this->ignore_postobject_info && trim(substr($line, $end)) > 0)
229
+                                throw new \Exception('You mustn\'t write any chars after arguments definition');
231 230
                         }
232 231
 
233
-                        $tree[$id]['info']['subparent_link'] = new VLFLink ($tree[$current_object]['info']['object_name'], $current_object);
232
+                        $tree[$id]['info']['subparent_link'] = new VLFLink($tree[$current_object]['info']['object_name'], $current_object);
234 233
                     }
235 234
 
236 235
                     /**
@@ -240,7 +239,7 @@  discard block
 block discarded – undo
240 239
                     elseif ($current_object !== null && $tree[$current_object]['hard'] < $height)
241 240
                     {
242 241
                         $tree[$id]['info']['arguments'] = [
243
-                            new VLFLink ($tree[$current_object]['info']['object_name'], $current_object)
242
+                            new VLFLink($tree[$current_object]['info']['object_name'], $current_object)
244 243
                         ];
245 244
 
246 245
                         $parent_objects[$id] = $current_object;
@@ -287,17 +286,17 @@  discard block
 block discarded – undo
287 286
                 {
288 287
                     if ($words[0][1] == '^')
289 288
                     {
290
-                        $parsed = $this->parseSubText ($untouched_lines, $id, $height);
289
+                        $parsed = $this->parseSubText($untouched_lines, $id, $height);
291 290
 
292 291
                         $comment .= $parsed[0];
293 292
                         $skip_at  = $parsed[1];
294 293
                     }
295 294
 
296
-                    else throw new \Exception ('Unknown char founded after syntax-control symbol at line "'. $line .'"');
295
+                    else throw new \Exception('Unknown char founded after syntax-control symbol at line "'.$line.'"');
297 296
                 }
298 297
                 
299 298
                 if ($this->debug_mode)
300
-                    pre ("Comment:\n\n$comment");
299
+                    pre("Comment:\n\n$comment");
301 300
             }
302 301
 
303 302
             /**
@@ -309,19 +308,19 @@  discard block
 block discarded – undo
309 308
              */
310 309
             elseif ($words[0][0] == '%')
311 310
             {
312
-                $code = substr ($line, strlen ($words[0]));
311
+                $code = substr($line, strlen($words[0]));
313 312
 
314 313
                 if (isset ($words[0][1]))
315 314
                 {
316 315
                     if ($words[0][1] == '^')
317 316
                     {
318
-                        $parsed = $this->parseSubText ($untouched_lines, $id, $height);
317
+                        $parsed = $this->parseSubText($untouched_lines, $id, $height);
319 318
 
320 319
                         $code   .= $parsed[0];
321 320
                         $skip_at = $parsed[1];
322 321
                     }
323 322
 
324
-                    else throw new \Exception ('Unknown char founded after syntax-control symbol at line "'. $line .'"');
323
+                    else throw new \Exception('Unknown char founded after syntax-control symbol at line "'.$line.'"');
325 324
                 }
326 325
                 
327 326
                 $tree[$id] = [
@@ -346,7 +345,7 @@  discard block
 block discarded – undo
346 345
              * Form MyForm
347 346
              *     Button MyButton
348 347
              */
349
-            elseif (is_int ($current_object) && isset ($tree[$current_object]['hard']))
348
+            elseif (is_int($current_object) && isset ($tree[$current_object]['hard']))
350 349
             {
351 350
                 if ($height <= $tree[$current_object]['hard'] && isset ($parent_objects[$current_object]))
352 351
                 {
@@ -372,16 +371,16 @@  discard block
 block discarded – undo
372 371
                 /**
373 372
                  * property_name: property_value
374 373
                  */
375
-                $postChar = substr ($words[0], strlen ($words[0]) - 1);
374
+                $postChar = substr($words[0], strlen($words[0]) - 1);
376 375
 
377 376
                 if ($postChar == ':' || $postChar == '^')
378 377
                 {
379 378
                     if (!isset ($words[1]))
380
-                        throw new \Exception ('Property value mustn\'t be empty at line "'. $line .'"');
379
+                        throw new \Exception('Property value mustn\'t be empty at line "'.$line.'"');
381 380
 
382
-                    $propertyName     = substr ($words[0], 0, -1);
383
-                    $propertyValue    = implode (' ', array_slice ($words, 1));
384
-                    $propertyRawValue = ltrim (substr ($line, strlen ($words[0])));
381
+                    $propertyName     = substr($words[0], 0, -1);
382
+                    $propertyValue    = implode(' ', array_slice($words, 1));
383
+                    $propertyRawValue = ltrim(substr($line, strlen($words[0])));
385 384
 
386 385
                     /**
387 386
                      * property_name:^ property_value_1
@@ -389,10 +388,10 @@  discard block
 block discarded – undo
389 388
                      */
390 389
                     if ($postChar == '^')
391 390
                     {
392
-                        $parsed = $this->parseSubText ($untouched_lines, $id, $height);
391
+                        $parsed = $this->parseSubText($untouched_lines, $id, $height);
393 392
 
394 393
                         $skip_at           = $parsed[1];
395
-                        $propertyName      = substr ($propertyName, 0, -1);
394
+                        $propertyName      = substr($propertyName, 0, -1);
396 395
                         $propertyRawValue .= $parsed[0];
397 396
                         $propertyValue     = $propertyRawValue;
398 397
                     }
@@ -413,7 +412,7 @@  discard block
 block discarded – undo
413 412
                     ];
414 413
 
415 414
                     if (isset ($links[$info['info']['property_value']]))
416
-                        $info['info']['property_value'] = new VLFLink ($info['info']['property_value'], $links[$info['info']['property_value']]);
415
+                        $info['info']['property_value'] = new VLFLink($info['info']['property_value'], $links[$info['info']['property_value']]);
417 416
 
418 417
                     $tree[$current_object]['syntax_nodes'][] = $info;
419 418
                 }
@@ -421,38 +420,37 @@  discard block
 block discarded – undo
421 420
                 /**
422 421
                  * ->method_name ([method_arguments])
423 422
                  */
424
-                elseif (substr ($words[0], 0, 2) == '->')
423
+                elseif (substr($words[0], 0, 2) == '->')
425 424
                 {
426 425
                     $arguments = [];
427 426
                     
428
-                    if (($begin = strpos ($line, '(')) !== false)
427
+                    if (($begin = strpos($line, '(')) !== false)
429 428
                     {
430 429
                         ++$begin;
431 430
                         
432
-                        $end = strrpos ($line, ')');
431
+                        $end = strrpos($line, ')');
433 432
 
434 433
                         if ($end === false)
435
-                            throw new \Exception ('Line "'. $line .'" have arguments list initialization, but not have list ending');
434
+                            throw new \Exception('Line "'.$line.'" have arguments list initialization, but not have list ending');
436 435
 
437 436
                         elseif ($begin < $end)
438 437
                         {
439 438
                             // $parsed = explode (',', substr ($line, $begin, $end - $begin));
440
-                            $parsed = $this->parseArguments (substr ($line, $begin, $end - $begin));
439
+                            $parsed = $this->parseArguments(substr($line, $begin, $end - $begin));
441 440
 
442 441
                             foreach ($parsed as $argument_id => $argument)
443 442
                             {
444
-                                $argument = trim ($argument);
443
+                                $argument = trim($argument);
445 444
 
446
-                                if (strlen ($argument) > 0)
445
+                                if (strlen($argument) > 0)
447 446
                                     $arguments[] = isset ($links[$argument]) ?
448
-                                        new VLFLink ($argument, $links[$argument]) :
449
-                                        $argument;
447
+                                        new VLFLink($argument, $links[$argument]) : $argument;
450 448
 
451
-                                else throw new \Exception ('Argument '. ($argument_id + 1) .' mustn\'t have zero length at line "'. $line .'"');
449
+                                else throw new \Exception('Argument '.($argument_id + 1).' mustn\'t have zero length at line "'.$line.'"');
452 450
                             }
453 451
 
454
-                            if (!$this->ignore_postobject_info && trim (substr ($line, $end)) > 0)
455
-                                throw new \Exception ('You mustn\'t write any chars after arguments definition');
452
+                            if (!$this->ignore_postobject_info && trim(substr($line, $end)) > 0)
453
+                                throw new \Exception('You mustn\'t write any chars after arguments definition');
456 454
                         }
457 455
                     }
458 456
 
@@ -460,7 +458,7 @@  discard block
 block discarded – undo
460 458
                      * ->show
461 459
                      */
462 460
                     elseif (!$this->ignore_unexpected_method_args)
463
-                        throw new \Exception ('Unexpected method arguments list at line "'. $line .'"');
461
+                        throw new \Exception('Unexpected method arguments list at line "'.$line.'"');
464 462
 
465 463
                     $tree[$current_object]['syntax_nodes'][] = [
466 464
                         'type'  => VLF_METHOD_CALL,
@@ -469,7 +467,7 @@  discard block
 block discarded – undo
469 467
                         'words' => $words,
470 468
 
471 469
                         'info' => [
472
-                            'method_name'      => substr ($words[0], 2),
470
+                            'method_name'      => substr($words[0], 2),
473 471
                             'method_arguments' => $arguments
474 472
                         ],
475 473
 
@@ -492,7 +490,7 @@  discard block
 block discarded – undo
492 490
                  */
493 491
                 else
494 492
                 {
495
-                    $parsed  = $this->parseSubText ($untouched_lines, $id, $height);
493
+                    $parsed  = $this->parseSubText($untouched_lines, $id, $height);
496 494
                     $skip_at = $parsed[1];
497 495
                     
498 496
                     $tree[$id] = [
@@ -502,7 +500,7 @@  discard block
 block discarded – undo
502 500
                         'words' => $words,
503 501
 
504 502
                         'info' => [
505
-                            'object_vlf_info' => $line ."\n". $parsed[0]
503
+                            'object_vlf_info' => $line."\n".$parsed[0]
506 504
                         ],
507 505
 
508 506
                         'syntax_nodes' => []
@@ -513,7 +511,7 @@  discard block
 block discarded – undo
513 511
             /**
514 512
              * Что-то загадочное, таинственное, неизвестное человечеству
515 513
              */
516
-            else throw new \Exception ('Unknown structures founded at line "'. $line .'"');
514
+            else throw new \Exception('Unknown structures founded at line "'.$line.'"');
517 515
         }
518 516
 
519 517
         return [$tree, $links];
@@ -529,7 +527,7 @@  discard block
 block discarded – undo
529 527
      * 
530 528
      * @return array - возвращает спарсенные подстроки
531 529
      */
532
-    protected function parseSubText (array $lines, $begin_id, int $down_height): array
530
+    protected function parseSubText(array $lines, $begin_id, int $down_height): array
533 531
     {
534 532
         $parsed = "\n";
535 533
 
@@ -538,17 +536,17 @@  discard block
 block discarded – undo
538 536
             if ($line_id <= $begin_id)
539 537
                 continue;
540 538
 
541
-            if (!(bool)(trim ($line)))
539
+            if (!(bool) (trim($line)))
542 540
             {
543 541
                 $parsed .= "\n";
544 542
             
545 543
                 continue;
546 544
             }
547 545
 
548
-            $height = $this->getLineHeight ($line);
546
+            $height = $this->getLineHeight($line);
549 547
 
550 548
             if ($this->debug_mode)
551
-                pre ("$height, $down_height, $line");
549
+                pre("$height, $down_height, $line");
552 550
 
553 551
             if ($height > $down_height)
554 552
                 $parsed .= "$line\n";
@@ -559,7 +557,7 @@  discard block
 block discarded – undo
559 557
         return [$parsed, $line_id];
560 558
     }
561 559
 
562
-    public function __get ($name) // Возвращалка переменных парсера
560
+    public function __get($name) // Возвращалка переменных парсера
563 561
     {
564 562
         return isset ($this->$name) ?
565 563
             $this->$name : false;
@@ -573,14 +571,14 @@  discard block
 block discarded – undo
573 571
      * 
574 572
      * @return int - высота строки
575 573
      */
576
-    protected function getLineHeight (string &$line): int
574
+    protected function getLineHeight(string &$line): int
577 575
     {
578 576
         $i = 0;
579 577
 
580 578
         while (isset ($line[$i]) && $line[$i] == "\t")
581 579
             ++$i;
582 580
         
583
-        return strlen ($line = str_repeat ('    ', $i) . substr ($line, $i)) - strlen ($line = trim ($line));
581
+        return strlen($line = str_repeat('    ', $i).substr($line, $i)) - strlen($line = trim($line));
584 582
     }
585 583
 
586 584
     /**
@@ -591,18 +589,18 @@  discard block
 block discarded – undo
591 589
      * 
592 590
      * @return array - возвращает очищенный массив
593 591
      */
594
-    protected function linesFilter (array $segments): array
592
+    protected function linesFilter(array $segments): array
595 593
     {
596
-        return array_filter ($segments, function ($text)
594
+        return array_filter($segments, function($text)
597 595
         {
598
-            if ($this->strong_line_parser && preg_match ('/[^a-z0-9]/i', $text))
599
-                throw new \Exception  ('Line "'. $text .'" mustn\'t have any not-alphabet or not-numeric characters');
596
+            if ($this->strong_line_parser && preg_match('/[^a-z0-9]/i', $text))
597
+                throw new \Exception('Line "'.$text.'" mustn\'t have any not-alphabet or not-numeric characters');
600 598
             
601
-            return strlen (trim ($text)) > 0;
599
+            return strlen(trim($text)) > 0;
602 600
         });
603 601
     }
604 602
 
605
-    protected function parseArguments (string $arguments): array
603
+    protected function parseArguments(string $arguments): array
606 604
     {
607 605
         $args = [];
608 606
 
@@ -611,7 +609,7 @@  discard block
 block discarded – undo
611 609
 
612 610
         $t = '';
613 611
 
614
-        for ($i = 0, $len = strlen ($arguments); $i < $len; ++$i)
612
+        for ($i = 0, $len = strlen($arguments); $i < $len; ++$i)
615 613
         {
616 614
             $t .= $arguments[$i];
617 615
             
@@ -628,7 +626,7 @@  discard block
 block discarded – undo
628 626
 
629 627
                 elseif (!$split1 && !$split2 && $arguments[$i] == ',')
630 628
                 {
631
-                    $args[] = substr ($t, 0, -1);
629
+                    $args[] = substr($t, 0, -1);
632 630
                     $t = '';
633 631
                 }
634 632
             }
Please login to merge, or discard this patch.
qero-packages/winforms-php/VoidFramework/engine/extensions/WinAPI/main.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 {
30 30
     protected $WinAPI;
31 31
 
32
-    public function __construct ()
32
+    public function __construct()
33 33
     {
34 34
         /**
35 35
          * Большинство функций было взято из класса "WinAPI" проекта "DevelStudio XL"
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
          * 
41 41
          */
42 42
 
43
-        $this->WinAPI = \FFI::cdef ('
43
+        $this->WinAPI = \FFI::cdef('
44 44
             struct LPCTSTR
45 45
             {
46 46
                 char string;
@@ -76,25 +76,25 @@  discard block
 block discarded – undo
76 76
         ', 'User32.dll');
77 77
     }
78 78
 
79
-    public function __call ($method, $args)
79
+    public function __call($method, $args)
80 80
     {
81
-        if (method_exists ($this, $method))
82
-            return $this->$method (...$args);
81
+        if (method_exists($this, $method))
82
+            return $this->$method(...$args);
83 83
         
84 84
         else try
85 85
         {
86
-            return $this->WinAPI->$method (...$args);
86
+            return $this->WinAPI->$method(...$args);
87 87
         }
88 88
 
89 89
         catch (\Throwable $e)
90 90
         {
91
-            throw new \Exception ('Method "'. $method .'" not found or return an exception. Exception info: '. "\n\n". (string) $e);
91
+            throw new \Exception('Method "'.$method.'" not found or return an exception. Exception info: '."\n\n".(string) $e);
92 92
         }
93 93
     }
94 94
 
95
-    public function findWindow (string $caption, string $class = null): ?int
95
+    public function findWindow(string $caption, string $class = null): ?int
96 96
     {
97
-        return $this->FindWindowA ($class, $caption);
97
+        return $this->FindWindowA($class, $caption);
98 98
     }
99 99
 
100 100
     /*public function getWindowCaption (int $handle)
Please login to merge, or discard this patch.
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,15 +78,14 @@
 block discarded – undo
78 78
 
79 79
     public function __call ($method, $args)
80 80
     {
81
-        if (method_exists ($this, $method))
82
-            return $this->$method (...$args);
83
-        
84
-        else try
81
+        if (method_exists ($this, $method)) {
82
+                    return $this->$method (...$args);
83
+        } else {
84
+            try
85 85
         {
86 86
             return $this->WinAPI->$method (...$args);
87 87
         }
88
-
89
-        catch (\Throwable $e)
88
+        } catch (\Throwable $e)
90 89
         {
91 90
             throw new \Exception ('Method "'. $method .'" not found or return an exception. Exception info: '. "\n\n". (string) $e);
92 91
         }
Please login to merge, or discard this patch.
bin/qero-packages/winforms-php/VoidFramework/core/script.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@
 block discarded – undo
8 8
 chdir (CORE_DIR);
9 9
 
10 10
 foreach (glob ('ext/php_*.dll') as $ext)
11
-	if (!extension_loaded (substr (basename ($ext), 4, -4)))
12
-		load_extension ($ext);
11
+    if (!extension_loaded (substr (basename ($ext), 4, -4)))
12
+        load_extension ($ext);
13 13
 
14 14
 if (file_exists ('../engine/VoidEngine.php'))
15
-	require '../engine/VoidEngine.php';
15
+    require '../engine/VoidEngine.php';
16 16
 
17 17
 elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php'))
18
-	require FRAMEWORK_DIR .'/engine/VoidEngine.php';
18
+    require FRAMEWORK_DIR .'/engine/VoidEngine.php';
19 19
 
20 20
 else message ('VoidEngine not founded');
21 21
 
22 22
 $app = '../../app/start.php';
23 23
 
24 24
 if (file_exists ($app))
25
-	require $app;
25
+    require $app;
26 26
 
27 27
 else \VoidCore::callMethod (\VoidCore::createObject ('WinForms_PHP.DebugForm', null), 'ShowDialog');
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,26 +2,26 @@
 block discarded – undo
2 2
 
3 3
 namespace VoidEngine;
4 4
 
5
-define ('VoidEngine\FRAMEWORK_DIR', getenv ('AppData') .'\VoidFramework');
5
+define('VoidEngine\FRAMEWORK_DIR', getenv('AppData').'\VoidFramework');
6 6
 
7 7
 const CORE_DIR = __DIR__;
8
-chdir (CORE_DIR);
8
+chdir(CORE_DIR);
9 9
 
10
-foreach (glob ('ext/php_*.dll') as $ext)
11
-	if (!extension_loaded (substr (basename ($ext), 4, -4)))
12
-		load_extension ($ext);
10
+foreach (glob('ext/php_*.dll') as $ext)
11
+	if (!extension_loaded(substr(basename($ext), 4, -4)))
12
+		load_extension($ext);
13 13
 
14
-if (file_exists ('../engine/VoidEngine.php'))
14
+if (file_exists('../engine/VoidEngine.php'))
15 15
 	require '../engine/VoidEngine.php';
16 16
 
17
-elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php'))
18
-	require FRAMEWORK_DIR .'/engine/VoidEngine.php';
17
+elseif (file_exists(FRAMEWORK_DIR.'/engine/VoidEngine.php'))
18
+	require FRAMEWORK_DIR.'/engine/VoidEngine.php';
19 19
 
20
-else message ('VoidEngine not founded');
20
+else message('VoidEngine not founded');
21 21
 
22 22
 $app = '../../app/start.php';
23 23
 
24
-if (file_exists ($app))
24
+if (file_exists($app))
25 25
 	require $app;
26 26
 
27
-else \VoidCore::callMethod (\VoidCore::createObject ('WinForms_PHP.DebugForm', null), 'ShowDialog');
27
+else \VoidCore::callMethod(\VoidCore::createObject('WinForms_PHP.DebugForm', null), 'ShowDialog');
Please login to merge, or discard this patch.
Braces   +11 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,21 +7,23 @@
 block discarded – undo
7 7
 const CORE_DIR = __DIR__;
8 8
 chdir (CORE_DIR);
9 9
 
10
-foreach (glob ('ext/php_*.dll') as $ext)
10
+foreach (glob ('ext/php_*.dll') as $ext) {
11 11
 	if (!extension_loaded (substr (basename ($ext), 4, -4)))
12 12
 		load_extension ($ext);
13
+}
13 14
 
14
-if (file_exists ('../engine/VoidEngine.php'))
15
+if (file_exists ('../engine/VoidEngine.php')) {
15 16
 	require '../engine/VoidEngine.php';
16
-
17
-elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php'))
17
+} elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php')) {
18 18
 	require FRAMEWORK_DIR .'/engine/VoidEngine.php';
19
-
20
-else message ('VoidEngine not founded');
19
+} else {
20
+    message ('VoidEngine not founded');
21
+}
21 22
 
22 23
 $app = '../../app/start.php';
23 24
 
24
-if (file_exists ($app))
25
+if (file_exists ($app)) {
25 26
 	require $app;
26
-
27
-else \VoidCore::callMethod (\VoidCore::createObject ('WinForms_PHP.DebugForm', null), 'ShowDialog');
27
+} else {
28
+    \VoidCore::callMethod (\VoidCore::createObject ('WinForms_PHP.DebugForm', null), 'ShowDialog');
29
+}
Please login to merge, or discard this patch.
bin/app/VoidStudio API.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@
 block discarded – undo
51 51
 
52 52
 try
53 53
 {
54
-    if (strpos ((new WFObject ('System.Net.WebClient'))->downloadString ('https://raw.githubusercontent.com/winforms-php/VoidStudio/master/bin/app/system/blacklist.lst'), sha1 (shell_exec ('wmic csproduct'))) !== false)
55
-        messageBox ('Ваш компьютер добавлен в чёрный список проекта WinForms PHP. Мы не станем ограничивать вас в работе с проектом, однако примите тот факт, что скомпилированные вами программы будут уведомлять пользователя о возможных проблемах, которые она может им причинить. Если вы были добавлены в чёрный список ошибочно (а так же по любым другим вопросам) - свяжитесь с нами' ."\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Предупреждение', enum ('System.Windows.Forms.MessageBoxButtons.OK'), enum ('System.Windows.Forms.MessageBoxIcon.Warning'));
54
+    if (strpos((new WFObject('System.Net.WebClient'))->downloadString('https://raw.githubusercontent.com/winforms-php/VoidStudio/master/bin/app/system/blacklist.lst'), sha1(shell_exec('wmic csproduct'))) !== false)
55
+        messageBox('Ваш компьютер добавлен в чёрный список проекта WinForms PHP. Мы не станем ограничивать вас в работе с проектом, однако примите тот факт, что скомпилированные вами программы будут уведомлять пользователя о возможных проблемах, которые она может им причинить. Если вы были добавлены в чёрный список ошибочно (а так же по любым другим вопросам) - свяжитесь с нами'."\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Предупреждение', enum('System.Windows.Forms.MessageBoxButtons.OK'), enum('System.Windows.Forms.MessageBoxIcon.Warning'));
56 56
 }
57 57
 
58 58
 catch (\Throwable $e) {}
59 59
 
60
-if (date ('m/d') == '06/18')
61
-    messageBox ("Привет, друзья!\nСегодня знаменательный день: день рождения проекта WinForms PHP!\nС момента его появления прошло уже ". (date ('Y') - 2018) ." лет!\n\nВот такие дела. Принимаем поздравления, а так же поздравляем всех вас, дорогие друзья)\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Уведомление', enum ('System.Windows.Forms.MessageBoxButtons.OK'), enum ('System.Windows.Forms.MessageBoxIcon.Information'));
60
+if (date('m/d') == '06/18')
61
+    messageBox("Привет, друзья!\nСегодня знаменательный день: день рождения проекта WinForms PHP!\nС момента его появления прошло уже ".(date('Y') - 2018)." лет!\n\nВот такие дела. Принимаем поздравления, а так же поздравляем всех вас, дорогие друзья)\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Уведомление', enum('System.Windows.Forms.MessageBoxButtons.OK'), enum('System.Windows.Forms.MessageBoxIcon.Information'));
Please login to merge, or discard this patch.
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@
 block discarded – undo
51 51
 
52 52
 try
53 53
 {
54
-    if (strpos ((new WFObject ('System.Net.WebClient'))->downloadString ('https://raw.githubusercontent.com/winforms-php/VoidStudio/master/bin/app/system/blacklist.lst'), sha1 (shell_exec ('wmic csproduct'))) !== false)
55
-        messageBox ('Ваш компьютер добавлен в чёрный список проекта WinForms PHP. Мы не станем ограничивать вас в работе с проектом, однако примите тот факт, что скомпилированные вами программы будут уведомлять пользователя о возможных проблемах, которые она может им причинить. Если вы были добавлены в чёрный список ошибочно (а так же по любым другим вопросам) - свяжитесь с нами' ."\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Предупреждение', enum ('System.Windows.Forms.MessageBoxButtons.OK'), enum ('System.Windows.Forms.MessageBoxIcon.Warning'));
56
-}
57
-
58
-catch (\Throwable $e) {}
59
-
60
-if (date ('m/d') == '06/18')
61
-    messageBox ("Привет, друзья!\nСегодня знаменательный день: день рождения проекта WinForms PHP!\nС момента его появления прошло уже ". (date ('Y') - 2018) ." лет!\n\nВот такие дела. Принимаем поздравления, а так же поздравляем всех вас, дорогие друзья)\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Уведомление', enum ('System.Windows.Forms.MessageBoxButtons.OK'), enum ('System.Windows.Forms.MessageBoxIcon.Information'));
54
+    if (strpos ((new WFObject ('System.Net.WebClient'))->downloadString ('https://raw.githubusercontent.com/winforms-php/VoidStudio/master/bin/app/system/blacklist.lst'), sha1 (shell_exec ('wmic csproduct'))) !== false) {
55
+            messageBox ('Ваш компьютер добавлен в чёрный список проекта WinForms PHP. Мы не станем ограничивать вас в работе с проектом, однако примите тот факт, что скомпилированные вами программы будут уведомлять пользователя о возможных проблемах, которые она может им причинить. Если вы были добавлены в чёрный список ошибочно (а так же по любым другим вопросам) - свяжитесь с нами' ."\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Предупреждение', enum ('System.Windows.Forms.MessageBoxButtons.OK'), enum ('System.Windows.Forms.MessageBoxIcon.Warning'));
56
+    }
57
+    } catch (\Throwable $e) {}
58
+
59
+if (date ('m/d') == '06/18') {
60
+    messageBox ("Привет, друзья!\nСегодня знаменательный день: день рождения проекта WinForms PHP!\nС момента его появления прошло уже ". (date ('Y') - 2018) ." лет!\n\nВот такие дела. Принимаем поздравления, а так же поздравляем всех вас, дорогие друзья)\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Уведомление', enum ('System.Windows.Forms.MessageBoxButtons.OK'), enum ('System.Windows.Forms.MessageBoxIcon.Information'));
61
+}
Please login to merge, or discard this patch.
bin/app/start.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
 
10 10
 # Подгружаем PHP расширения
11 11
 foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext)
12
-	if (!extension_loaded (substr (basename ($ext), 4, -4)))
13
-		load_extension ($ext);
12
+    if (!extension_loaded (substr (basename ($ext), 4, -4)))
13
+        load_extension ($ext);
14 14
 
15 15
 # Подгружаем Qero-пакеты
16 16
 require __DIR__ .'/../qero-packages/autoload.php';
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@  discard block
 block discarded – undo
3 3
 namespace VoidEngine;
4 4
 
5 5
 # Объявление констант
6
-const APP_DIR  = __DIR__;
6
+const APP_DIR = __DIR__;
7 7
 
8
-define ('VoidEngine\CORE_DIR', dirname (__DIR__) .'/qero-packages/winforms-php/VoidFramework/core');
8
+define('VoidEngine\CORE_DIR', dirname(__DIR__).'/qero-packages/winforms-php/VoidFramework/core');
9 9
 
10 10
 # Подгружаем PHP расширения
11
-foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext)
12
-	if (!extension_loaded (substr (basename ($ext), 4, -4)))
13
-		load_extension ($ext);
11
+foreach (glob(CORE_DIR.'/ext/php_*.dll') as $ext)
12
+	if (!extension_loaded(substr(basename($ext), 4, -4)))
13
+		load_extension($ext);
14 14
 
15 15
 # Подгружаем Qero-пакеты
16
-require __DIR__ .'/../qero-packages/autoload.php';
16
+require __DIR__.'/../qero-packages/autoload.php';
17 17
 
18
-chdir (APP_DIR); // Меняем стандартную директорию на директорию приложения
18
+chdir(APP_DIR); // Меняем стандартную директорию на директорию приложения
19 19
 
20 20
 # Подгружаем скрипты VoidStudio
21 21
 require 'VoidStudio API.php';
@@ -28,4 +28,4 @@  discard block
 block discarded – undo
28 28
 require 'forms/diagnostic.php'; // Средство диагностики
29 29
 require 'forms/about.php'; // О программе
30 30
 
31
-$APPLICATION->run (VoidStudioAPI::getObjects ('main')['MainForm']);
31
+$APPLICATION->run(VoidStudioAPI::getObjects('main')['MainForm']);
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,9 +8,10 @@
 block discarded – undo
8 8
 define ('VoidEngine\CORE_DIR', dirname (__DIR__) .'/qero-packages/winforms-php/VoidFramework/core');
9 9
 
10 10
 # Подгружаем PHP расширения
11
-foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext)
11
+foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext) {
12 12
 	if (!extension_loaded (substr (basename ($ext), 4, -4)))
13
-		load_extension ($ext);
13
+		load_extension ($ext);
14
+}
14 15
 
15 16
 # Подгружаем Qero-пакеты
16 17
 require __DIR__ .'/../qero-packages/autoload.php';
Please login to merge, or discard this patch.