"BASEPATH check" consistency

As described in issue #2870

+ A change in the „How to create a library” example in the user_guide
diff --git a/application/config/autoload.php b/application/config/autoload.php
index 3bf999e..f3ae942 100644
--- a/application/config/autoload.php
+++ b/application/config/autoload.php
@@ -1,4 +1,4 @@
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+<?php
 /**
  * CodeIgniter
  *
@@ -24,6 +24,7 @@
  * @since		Version 1.0
  * @filesource
  */
+defined('BASEPATH') OR exit('No direct script access allowed');
 
 /*
 | -------------------------------------------------------------------