Selaa lähdekoodia

Add license header and move @author to phpdoc

Pablo Belloc 14 vuotta sitten
vanhempi
commit
423cfebf94

+ 8 - 2
src/Monolog/Handler/SocketHandler/Exception/ConnectionException.php

@@ -1,6 +1,12 @@
 <?php
 <?php
-/**
- * @author Pablo de Leon Belloc <pablolb@gmail.com>
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
  */
  */
 
 
 namespace Monolog\Handler\SocketHandler\Exception;
 namespace Monolog\Handler\SocketHandler\Exception;

+ 8 - 3
src/Monolog/Handler/SocketHandler/Exception/WriteToSocketException.php

@@ -1,8 +1,13 @@
 <?php
 <?php
-/**
- * @author Pablo de Leon Belloc <pablolb@gmail.com>
- */
 
 
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
 
 
 namespace Monolog\Handler\SocketHandler\Exception;
 namespace Monolog\Handler\SocketHandler\Exception;
 
 

+ 8 - 3
src/Monolog/Handler/SocketHandler/MockSocket.php

@@ -1,8 +1,13 @@
 <?php
 <?php
-/**
- * @author Pablo de Leon Belloc <pablolb@gmail.com>
- */
 
 
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
 
 
 namespace Monolog\Handler\SocketHandler;
 namespace Monolog\Handler\SocketHandler;
 
 

+ 11 - 3
src/Monolog/Handler/SocketHandler/PersistentSocket.php

@@ -1,6 +1,12 @@
 <?php
 <?php
-/**
- * @author Pablo de Leon Belloc <pablolb@gmail.com>
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
  */
  */
 
 
 namespace Monolog\Handler\SocketHandler;
 namespace Monolog\Handler\SocketHandler;
@@ -11,10 +17,12 @@ use Monolog\Handler\SocketHandler\Exception\ConnectionException;
  * Same as Socket but uses pfsockopen() instead allowing the connection to be reused in other requests.
  * Same as Socket but uses pfsockopen() instead allowing the connection to be reused in other requests.
  * 
  * 
  * @see http://php.net/manual/en/function.pfsockopen.php
  * @see http://php.net/manual/en/function.pfsockopen.php
+ * @author Pablo de Leon Belloc <pablolb@gmail.com>
  */
  */
 class PersistentSocket extends Socket
 class PersistentSocket extends Socket
 {
 {
-    protected function createSocketResource() {
+    protected function createSocketResource()
+    {
         @$resource = pfsockopen($this->connectionString, -1, $errno, $errstr, $this->connectionTimeout);
         @$resource = pfsockopen($this->connectionString, -1, $errno, $errstr, $this->connectionTimeout);
         if (!$resource) {
         if (!$resource) {
             throw new ConnectionException("Failed connecting to $this->connectionString ($errno: $errstr)");
             throw new ConnectionException("Failed connecting to $this->connectionString ($errno: $errstr)");

+ 9 - 2
src/Monolog/Handler/SocketHandler/Socket.php

@@ -1,6 +1,12 @@
 <?php
 <?php
-/**
- * @author Pablo de Leon Belloc <pablolb@gmail.com>
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
  */
  */
 
 
 namespace Monolog\Handler\SocketHandler;
 namespace Monolog\Handler\SocketHandler;
@@ -13,6 +19,7 @@ use Monolog\Handler\SocketHandler\Exception\WriteToSocketException;
  * Timeout settings must be set before first write to have any effect.
  * Timeout settings must be set before first write to have any effect.
  * 
  * 
  * @see http://php.net/manual/en/function.fsockopen.php
  * @see http://php.net/manual/en/function.fsockopen.php
+ * @author Pablo de Leon Belloc <pablolb@gmail.com>
  */
  */
 class Socket
 class Socket
 {
 {

+ 10 - 0
tests/Monolog/Handler/SocketHandler/SocketTest.php

@@ -1,5 +1,15 @@
 <?php
 <?php
 
 
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+
 namespace Monolog\Handler\SocketHandler;
 namespace Monolog\Handler\SocketHandler;
 
 
 class SocketTest extends \PHPUnit_Framework_TestCase
 class SocketTest extends \PHPUnit_Framework_TestCase

+ 13 - 3
tests/Monolog/Handler/SocketHandlerTest.php

@@ -1,8 +1,13 @@
 <?php
 <?php
-/**
- * @author Pablo de Leon Belloc <pablolb@gmail.com>
- */
 
 
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
 
 
 namespace Monolog\Handler;
 namespace Monolog\Handler;
 
 
@@ -13,6 +18,11 @@ use Monolog\Handler\SocketHandler\PersistentSocket;
 use Monolog\TestCase;
 use Monolog\TestCase;
 use Monolog\Logger;
 use Monolog\Logger;
 
 
+
+
+/**
+ * @author Pablo de Leon Belloc <pablolb@gmail.com>
+ */
 class SocketHandlerTest extends TestCase
 class SocketHandlerTest extends TestCase
 {
 {
     public function testWrite()
     public function testWrite()