Dmitry Shin 11 years ago
parent
commit
99e7e6daac
4 changed files with 5 additions and 5 deletions
  1. 1 1
      README.md
  2. BIN
      bin/pwhoisd.phar
  3. 1 1
      src/config.php
  4. 3 3
      src/include/Application.php

+ 1 - 1
README.md

@@ -135,7 +135,7 @@ Any one of the allowed units. Not to be used in IP rules. The allowed units are:
 
 
         // Allow all connections from IP 127.0.0.1.
         // Allow all connections from IP 127.0.0.1.
         // It is owerride previous (bottom) 'deny' rule for this IP (limits do not works)
         // It is owerride previous (bottom) 'deny' rule for this IP (limits do not works)
-        ['allow', ['client_ip', '127.0.0.1'] ],
+        ['allow', ['client_ip', '127.0.0.1']],
 
 
         // Deny any client if rate more 50 requests per one minute.
         // Deny any client if rate more 50 requests per one minute.
         ['deny', 'limit_exceeded', ['requests', '>', '50/min']],
         ['deny', 'limit_exceeded', ['requests', '>', '50/min']],

BIN
bin/pwhoisd.phar


+ 1 - 1
src/config.php

@@ -86,7 +86,7 @@ return [
 
 
 			// Allow all connections from IP 127.0.0.1.
 			// Allow all connections from IP 127.0.0.1.
 			// It is owerride previous (bottom) 'deny' rule for this IP (limits do not works)
 			// It is owerride previous (bottom) 'deny' rule for this IP (limits do not works)
-			['allow', ['client_ip', '127.0.0.1'] ],
+			['allow', ['client_ip', '127.0.0.1']],
 
 
 			// Deny any client if rate more 50 requests per one minute.
 			// Deny any client if rate more 50 requests per one minute.
 			['deny', 'limit_exceeded', ['requests', '>', '50/min']],
 			['deny', 'limit_exceeded', ['requests', '>', '50/min']],

+ 3 - 3
src/include/Application.php

@@ -86,7 +86,7 @@ class Application extends Daemon {
 		set_time_limit(0);
 		set_time_limit(0);
 
 
 		$this->set_exception_handlers();
 		$this->set_exception_handlers();
-		$this->test_dependences();
+		$this->test_dependencies();
 		$this->assign_arguments();
 		$this->assign_arguments();
 
 
 		if (!self::$arguments['daemon'])
 		if (!self::$arguments['daemon'])
@@ -115,12 +115,12 @@ class Application extends Daemon {
 	}
 	}
 
 
 	/**
 	/**
-	 * Test application dependences.
+	 * Test application dependencies.
 	 *
 	 *
 	 * @throws  \RuntimeException  If require dependence
 	 * @throws  \RuntimeException  If require dependence
 	 * @return  void
 	 * @return  void
 	 */
 	 */
-	private function test_dependences()
+	private function test_dependencies()
 	{
 	{
 		version_compare(PHP_VERSION, '5.4', '<') and die('Requires PHP 5.4 or newer.');
 		version_compare(PHP_VERSION, '5.4', '<') and die('Requires PHP 5.4 or newer.');