From efa6704c972ee39db364d1373454ecd2f25a3a60 Mon Sep 17 00:00:00 2001 From: malle-pietje Date: Thu, 7 Sep 2017 12:31:47 +0200 Subject: [PATCH] minor changes to examples and README for consistency --- README.md | 4 ++-- examples/ap_scanning_state.php | 2 +- examples/auth_guest_basic.php | 2 +- examples/auth_guest_with_note.php | 2 +- examples/create_voucher.php | 2 +- examples/extend_guest_auth.php | 2 +- examples/list_alarms.php | 2 +- examples/list_ap_connected_users.php | 2 +- examples/list_site_health.php | 2 +- examples/list_social_auth_details.php | 2 +- examples/toggle_led.php | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 12f4c35..7e8d3e6 100755 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ composer require art-of-wifi/unifi-api-client Finally, be sure to include the autoloader in your code: ```php -require_once 'vendor/autoload.php'; +require_once('vendor/autoload.php'); ``` ### Download the Release @@ -158,7 +158,7 @@ A basic example how to use the class: /** * load the class using the composer autoloader */ -require 'vendor/autoload.php'; +require_once('vendor/autoload.php'); /** * initialize the Unifi API connection class, log in to the controller and request the alarms collection diff --git a/examples/ap_scanning_state.php b/examples/ap_scanning_state.php index cd2f13b..f199ebe 100755 --- a/examples/ap_scanning_state.php +++ b/examples/ap_scanning_state.php @@ -9,7 +9,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present) diff --git a/examples/auth_guest_basic.php b/examples/auth_guest_basic.php index b66a232..3612984 100755 --- a/examples/auth_guest_basic.php +++ b/examples/auth_guest_basic.php @@ -9,7 +9,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present) diff --git a/examples/auth_guest_with_note.php b/examples/auth_guest_with_note.php index 0e3dc0a..0aa64a7 100755 --- a/examples/auth_guest_with_note.php +++ b/examples/auth_guest_with_note.php @@ -9,7 +9,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present) diff --git a/examples/create_voucher.php b/examples/create_voucher.php index fcfd076..b5d1a6e 100755 --- a/examples/create_voucher.php +++ b/examples/create_voucher.php @@ -9,7 +9,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present) diff --git a/examples/extend_guest_auth.php b/examples/extend_guest_auth.php index ef55ce7..d1fff47 100755 --- a/examples/extend_guest_auth.php +++ b/examples/extend_guest_auth.php @@ -9,7 +9,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present) diff --git a/examples/list_alarms.php b/examples/list_alarms.php index 3a2c748..4c82d50 100755 --- a/examples/list_alarms.php +++ b/examples/list_alarms.php @@ -9,7 +9,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present) diff --git a/examples/list_ap_connected_users.php b/examples/list_ap_connected_users.php index f6d509b..a07ebb7 100755 --- a/examples/list_ap_connected_users.php +++ b/examples/list_ap_connected_users.php @@ -10,7 +10,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc there if not already present) diff --git a/examples/list_site_health.php b/examples/list_site_health.php index 34f581d..4ea10dd 100755 --- a/examples/list_site_health.php +++ b/examples/list_site_health.php @@ -10,7 +10,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present) diff --git a/examples/list_social_auth_details.php b/examples/list_social_auth_details.php index 2070947..7557ae3 100755 --- a/examples/list_social_auth_details.php +++ b/examples/list_social_auth_details.php @@ -10,7 +10,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present) diff --git a/examples/toggle_led.php b/examples/toggle_led.php index c6c1e56..a43b816 100755 --- a/examples/toggle_led.php +++ b/examples/toggle_led.php @@ -10,7 +10,7 @@ /** * using the composer autoloader */ -require "vendor/autoload.php"; +require_once('vendor/autoload.php'); /** * include the config file (place your credentials etc. there if not already present)