Commit Graph

63 Commits

Author SHA1 Message Date
Michael Voříšek
d18406a8bd Fix binary operator spaces CS (#9330)
* align_single_space_minimal for assign

* assign operators grouping is not supported by PHP CS Fixer

* binary_operator_spaces = single_space

* fix anonymous function on single line

* align comments manually
2024-02-02 07:53:34 +01:00
Michael Voříšek
4ee79b9e84 fix "explicit_string_variable" (#9315) 2024-01-22 08:05:59 +01:00
Michael Voříšek
6a53a1d853 Fix CS (whitespace, visibility) (#9297)
* Fix "method_argument_space"

* Fix "control_structure_continuation_position"

* Fix "new_with_parentheses"

* Fix "blank_line_before_statement"

* Fix "visibility_required"

* Fix some "array_indentation"

* Fix some "array_indentation" - unify all "rcube::raise_error" calls

* rm useless eslint ignores and add rules counts

* sort eslint ignores

* fix eslint ignores grammar

* Revert "Fix "blank_line_before_statement""

* fix CS 3.46.0
2024-01-04 14:26:35 +01:00
Michael Voříšek
2643be3eaa Fix single quotes CS (#9283)
* Fix "single_quote"

* fix "escape_implicit_backslashes"

* fix typo from f363481c

* fix single quotes in JS

* fix some minor JS CS

* fix CS v3.45.0
2023-12-31 16:36:55 +01:00
Michael Voříšek
3e458fa5fd Refer native constants unambiguously (#9275)
* Fix "native_constant_invocation" CS

* "self_accessor" was fixed in 9269 PR

* "php_unit_strict" was fixed in 9268 PR
2023-12-23 17:02:19 +01:00
Michael Voříšek
28c778b7a0 Modernize more CS III (#9270)
* fix "single_trait_insert_per_statement"

* fix "empty_loop_condition"

* fix "backtick_to_shell_exec"

* fix "phpdoc_to_comment"

* fix "no_empty_statement"

* fix "heredoc_to_nowdoc"

* fix "class_reference_name_casing"

* fix "align_multiline_comment"

* fix "heredoc_indentation"

* fix "constant_case"

* fix "single_line_comment_style"

* fix "no_null_property_initialization"

* fix "standardize_increment"

* fix "no_unneeded_control_parentheses"

* fix missing NL after "<?php"

* fix php in *.sh files too

* fix trailing spaces from all text files

* fix "explicit_indirect_variable"

* Revert "fix "align_multiline_comment""

This reverts commit 42e584f8e3.

* fix "align_multiline_comment" properly

* Revert "fix trailing spaces from all text files" - diff files only

* Revert "Revert "fix trailing spaces from all text files" - diff files only"

This reverts commit 2101c2a3a3.

* rm useless "setup-php" config
2023-12-18 07:46:51 +01:00
Aleksander Machniak
57b161111f Fix bug where installto.sh/update.sh scripts were removing some essential options from the config file (#9051)
Plus small code improvements
2023-07-08 09:10:45 +02:00
Aleksander Machniak
cf2077c359 Don't print composer location when checking for it 2023-04-20 15:18:27 +02:00
Thomas B
dec93dc1b7 Update vendor dir from installto.sh if untouched (#8642) (#8840)
* installto.sh checks for a marker indicating that composer was not run/used.
* update.sh tries to find and run composer
2023-01-05 21:30:51 +01:00
Aleksander Machniak
cb1951048c Fix regression in create_config()
On update some bool options might got changed values to false,
if not specified in the config.inc.php file.
2022-11-13 14:11:52 +01:00
johndoh
0c863206f1 Replace Endroid QrCode with BaconQrCode (#8173) 2021-08-28 09:09:19 +02:00
Josh Soref
203f456620 Spelling (#8001) 2021-04-18 08:43:18 +02:00
Aleksander Machniak
4c49a3cb66 Use proper array key 2021-01-18 19:21:48 +01:00
Aleksander Machniak
b4b24f93df Fix some PHP8 warnings 2021-01-15 18:56:48 +01:00
Aleksander Machniak
61a5ade872 PHP8 fixes, short array syntax 2020-12-12 16:20:14 +01:00
Aleksander Machniak
294683b390 Fix so update.sh script warns about changed defaults (#7011) 2019-11-12 20:30:42 +01:00
Aleksander Machniak
c734f3e1ab Fix regexp for version input to accept rcX releases 2019-11-11 08:06:47 +01:00
Aleksander Machniak
c60a30c780 Use "NOTICE:" instead of "NOTE:" for consistency 2019-09-11 10:27:27 +02:00
Aleksander Machniak
037bc3c94f Fix code indentation 2019-06-15 09:30:11 +02:00
Aleksander Machniak
8e63309203 CS fixes, tabs to spaces 2019-06-15 08:56:35 +02:00
Aleksander Machniak
57c67db029 Remove year(s) from copyright headers + some cleanup 2019-04-16 10:42:45 +02:00
Thomas Bruederli
6c881745d6 Remove deprecated composer package 'endroid/qrcode' on update 2018-03-10 15:56:24 +01:00
Thomas Bruederli
0a68b93e73 Update the list of obsolete composer dependencies 2017-06-16 09:48:45 +02:00
Aleksander Machniak
d61d33a12a Fix handling of --delete argument in moduserprefs.sh script (#5296) 2016-06-01 20:15:22 +02:00
Thomas Bruederli
26c4006c87 Improve migration of the composer.json file when updating 2016-05-15 15:49:35 +02:00
Thomas Bruederli
a612c59a0f Fix composer.json update routine 2015-06-02 21:50:31 +02:00
Aleksander Machniak
e7620812b0 Installer: Remove system() function use (#1490139)
Move some functionality of scripts from bin/ into rcmail_utils class
2015-04-12 09:24:25 +02:00
Thomas Bruederli
9a3fe2aacd Complete the repositories section in composer.json during update 2015-02-07 19:21:19 +01:00
Thomas Bruederli
8d9945c4f6 Enable updating of composer.json dependencies 2014-12-18 16:18:35 +01:00
Thomas Bruederli
0c137f7dac Consider composer.json dependencies in installation and upgrading instructions and scripts 2014-11-09 15:36:57 +01:00
Aleksander Machniak
0ea079d604 dirname(__FILE__) -> __DIR__ 2014-10-13 14:41:55 +02:00
Aleksander Machniak
29c24e647c Get rid of DIRECTORY_SEPARATOR for consistency 2014-08-28 19:24:03 +02:00
Thomas Bruederli
eea11ecdde Move rcube_installer class to include/rcmail_installer in order to remain accessible by the update script even if the installer directory was removed 2014-04-21 16:39:19 +02:00
Aleksander Machniak
e8dd47fb94 Fixed typo in script output 2014-02-07 14:05:46 +01:00
Thomas Bruederli
f5007eca74 Invoke update scripts with php command directly (#1489322) 2014-01-29 12:27:12 +01:00
Thomas Bruederli
fd6b193c6e Fix codestyle and indentation; use new save function in update script 2013-07-17 21:38:00 +02:00
Thomas Bruederli
0703bfecd0 Merged configuration refactoring from 'dev_config' branch back into master (#1487311) 2013-07-10 22:49:12 +02:00
Thomas Bruederli
8f49e4a99c Check filetype detection in installer and update script (#1489193) 2013-07-04 23:56:26 +02:00
Thomas Bruederli
447fc6a657 Improve update.sh script; fix bad wording 2013-06-28 23:04:30 +02:00
Thomas Bruederli
9bacb2cd3f Prepare config migration:
- Show warning in installer and hints how to migrate
- Let update.sh create the new config file if legacy config is detected
- Provide a sample config file for manual configuration
- Define a list of options which always should be written to local config
2013-06-28 22:27:59 +02:00
Aleksander Machniak
461a30d771 Merge config files (#1487311).
Now we have defaults.inc.php and config.inc.php.
Renamed $rcmail_config to $config. Old naming and old files are supported
for backward compatibility.
2013-06-14 12:09:08 +02:00
Aleksander Machniak
63cf4fc823 If version is not provided assume RCMAIL_VERSION (#1488933) 2013-02-21 10:28:33 +01:00
Aleksander Machniak
e4a6ebc1d9 Fix typo 2013-01-28 11:11:19 +01:00
Aleksander Machniak
9e329c0a27 Renamed option updatedb.sh --label to --package 2013-01-16 12:24:05 +01:00
Aleksander Machniak
7e7431bdda Use updatedb.sh from update.sh + various fixes in updatedb.sh 2013-01-09 19:21:58 +01:00
Aleksander Machniak
a079269166 Fix version comparisons with -stable suffix (#1488876) 2012-12-20 08:53:48 +01:00
Aleksander Machniak
9290303e80 Move prompt_silent() and get_opt() to rcube_utils class 2012-11-20 10:37:13 +01:00
Aleksander Machniak
de56ea1909 Merge branch 'pdo'
Conflicts:
	CHANGELOG
2012-08-08 08:21:45 +02:00
Thomas Bruederli
471d559374 Update installto/update script to remove old default skins and copy all necessary files; repeat notice about missing config options after auto-update 2012-08-05 14:01:22 +02:00
Aleksander Machniak
91f2271fac Replace rcube_mdb2 with rcube_db 2012-06-19 12:00:07 +02:00