Skip to content

Commit

Permalink
style(*): remove direct access checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinsh committed Dec 23, 2018
1 parent a366fda commit fbf129e
Show file tree
Hide file tree
Showing 168 changed files with 1 addition and 334 deletions.
2 changes: 0 additions & 2 deletions application/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

// -- Environment setup --------------------------------------------------------
// Load the core Kohana class
require SYSPATH . 'classes/Kohana/Core' . EXT;
Expand Down
2 changes: 0 additions & 2 deletions application/classes/Controller/Welcome.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Welcome extends Controller
{
public function action_index()
Expand Down
2 changes: 0 additions & 2 deletions modules/auth/classes/Auth.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') OR die('No direct access allowed.');

abstract class Auth extends Kohana_Auth
{

Expand Down
2 changes: 0 additions & 2 deletions modules/auth/classes/Auth/File.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') OR die('No direct access allowed.');

class Auth_File extends Kohana_Auth_File
{

Expand Down
2 changes: 0 additions & 2 deletions modules/auth/classes/Kohana/Auth.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') OR die('No direct access allowed.');

/**
* User authorization library. Handles user login and logout, as well as secure
* password hashing.
Expand Down
2 changes: 0 additions & 2 deletions modules/auth/classes/Kohana/Auth/File.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') OR die('No direct access allowed.');

/**
* File Auth driver.
* [!!] this Auth driver does not support roles nor autologin.
Expand Down
2 changes: 0 additions & 2 deletions modules/auth/config/auth.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') OR die('No direct access allowed.');

return [
'driver' => 'File',
'hash_method' => 'sha256',
Expand Down
2 changes: 0 additions & 2 deletions modules/auth/config/userguide.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') OR die('No direct script access.');

return [
// Leave this alone
'modules' => [
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

abstract class Cache extends Kohana_Cache
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/Apc.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Cache_Apc extends Kohana_Cache_Apc
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/Apcu.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Cache_Apcu extends Kohana_Cache_Apcu
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/Arithmetic.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

interface Cache_Arithmetic extends Kohana_Cache_Arithmetic
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/Exception.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Cache_Exception extends Kohana_Cache_Exception
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/File.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Cache_File extends Kohana_Cache_File
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/GarbageCollect.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

interface Cache_GarbageCollect extends Kohana_Cache_GarbageCollect
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/Memcache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Cache_Memcache extends Kohana_Cache_Memcache
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/MemcacheTag.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Cache_MemcacheTag extends Kohana_Cache_MemcacheTag
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/Sqlite.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Cache_Sqlite extends Kohana_Cache_Sqlite
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/Tagging.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

interface Cache_Tagging extends Kohana_Cache_Tagging
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Cache/Wincache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class Cache_Wincache extends Kohana_Cache_Wincache
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/HTTP/Cache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

class HTTP_Cache extends Kohana_HTTP_Cache
{

Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* Kohana Cache provides a common interface to a variety of caching engines. Tags are
* supported where available natively to the cache system. Kohana Cache supports multiple
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/Apc.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* [Kohana Cache](api/Kohana_Cache) APC driver. Provides an opcode based
* driver for the Kohana Cache library.
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/Apcu.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* [Kohana Cache](api/Kohana_Cache) APCu data store driver for Kohana Cache
* library.
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/Arithmetic.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* Kohana Cache Arithmetic Interface, for basic cache integer based
* arithmetic, addition and subtraction
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/Exception.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* Kohana Cache Exception
*
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/File.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* [Kohana Cache](api/Kohana_Cache) File driver. Provides a file based
* driver for the Kohana Cache library. This is one of the slowest
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/GarbageCollect.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* Garbage Collection interface for caches that have no GC methods
* of their own, such as [Cache_File] and [Cache_Sqlite]. Memory based
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/Memcache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* [Kohana Cache](api/Kohana_Cache) Memcache driver,
*
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/MemcacheTag.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* See [Kohana_Cache_Memcache]
*
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/Sqlite.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* Kohana Cache Sqlite Driver
*
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/Tagging.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* Kohana Cache Tagging Interface
*
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/Cache/Wincache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* [Kohana Cache](api/Kohana_Cache) Wincache driver. Provides an opcode based
* driver for the Kohana Cache library.
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/classes/Kohana/HTTP/Cache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* HTTP Caching adaptor class that provides caching services to the
* [Request_Client] class, using HTTP cache control logic as defined in
Expand Down
1 change: 0 additions & 1 deletion modules/cache/config/cache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');
return [
// 'memcached' => [
// 'driver' => 'memcached',
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/config/userguide.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

return [
// Leave this alone
'modules' => [
Expand Down
2 changes: 0 additions & 2 deletions modules/cache/tests/cache/request/client/CacheTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run');

/**
* Unit tests for request client cache logic
*
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/ArrCallback.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/AutoLinkEmails.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/DateSpan.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/ExplodeLimit.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/GruberURL.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/LtrimDigits.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/MDDoBaseURL.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/MDDoImageURL.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/MDDoIncludeViews.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct script access.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/StripNullBytes.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/Transliterate.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/URLSite.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
2 changes: 0 additions & 2 deletions modules/codebench/classes/Bench/UserFuncArray.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
* @package Kohana/Codebench
* @category Tests
Expand Down
Loading

0 comments on commit fbf129e

Please sign in to comment.