summaryrefslogtreecommitdiffstats
path: root/docs/plugins.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/plugins.rst')
-rw-r--r--docs/plugins.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/plugins.rst b/docs/plugins.rst
index c255c162c..a93ee7c1d 100644
--- a/docs/plugins.rst
+++ b/docs/plugins.rst
@@ -15,7 +15,7 @@ In addition to the basic structure you also want to make sure that the News app
use \OCA\AppFramework\Core\API;
- if(\OCP\App::isEnabled('news') && \OCP\App::isEnabled('appframework')){
+ if (\OCP\App::isEnabled('news') && \OCP\App::isEnabled('appframework')) {
// your code here
@@ -81,7 +81,7 @@ To add a simple script create the script in the :file:`my_news_plugin/js/script.
use \OCA\AppFramework\Core\API;
- if(\OCP\App::isEnabled('news') && \OCP\App::isEnabled('appframework')){
+ if (\OCP\App::isEnabled('news') && \OCP\App::isEnabled('appframework')) {
$api = new API('my_news_plugin');
$api->addScript('script.js'); // add a script from js/script.js