@@ -58,6 +58,7 @@ |
||
| 58 | 58 | * @param string |
| 59 | 59 | * @param array |
| 60 | 60 | * @param string |
| 61 | + * @param string $name |
|
| 61 | 62 | * |
| 62 | 63 | * @since 1.1.0 |
| 63 | 64 | */ |
@@ -301,7 +301,7 @@ |
||
| 301 | 301 | * |
| 302 | 302 | * @author Felix Gilcher <[email protected]> |
| 303 | 303 | * @since 1.0.2 |
| 304 | - */ |
|
| 304 | + */ |
|
| 305 | 305 | protected function prepareTemplate(\Text_Template $template) |
| 306 | 306 | { |
| 307 | 307 | parent::prepareTemplate($template); |
@@ -269,16 +269,16 @@ |
||
| 269 | 269 | // FIXME: added by phpunit 4.x |
| 270 | 270 | if (class_exists('\PHPUnit_Util_Blacklist')) { |
| 271 | 271 | $blacklist = new \PHPUnit\Util\Blacklist; |
| 272 | - $isBlacklisted = function ($file) use ($testFile, $blacklist) { |
|
| 272 | + $isBlacklisted = function($file) use ($testFile, $blacklist) { |
|
| 273 | 273 | return $file === $testFile || $blacklist->isBlacklisted($file); |
| 274 | 274 | }; |
| 275 | 275 | } elseif (is_callable(array('\PHPUnit_Util_GlobalState', 'phpunitFiles'))) { |
| 276 | 276 | $blacklist = \PHPUnit_Util_GlobalState::phpunitFiles(); |
| 277 | - $isBlacklisted = function ($file) use ($testFile, $blacklist) { |
|
| 277 | + $isBlacklisted = function($file) use ($testFile, $blacklist) { |
|
| 278 | 278 | return $file === $testFile || isset($blacklist[$file]); |
| 279 | 279 | }; |
| 280 | 280 | } else { |
| 281 | - $isBlacklisted = function ($file) use ($testFile) { |
|
| 281 | + $isBlacklisted = function($file) use ($testFile) { |
|
| 282 | 282 | return $file === $testFile; |
| 283 | 283 | }; |
| 284 | 284 | } |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | /** |
| 319 | 319 | * Replace configuration directive identifiers in a string. |
| 320 | 320 | * |
| 321 | - * @param string $valute The value on which to run the replacement procedure. |
|
| 321 | + * @param string $value The value on which to run the replacement procedure. |
|
| 322 | 322 | * |
| 323 | 323 | * @return string The new value. |
| 324 | 324 | * |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | * @param int $denominator The denominator. |
| 350 | 350 | * @param int $remainder The remainder. |
| 351 | 351 | * |
| 352 | - * @return int The floored quotient. |
|
| 352 | + * @return double The floored quotient. |
|
| 353 | 353 | * |
| 354 | 354 | * @author Dominik del Bondio <[email protected]> |
| 355 | 355 | * @since 0.11.0 |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | $oldvalue = $value; |
| 332 | 332 | $value = preg_replace_callback( |
| 333 | 333 | '/\%([\w\.]+?)\%/', |
| 334 | - function ($matches) { |
|
| 334 | + function($matches) { |
|
| 335 | 335 | return Config::get($matches[1], '%' . $matches[1] . '%'); |
| 336 | 336 | }, |
| 337 | 337 | $value |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | throw new AgaviException('Toolkit::floorDivide works only for int denominators'); |
| 361 | 361 | } |
| 362 | 362 | $quotient = floor($numerator / $denominator); |
| 363 | - $remainder = (int) ($numerator - ($quotient * $denominator)); |
|
| 363 | + $remainder = (int)($numerator - ($quotient * $denominator)); |
|
| 364 | 364 | |
| 365 | 365 | return $quotient; |
| 366 | 366 | } |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | public static function stripNamespace($className) |
| 545 | 545 | { |
| 546 | 546 | if (false !== ($slashpos = strrpos($className, '\\'))) { |
| 547 | - $className = substr($className, (strrpos($className, '\\')+1)); |
|
| 547 | + $className = substr($className, (strrpos($className, '\\') + 1)); |
|
| 548 | 548 | } |
| 549 | 549 | return $className; |
| 550 | 550 | } |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | )); |
| 243 | 243 | // ensure that the execution order of the tests is always in deterministic |
| 244 | 244 | // order and doesn't depend on the filesystem order |
| 245 | - usort($files, function ($a, $b) { |
|
| 245 | + usort($files, function($a, $b) { |
|
| 246 | 246 | return strcmp($a->getPathName(), $b->getPathName()); |
| 247 | 247 | }); |
| 248 | 248 | |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | // bootstrap the framework for autoload, config handlers etc. |
| 332 | 332 | Agavi::bootstrap($environment); |
| 333 | 333 | |
| 334 | - ini_set('include_path', get_include_path().PATH_SEPARATOR.dirname(__DIR__)); |
|
| 334 | + ini_set('include_path', get_include_path() . PATH_SEPARATOR . dirname(__DIR__)); |
|
| 335 | 335 | |
| 336 | 336 | $GLOBALS['AGAVI_CONFIG'] = Config::toArray(); |
| 337 | 337 | } |