@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace phpDocumentor\Reflection\DocBlock; |
| 14 | 14 | |
| 15 | -use Mockery as m; |
|
| 16 | 15 | use phpDocumentor\Reflection\DocBlock; |
| 17 | 16 | |
| 18 | 17 | /** |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace My\Example; |
| 4 | 4 | |
| 5 | -use Mockery as m; |
|
| 6 | 5 | use phpDocumentor\Reflection\Types; |
| 7 | 6 | |
| 8 | 7 | class Classy |
@@ -2,6 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | // autoload.php @generated by Composer |
| 4 | 4 | |
| 5 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
| 5 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
| 6 | 6 | |
| 7 | 7 | return ComposerAutoloaderInitbd4ffaa7f635a9733a3203fa90210d4e::getLoader(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | else { |
| 70 | 70 | throw new InvalidArgumentException( |
| 71 | - 'Template file could not be loaded.' |
|
| 71 | + 'Template file could not be loaded.' |
|
| 72 | 72 | ); |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -120,14 +120,14 @@ discard block |
||
| 120 | 120 | $error = error_get_last(); |
| 121 | 121 | |
| 122 | 122 | throw new RuntimeException( |
| 123 | - sprintf( |
|
| 123 | + sprintf( |
|
| 124 | 124 | 'Could not write to %s: %s', |
| 125 | 125 | $target, |
| 126 | 126 | substr( |
| 127 | - $error['message'], |
|
| 128 | - strpos($error['message'], ':') + 2 |
|
| 127 | + $error['message'], |
|
| 128 | + strpos($error['message'], ':') + 2 |
|
| 129 | + ) |
|
| 129 | 130 | ) |
| 130 | - ) |
|
| 131 | 131 | ); |
| 132 | 132 | } |
| 133 | 133 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function setFile($file) |
| 58 | 58 | { |
| 59 | - $distFile = $file . '.dist'; |
|
| 59 | + $distFile = $file.'.dist'; |
|
| 60 | 60 | |
| 61 | 61 | if (file_exists($file)) { |
| 62 | 62 | $this->template = file_get_contents($file); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $keys = array(); |
| 99 | 99 | |
| 100 | 100 | foreach ($this->values as $key => $value) { |
| 101 | - $keys[] = $this->openDelimiter . $key . $this->closeDelimiter; |
|
| 101 | + $keys[] = $this->openDelimiter.$key.$this->closeDelimiter; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | return str_replace($keys, $this->values, $this->template); |
@@ -60,13 +60,9 @@ |
||
| 60 | 60 | |
| 61 | 61 | if (file_exists($file)) { |
| 62 | 62 | $this->template = file_get_contents($file); |
| 63 | - } |
|
| 64 | - |
|
| 65 | - else if (file_exists($distFile)) { |
|
| 63 | + } else if (file_exists($distFile)) { |
|
| 66 | 64 | $this->template = file_get_contents($distFile); |
| 67 | - } |
|
| 68 | - |
|
| 69 | - else { |
|
| 65 | + } else { |
|
| 70 | 66 | throw new InvalidArgumentException( |
| 71 | 67 | 'Template file could not be loaded.' |
| 72 | 68 | ); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | return $this->copyArray($var); |
| 108 | 108 | } |
| 109 | 109 | // Scalar |
| 110 | - if (! is_object($var)) { |
|
| 110 | + if (!is_object($var)) { |
|
| 111 | 111 | return $var; |
| 112 | 112 | } |
| 113 | 113 | // Object |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | $filter->apply( |
| 190 | 190 | $object, |
| 191 | 191 | $property->getName(), |
| 192 | - function ($object) { |
|
| 192 | + function($object) { |
|
| 193 | 193 | return $this->recursiveCopy($object); |
| 194 | 194 | } |
| 195 | 195 | ); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | { |
| 217 | 217 | $matched = $this->first( |
| 218 | 218 | $filterRecords, |
| 219 | - function (array $record) use ($var) { |
|
| 219 | + function(array $record) use ($var) { |
|
| 220 | 220 | /* @var TypeMatcher $matcher */ |
| 221 | 221 | $matcher = $record['matcher']; |
| 222 | 222 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $oldCollection = $reflectionProperty->getValue($object); |
| 22 | 22 | |
| 23 | 23 | $newCollection = $oldCollection->map( |
| 24 | - function ($item) use ($objectCopier) { |
|
| 24 | + function($item) use ($objectCopier) { |
|
| 25 | 25 | return $objectCopier($item); |
| 26 | 26 | } |
| 27 | 27 | ); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -require_once(__DIR__ . '/../vendor/autoload.php'); |
|
| 2 | +require_once(__DIR__.'/../vendor/autoload.php'); |
|
| 3 | 3 | |
| 4 | 4 | use phpDocumentor\Reflection\DocBlockFactory; |
| 5 | 5 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require_once(__DIR__ . '/../../vendor/autoload.php'); |
|
| 3 | +require_once(__DIR__.'/../../vendor/autoload.php'); |
|
| 4 | 4 | |
| 5 | 5 | use phpDocumentor\Reflection\DocBlockFactory; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require_once(__DIR__ . '/../vendor/autoload.php'); |
|
| 3 | +require_once(__DIR__.'/../vendor/autoload.php'); |
|
| 4 | 4 | |
| 5 | 5 | use phpDocumentor\Reflection\DocBlock\Serializer; |
| 6 | 6 | use phpDocumentor\Reflection\DocBlockFactory; |