Skip to content

Commit

Permalink
code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos committed Dec 26, 2016
1 parent 7fdf91e commit a38071f
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .php_cs
Expand Up @@ -5,7 +5,7 @@ $finder = PhpCsFixer\Finder::create()
;

$header = <<<EOT
This file is part of the tmilos-value package.
This file is part of the tmilos/value package.
(c) Milos Tomic <tmilos@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/Tmilos/Value/AbstractEnum.php
@@ -1,7 +1,7 @@
<?php

/*
* This file is part of the tmilos-value package.
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/Tmilos/Value/AbstractValue.php
@@ -1,7 +1,7 @@
<?php

/*
* This file is part of the tmilos-value package.
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/Tmilos/Value/Enum.php
@@ -1,7 +1,7 @@
<?php

/*
* This file is part of the tmilos-value package.
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
Expand Down
11 changes: 10 additions & 1 deletion src/Tmilos/Value/Spec/FixedLengthRandomStringValue.php
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Tmilos\Value\Spec;

use Tmilos\Value\AbstractValue;
Expand All @@ -19,7 +28,7 @@ protected static function getRequiredLength()
*/
public static function generate()
{
return new static(bin2hex(random_bytes(static::getRequiredLength()/2)));
return new static(bin2hex(random_bytes(static::getRequiredLength() / 2)));
}

public static function isValid($value)
Expand Down
2 changes: 1 addition & 1 deletion src/Tmilos/Value/Spec/Gender.php
@@ -1,7 +1,7 @@
<?php

/*
* This file is part of the tmilos-value package.
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/Tmilos/Value/Spec/IntValue.php
@@ -1,7 +1,7 @@
<?php

/*
* This file is part of the tmilos-value package.
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
Expand Down
9 changes: 9 additions & 0 deletions src/Tmilos/Value/Spec/MaxLengthStringValue.php
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Tmilos\Value\Spec;

class MaxLengthStringValue extends NonEmptyTrimmedStringValue
Expand Down
9 changes: 9 additions & 0 deletions src/Tmilos/Value/Spec/NonEmptyTrimmedStringValue.php
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Tmilos\Value\Spec;

use Tmilos\Value\AbstractValue;
Expand Down
2 changes: 1 addition & 1 deletion src/Tmilos/Value/Value.php
@@ -1,7 +1,7 @@
<?php

/*
* This file is part of the tmilos-value package.
* This file is part of the tmilos/value package.
*
* (c) Milos Tomic <tmilos@gmail.com>
*
Expand Down

0 comments on commit a38071f

Please sign in to comment.