Skip to content

Commit

Permalink
declare strict_types
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Mar 2, 2018
1 parent e52d798 commit 9b9667c
Show file tree
Hide file tree
Showing 78 changed files with 322 additions and 40 deletions.
7 changes: 7 additions & 0 deletions demo/01-explicit-bind.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

require __DIR__ . '/bootstrap.php';
Expand Down
7 changes: 7 additions & 0 deletions demo/02-matcher-bind.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\Bind;
Expand Down
7 changes: 7 additions & 0 deletions demo/03-annotation-bind.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\Bind;
Expand Down
7 changes: 7 additions & 0 deletions demo/04-my-matcher.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\Bind;
Expand Down
7 changes: 7 additions & 0 deletions demo/05-cache.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

require __DIR__ . '/bootstrap.php';
Expand Down
6 changes: 6 additions & 0 deletions demo/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
use Doctrine\Common\Annotations\AnnotationRegistry;

/** @var $loader \Composer\Autoload\ClassLoader */
Expand Down
6 changes: 6 additions & 0 deletions demo/run.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
passthru('php ' . __DIR__ . '/01-explicit-bind.php');
passthru('php ' . __DIR__ . '/02-matcher-bind.php');
passthru('php ' . __DIR__ . '/03-annotation-bind.php');
Expand Down
7 changes: 7 additions & 0 deletions demo/src/AnnotationRealBillingService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

class AnnotationRealBillingService implements BillingService
Expand Down
7 changes: 7 additions & 0 deletions demo/src/BillingService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

interface BillingService
Expand Down
7 changes: 7 additions & 0 deletions demo/src/EmptyInterceptor.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\MethodInterceptor;
Expand Down
7 changes: 7 additions & 0 deletions demo/src/IsContainsMatcher.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\AbstractMatcher;
Expand Down
7 changes: 7 additions & 0 deletions demo/src/ManualAdvice.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

class ManualAdvice
Expand Down
7 changes: 7 additions & 0 deletions demo/src/RealBillingService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

class RealBillingService implements BillingService
Expand Down
7 changes: 7 additions & 0 deletions demo/src/Timer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\MethodInterceptor;
Expand Down
7 changes: 7 additions & 0 deletions demo/src/WeekendBlock.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

/**
Expand Down
7 changes: 7 additions & 0 deletions demo/src/WeekendBlocker.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\MethodInterceptor;
Expand Down
7 changes: 7 additions & 0 deletions demo/src/interceptorA.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\MethodInterceptor;
Expand Down
7 changes: 7 additions & 0 deletions demo/src/interceptorB.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop\Demo;

use Ray\Aop\MethodInterceptor;
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
7 changes: 7 additions & 0 deletions src/AbstractWeave.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\Aop;

abstract class AbstractWeave implements WeavedInterface
Expand Down
4 changes: 3 additions & 1 deletion src/Advice.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion src/AnnotatedMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/AbstractAssisted.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Arguments.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Bind.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
4 changes: 3 additions & 1 deletion src/BindInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion src/BuiltinMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CodeGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
4 changes: 3 additions & 1 deletion src/CodeGenInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CodeGenMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CodeGenVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
4 changes: 3 additions & 1 deletion src/CompilerInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
4 changes: 3 additions & 1 deletion src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
4 changes: 3 additions & 1 deletion src/Exception/InvalidAnnotationException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
4 changes: 3 additions & 1 deletion src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
4 changes: 3 additions & 1 deletion src/Exception/InvalidMatcherException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
/**
* This file is part of the Ray.Aop package
* This file is part of the Ray.Aop package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down
Loading

0 comments on commit 9b9667c

Please sign in to comment.