]> git.mxchange.org Git - friendica.git/commitdiff
Add a PHPStorm code style XML
authorPhilipp <admin@philipp.info>
Mon, 27 Feb 2023 19:53:19 +0000 (20:53 +0100)
committerPhilipp <admin@philipp.info>
Mon, 27 Feb 2023 19:53:19 +0000 (20:53 +0100)
mods/README.md
mods/phpstorm-code-style.xml [new file with mode: 0644]

index fe7a7fed57679f49e37f2fcc99519da49616c9e6..43389eb2c29e70c895c2b5c89e3e109de3690da3 100644 (file)
@@ -4,12 +4,12 @@ Friendica mods files
 ## `bookmarklet-share2friendica`
 
 Browser bookmarklet to share any page with your Friendica account.
-Please see `bookmarklet-share2friendica/README.md` for detailed instruction. 
+Please see `bookmarklet-share2friendica/README.md` for detailed instruction.
 
 ## `fpostit`
 
 Node-agnostic Friendica bookmarklet by Devlon Duthie.
-Unmaintained and unsupported. 
+Unmaintained and unsupported.
 
 ## `home.css` and `home.html`
 
@@ -30,7 +30,11 @@ Please check software documentation to know how modify these examples to make th
 ## `sample-systemd.timer` and `sample-systemd.service`
 
 Sample systemd unit files to start worker.php periodically.
-               
+
 Please place them in the correct location for your system, typically this is `/etc/systemd/system/friendicaworker.timer` and `/etc/systemd/system/friendicaworker.service`.
 Please report problems and improvements to `!helpers@forum.friendi.ca` and `@utzer@social.yl.ms` or open an issue in [the Github Friendica page](https://github.com/friendica/friendica/issues).
 This is for usage of systemd instead of cron to start the worker periodically, the solution is a work-in-progress and can surely be improved.
+
+## `phpstorm-code-style.xml`
+
+PHP Storm Code Style settings, used for this codebase
diff --git a/mods/phpstorm-code-style.xml b/mods/phpstorm-code-style.xml
new file mode 100644 (file)
index 0000000..0fb86cf
--- /dev/null
@@ -0,0 +1,34 @@
+<code_scheme name="Default" version="173">
+  <Markdown>
+    <option name="WRAP_TEXT_IF_LONG" value="false" />
+    <option name="WRAP_TEXT_INSIDE_BLOCKQUOTES" value="false" />
+  </Markdown>
+  <PHPCodeStyleSettings>
+    <option name="ALIGN_KEY_VALUE_PAIRS" value="true" />
+    <option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" />
+    <option name="ALIGN_PHPDOC_COMMENTS" value="true" />
+    <option name="ALIGN_ASSIGNMENTS" value="true" />
+    <option name="COMMA_AFTER_LAST_ARRAY_ELEMENT" value="true" />
+    <option name="PHPDOC_BLANK_LINE_BEFORE_TAGS" value="true" />
+    <option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" />
+    <option name="PHPDOC_WRAP_LONG_LINES" value="true" />
+    <option name="LOWER_CASE_BOOLEAN_CONST" value="true" />
+    <option name="LOWER_CASE_NULL_CONST" value="true" />
+    <option name="ELSE_IF_STYLE" value="SEPARATE" />
+    <option name="VARIABLE_NAMING_STYLE" value="CAMEL_CASE" />
+    <option name="ALIGN_CLASS_CONSTANTS" value="true" />
+    <option name="FORCE_SHORT_DECLARATION_ARRAY_STYLE" value="true" />
+  </PHPCodeStyleSettings>
+  <codeStyleSettings language="PHP">
+    <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
+    <option name="ALIGN_MULTILINE_CHAINED_METHODS" value="true" />
+    <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
+    <option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" />
+    <option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" />
+    <option name="METHOD_CALL_CHAIN_WRAP" value="1" />
+    <option name="ARRAY_INITIALIZER_WRAP" value="1" />
+    <indentOptions>
+      <option name="USE_TAB_CHARACTER" value="true" />
+    </indentOptions>
+  </codeStyleSettings>
+</code_scheme>
\ No newline at end of file