aboutsummaryrefslogtreecommitdiffstats
path: root/Exception
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-04 20:11:09 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-05 09:40:42 +0200
commit5b971e8745c6428d9bd7662e1ed2610681c1851e (patch)
tree914269afc3030c0384be6a3ca28345bfcd1d3372 /Exception
parent366ccd14d612fdc172e4ad5bae7bf24eb0d25caa (diff)
downloadCompiler-5b971e8745c6428d9bd7662e1ed2610681c1851e.zip
Compiler-5b971e8745c6428d9bd7662e1ed2610681c1851e.tar.gz
Compiler-5b971e8745c6428d9bd7662e1ed2610681c1851e.tar.bz2
Move to PSR-1 and PSR-2.
Diffstat (limited to 'Exception')
-rw-r--r--Exception/Exception.php10
-rw-r--r--Exception/FinalStateHasNotBeenReached.php10
-rw-r--r--Exception/IllegalToken.php22
-rw-r--r--Exception/Lexer.php10
-rw-r--r--Exception/Rule.php11
-rw-r--r--Exception/UnexpectedToken.php10
-rw-r--r--Exception/UnrecognizedToken.php22
7 files changed, 43 insertions, 52 deletions
diff --git a/Exception/Exception.php b/Exception/Exception.php
index c8f6ad6..112c81f 100644
--- a/Exception/Exception.php
+++ b/Exception/Exception.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -43,12 +43,12 @@ use Hoa\Core;
*
* Extending the \Hoa\Core\Exception class.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class Exception extends Core\Exception { }
+class Exception extends Core\Exception
+{
+}
/**
* Flex entity.
diff --git a/Exception/FinalStateHasNotBeenReached.php b/Exception/FinalStateHasNotBeenReached.php
index 9f04d25..95c9489 100644
--- a/Exception/FinalStateHasNotBeenReached.php
+++ b/Exception/FinalStateHasNotBeenReached.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,9 +41,9 @@ namespace Hoa\Compiler\Exception;
*
* Extending the \Hoa\Compiler\Exception class.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class FinalStateHasNotBeenReached extends Exception { }
+class FinalStateHasNotBeenReached extends Exception
+{
+}
diff --git a/Exception/IllegalToken.php b/Exception/IllegalToken.php
index f11f561..3438fe7 100644
--- a/Exception/IllegalToken.php
+++ b/Exception/IllegalToken.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,17 +41,15 @@ namespace Hoa\Compiler\Exception;
*
* Extending the \Hoa\Compiler\Exception class.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class IllegalToken extends Exception {
-
+class IllegalToken extends Exception
+{
/**
* Column.
*
- * @var \Hoa\Compiler\Exception\IllegalToken int
+ * @var int
*/
protected $column = 0;
@@ -60,7 +58,6 @@ class IllegalToken extends Exception {
/**
* Override line and add column support.
*
- * @access public
* @param string $message Formatted message.
* @param int $code Code (the ID).
* @param array $arg RaiseError string arguments.
@@ -68,8 +65,8 @@ class IllegalToken extends Exception {
* @param int $column Column.
* @return void
*/
- public function __construct ( $message, $code, $arg, $line, $column ) {
-
+ public function __construct($message, $code, $arg, $line, $column)
+ {
parent::__construct($message, $code, $arg);
$this->line = $line;
@@ -81,11 +78,10 @@ class IllegalToken extends Exception {
/**
* Get column.
*
- * @access public
* @return int
*/
- public function getColumn ( ) {
-
+ public function getColumn()
+ {
return $this->column;
}
}
diff --git a/Exception/Lexer.php b/Exception/Lexer.php
index 7c58498..e6a82b0 100644
--- a/Exception/Lexer.php
+++ b/Exception/Lexer.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,9 +41,9 @@ namespace Hoa\Compiler\Exception;
*
* Extending the \Hoa\Compiler\Exception class.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class Lexer extends Exception { }
+class Lexer extends Exception
+{
+}
diff --git a/Exception/Rule.php b/Exception/Rule.php
index 8110003..6a1b23f 100644
--- a/Exception/Rule.php
+++ b/Exception/Rule.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,10 +41,9 @@ namespace Hoa\Compiler\Exception;
*
* Extending the \Hoa\Compiler\Exception class.
*
- * @author Frédéric Dadeau <frederic.dadeau@femto-st.fr>
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Frédéric Dadeau, Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class Rule extends Exception { }
+class Rule extends Exception
+{
+}
diff --git a/Exception/UnexpectedToken.php b/Exception/UnexpectedToken.php
index 3b7cbd7..8f34078 100644
--- a/Exception/UnexpectedToken.php
+++ b/Exception/UnexpectedToken.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,9 +41,9 @@ namespace Hoa\Compiler\Exception;
*
* Extending the \Hoa\Compiler\Exception\UnrecognizedToken class.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class UnexpectedToken extends UnrecognizedToken { }
+class UnexpectedToken extends UnrecognizedToken
+{
+}
diff --git a/Exception/UnrecognizedToken.php b/Exception/UnrecognizedToken.php
index 6df410c..40aa9ec 100644
--- a/Exception/UnrecognizedToken.php
+++ b/Exception/UnrecognizedToken.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,17 +41,15 @@ namespace Hoa\Compiler\Exception;
*
* Extending the \Hoa\Compiler\Exception class.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class UnrecognizedToken extends Exception {
-
+class UnrecognizedToken extends Exception
+{
/**
* Column.
*
- * @var \Hoa\Compiler\Exception\UnrecognizedToken int
+ * @var int
*/
protected $column = 0;
@@ -60,7 +58,6 @@ class UnrecognizedToken extends Exception {
/**
* Override line and add column support.
*
- * @access public
* @param string $message Formatted message.
* @param int $code Code (the ID).
* @param array $arg RaiseError string arguments.
@@ -68,8 +65,8 @@ class UnrecognizedToken extends Exception {
* @param int $column Column.
* @return void
*/
- public function __construct ( $message, $code, $arg, $line, $column ) {
-
+ public function __construct($message, $code, $arg, $line, $column)
+ {
parent::__construct($message, $code, $arg);
$this->line = $line;
@@ -81,11 +78,10 @@ class UnrecognizedToken extends Exception {
/**
* Get column.
*
- * @access public
* @return int
*/
- public function getColumn ( ) {
-
+ public function getColumn()
+ {
return $this->column;
}
}