@@ -12,11 +12,11 @@ discard block |
||
| 12 | 12 | protected $original; |
| 13 | 13 | protected $translation = ''; |
| 14 | 14 | protected $plural; |
| 15 | - protected $pluralTranslation = []; |
|
| 16 | - protected $references = []; |
|
| 17 | - protected $comments = []; |
|
| 18 | - protected $extractedComments = []; |
|
| 19 | - protected $flags = []; |
|
| 15 | + protected $pluralTranslation = [ ]; |
|
| 16 | + protected $references = [ ]; |
|
| 17 | + protected $comments = [ ]; |
|
| 18 | + protected $extractedComments = [ ]; |
|
| 19 | + protected $flags = [ ]; |
|
| 20 | 20 | protected $disabled = false; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @return string |
| 29 | 29 | */ |
| 30 | - public static function generateId($context, $original) |
|
| 30 | + public static function generateId( $context, $original ) |
|
| 31 | 31 | { |
| 32 | 32 | return "{$context}\004{$original}"; |
| 33 | 33 | } |
@@ -42,9 +42,9 @@ discard block |
||
| 42 | 42 | * @param string $plural The original plural string |
| 43 | 43 | * @return static New Translation instance |
| 44 | 44 | */ |
| 45 | - public static function create($context, $original, $plural = '') |
|
| 45 | + public static function create( $context, $original, $plural = '' ) |
|
| 46 | 46 | { |
| 47 | - return new static($context, $original, $plural); |
|
| 47 | + return new static( $context, $original, $plural ); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -54,12 +54,12 @@ discard block |
||
| 54 | 54 | * @param string $original The original string |
| 55 | 55 | * @param string $plural The original plural string |
| 56 | 56 | */ |
| 57 | - public function __construct($context, $original, $plural = '') |
|
| 57 | + public function __construct( $context, $original, $plural = '' ) |
|
| 58 | 58 | { |
| 59 | - $this->context = (string) $context; |
|
| 60 | - $this->original = (string) $original; |
|
| 59 | + $this->context = (string)$context; |
|
| 60 | + $this->original = (string)$original; |
|
| 61 | 61 | |
| 62 | - $this->setPlural($plural); |
|
| 62 | + $this->setPlural( $plural ); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -70,16 +70,16 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @return Translation |
| 72 | 72 | */ |
| 73 | - public function getClone($context = null, $original = null) |
|
| 73 | + public function getClone( $context = null, $original = null ) |
|
| 74 | 74 | { |
| 75 | 75 | $new = clone $this; |
| 76 | 76 | |
| 77 | - if ($context !== null) { |
|
| 78 | - $new->context = (string) $context; |
|
| 77 | + if ( $context !== null ) { |
|
| 78 | + $new->context = (string)$context; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - if ($original !== null) { |
|
| 82 | - $new->original = (string) $original; |
|
| 81 | + if ( $original !== null ) { |
|
| 82 | + $new->original = (string)$original; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | return $new; |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * |
| 93 | 93 | * @param string $id |
| 94 | 94 | */ |
| 95 | - public function setId($id) |
|
| 95 | + public function setId( $id ) |
|
| 96 | 96 | { |
| 97 | 97 | $this->id = $id; |
| 98 | 98 | } |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function getId() |
| 107 | 107 | { |
| 108 | - if ($this->id === null) { |
|
| 109 | - return static::generateId($this->context, $this->original); |
|
| 108 | + if ( $this->id === null ) { |
|
| 109 | + return static::generateId( $this->context, $this->original ); |
|
| 110 | 110 | } |
| 111 | 111 | return $this->id; |
| 112 | 112 | } |
@@ -119,9 +119,9 @@ discard block |
||
| 119 | 119 | * |
| 120 | 120 | * @return bool |
| 121 | 121 | */ |
| 122 | - public function is($context, $original = '') |
|
| 122 | + public function is( $context, $original = '' ) |
|
| 123 | 123 | { |
| 124 | - return (($this->context === $context) && ($this->original === $original)) ? true : false; |
|
| 124 | + return ( ( $this->context === $context ) && ( $this->original === $original ) ) ? true : false; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -131,9 +131,9 @@ discard block |
||
| 131 | 131 | * |
| 132 | 132 | * @return self |
| 133 | 133 | */ |
| 134 | - public function setDisabled($disabled) |
|
| 134 | + public function setDisabled( $disabled ) |
|
| 135 | 135 | { |
| 136 | - $this->disabled = (bool) $disabled; |
|
| 136 | + $this->disabled = (bool)$disabled; |
|
| 137 | 137 | |
| 138 | 138 | return $this; |
| 139 | 139 | } |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | public function hasOriginal() |
| 167 | 167 | { |
| 168 | - return ($this->original !== '') ? true : false; |
|
| 168 | + return ( $this->original !== '' ) ? true : false; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
@@ -175,9 +175,9 @@ discard block |
||
| 175 | 175 | * |
| 176 | 176 | * @return self |
| 177 | 177 | */ |
| 178 | - public function setTranslation($translation) |
|
| 178 | + public function setTranslation( $translation ) |
|
| 179 | 179 | { |
| 180 | - $this->translation = (string) $translation; |
|
| 180 | + $this->translation = (string)$translation; |
|
| 181 | 181 | |
| 182 | 182 | return $this; |
| 183 | 183 | } |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | public function hasTranslation() |
| 201 | 201 | { |
| 202 | - return ($this->translation !== '') ? true : false; |
|
| 202 | + return ( $this->translation !== '' ) ? true : false; |
|
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | /** |
@@ -209,9 +209,9 @@ discard block |
||
| 209 | 209 | * |
| 210 | 210 | * @return self |
| 211 | 211 | */ |
| 212 | - public function setPlural($plural) |
|
| 212 | + public function setPlural( $plural ) |
|
| 213 | 213 | { |
| 214 | - $this->plural = (string) $plural; |
|
| 214 | + $this->plural = (string)$plural; |
|
| 215 | 215 | |
| 216 | 216 | return $this; |
| 217 | 217 | } |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | public function hasPlural() |
| 235 | 235 | { |
| 236 | - return ($this->plural !== '') ? true : false; |
|
| 236 | + return ( $this->plural !== '' ) ? true : false; |
|
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | /** |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * |
| 244 | 244 | * @return self |
| 245 | 245 | */ |
| 246 | - public function setPluralTranslations(array $plural) |
|
| 246 | + public function setPluralTranslations( array $plural ) |
|
| 247 | 247 | { |
| 248 | 248 | $this->pluralTranslation = $plural; |
| 249 | 249 | |
@@ -257,20 +257,20 @@ discard block |
||
| 257 | 257 | * |
| 258 | 258 | * @return array |
| 259 | 259 | */ |
| 260 | - public function getPluralTranslations($size = null) |
|
| 260 | + public function getPluralTranslations( $size = null ) |
|
| 261 | 261 | { |
| 262 | - if ($size === null) { |
|
| 262 | + if ( $size === null ) { |
|
| 263 | 263 | return $this->pluralTranslation; |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | - $current = count($this->pluralTranslation); |
|
| 266 | + $current = count( $this->pluralTranslation ); |
|
| 267 | 267 | |
| 268 | - if ($size > $current) { |
|
| 269 | - return $this->pluralTranslation + array_fill(0, $size, ''); |
|
| 268 | + if ( $size > $current ) { |
|
| 269 | + return $this->pluralTranslation + array_fill( 0, $size, '' ); |
|
| 270 | 270 | } |
| 271 | 271 | |
| 272 | - if ($size < $current) { |
|
| 273 | - return array_slice($this->pluralTranslation, 0, $size); |
|
| 272 | + if ( $size < $current ) { |
|
| 273 | + return array_slice( $this->pluralTranslation, 0, $size ); |
|
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | return $this->pluralTranslation; |
@@ -283,13 +283,13 @@ discard block |
||
| 283 | 283 | * |
| 284 | 284 | * @return bool |
| 285 | 285 | */ |
| 286 | - public function hasPluralTranslations($checkContent = false) |
|
| 286 | + public function hasPluralTranslations( $checkContent = false ) |
|
| 287 | 287 | { |
| 288 | - if ($checkContent) { |
|
| 289 | - return implode('', $this->pluralTranslation) !== ''; |
|
| 288 | + if ( $checkContent ) { |
|
| 289 | + return implode( '', $this->pluralTranslation ) !== ''; |
|
| 290 | 290 | } |
| 291 | 291 | |
| 292 | - return !empty($this->pluralTranslation); |
|
| 292 | + return ! empty( $this->pluralTranslation ); |
|
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /** |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | */ |
| 300 | 300 | public function deletePluralTranslation() |
| 301 | 301 | { |
| 302 | - $this->pluralTranslation = []; |
|
| 302 | + $this->pluralTranslation = [ ]; |
|
| 303 | 303 | |
| 304 | 304 | return $this; |
| 305 | 305 | } |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | */ |
| 322 | 322 | public function hasContext() |
| 323 | 323 | { |
| 324 | - return (isset($this->context) && ($this->context !== '')) ? true : false; |
|
| 324 | + return ( isset( $this->context ) && ( $this->context !== '' ) ) ? true : false; |
|
| 325 | 325 | } |
| 326 | 326 | |
| 327 | 327 | /** |
@@ -332,10 +332,10 @@ discard block |
||
| 332 | 332 | * |
| 333 | 333 | * @return self |
| 334 | 334 | */ |
| 335 | - public function addReference($filename, $line = null) |
|
| 335 | + public function addReference( $filename, $line = null ) |
|
| 336 | 336 | { |
| 337 | 337 | $key = "{$filename}:{$line}"; |
| 338 | - $this->references[$key] = [$filename, $line]; |
|
| 338 | + $this->references[ $key ] = [ $filename, $line ]; |
|
| 339 | 339 | |
| 340 | 340 | return $this; |
| 341 | 341 | } |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | */ |
| 348 | 348 | public function hasReferences() |
| 349 | 349 | { |
| 350 | - return !empty($this->references); |
|
| 350 | + return ! empty( $this->references ); |
|
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | /** |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | */ |
| 358 | 358 | public function getReferences() |
| 359 | 359 | { |
| 360 | - return array_values($this->references); |
|
| 360 | + return array_values( $this->references ); |
|
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | /** |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | */ |
| 368 | 368 | public function deleteReferences() |
| 369 | 369 | { |
| 370 | - $this->references = []; |
|
| 370 | + $this->references = [ ]; |
|
| 371 | 371 | |
| 372 | 372 | return $this; |
| 373 | 373 | } |
@@ -379,10 +379,10 @@ discard block |
||
| 379 | 379 | * |
| 380 | 380 | * @return self |
| 381 | 381 | */ |
| 382 | - public function addComment($comment) |
|
| 382 | + public function addComment( $comment ) |
|
| 383 | 383 | { |
| 384 | - if (!in_array($comment, $this->comments, true)) { |
|
| 385 | - $this->comments[] = $comment; |
|
| 384 | + if ( ! in_array( $comment, $this->comments, true ) ) { |
|
| 385 | + $this->comments[ ] = $comment; |
|
| 386 | 386 | } |
| 387 | 387 | |
| 388 | 388 | return $this; |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | */ |
| 396 | 396 | public function hasComments() |
| 397 | 397 | { |
| 398 | - return isset($this->comments[0]); |
|
| 398 | + return isset( $this->comments[ 0 ] ); |
|
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | /** |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | */ |
| 416 | 416 | public function deleteComments() |
| 417 | 417 | { |
| 418 | - $this->comments = []; |
|
| 418 | + $this->comments = [ ]; |
|
| 419 | 419 | |
| 420 | 420 | return $this; |
| 421 | 421 | } |
@@ -427,10 +427,10 @@ discard block |
||
| 427 | 427 | * |
| 428 | 428 | * @return self |
| 429 | 429 | */ |
| 430 | - public function addExtractedComment($comment) |
|
| 430 | + public function addExtractedComment( $comment ) |
|
| 431 | 431 | { |
| 432 | - if (!in_array($comment, $this->extractedComments, true)) { |
|
| 433 | - $this->extractedComments[] = $comment; |
|
| 432 | + if ( ! in_array( $comment, $this->extractedComments, true ) ) { |
|
| 433 | + $this->extractedComments[ ] = $comment; |
|
| 434 | 434 | } |
| 435 | 435 | |
| 436 | 436 | return $this; |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | */ |
| 444 | 444 | public function hasExtractedComments() |
| 445 | 445 | { |
| 446 | - return isset($this->extractedComments[0]); |
|
| 446 | + return isset( $this->extractedComments[ 0 ] ); |
|
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | /** |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | */ |
| 464 | 464 | public function deleteExtractedComments() |
| 465 | 465 | { |
| 466 | - $this->extractedComments = []; |
|
| 466 | + $this->extractedComments = [ ]; |
|
| 467 | 467 | |
| 468 | 468 | return $this; |
| 469 | 469 | } |
@@ -475,10 +475,10 @@ discard block |
||
| 475 | 475 | * |
| 476 | 476 | * @return self |
| 477 | 477 | */ |
| 478 | - public function addFlag($flag) |
|
| 478 | + public function addFlag( $flag ) |
|
| 479 | 479 | { |
| 480 | - if (!in_array($flag, $this->flags, true)) { |
|
| 481 | - $this->flags[] = $flag; |
|
| 480 | + if ( ! in_array( $flag, $this->flags, true ) ) { |
|
| 481 | + $this->flags[ ] = $flag; |
|
| 482 | 482 | } |
| 483 | 483 | |
| 484 | 484 | return $this; |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | */ |
| 492 | 492 | public function hasFlags() |
| 493 | 493 | { |
| 494 | - return isset($this->flags[0]); |
|
| 494 | + return isset( $this->flags[ 0 ] ); |
|
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | /** |
@@ -511,7 +511,7 @@ discard block |
||
| 511 | 511 | */ |
| 512 | 512 | public function deleteFlags() |
| 513 | 513 | { |
| 514 | - $this->flags = []; |
|
| 514 | + $this->flags = [ ]; |
|
| 515 | 515 | |
| 516 | 516 | return $this; |
| 517 | 517 | } |
@@ -524,13 +524,13 @@ discard block |
||
| 524 | 524 | * |
| 525 | 525 | * @return self |
| 526 | 526 | */ |
| 527 | - public function mergeWith(Translation $translation, $options = Merge::DEFAULTS) |
|
| 527 | + public function mergeWith( Translation $translation, $options = Merge::DEFAULTS ) |
|
| 528 | 528 | { |
| 529 | - Merge::mergeTranslation($translation, $this, $options); |
|
| 530 | - Merge::mergeReferences($translation, $this, $options); |
|
| 531 | - Merge::mergeComments($translation, $this, $options); |
|
| 532 | - Merge::mergeExtractedComments($translation, $this, $options); |
|
| 533 | - Merge::mergeFlags($translation, $this, $options); |
|
| 529 | + Merge::mergeTranslation( $translation, $this, $options ); |
|
| 530 | + Merge::mergeReferences( $translation, $this, $options ); |
|
| 531 | + Merge::mergeComments( $translation, $this, $options ); |
|
| 532 | + Merge::mergeExtractedComments( $translation, $this, $options ); |
|
| 533 | + Merge::mergeFlags( $translation, $this, $options ); |
|
| 534 | 534 | |
| 535 | 535 | return $this; |
| 536 | 536 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @param mixed $target |
| 18 | 18 | * @return void |
| 19 | 19 | */ |
| 20 | - public function __construct($target) |
|
| 20 | + public function __construct( $target ) |
|
| 21 | 21 | { |
| 22 | 22 | $this->target = $target; |
| 23 | 23 | } |
@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | * @param array $parameters |
| 30 | 30 | * @return mixed |
| 31 | 31 | */ |
| 32 | - public function __call($method, $parameters) |
|
| 32 | + public function __call( $method, $parameters ) |
|
| 33 | 33 | { |
| 34 | - $this->target->{$method}(...$parameters); |
|
| 34 | + $this->target->{$method}( ...$parameters ); |
|
| 35 | 35 | |
| 36 | 36 | return $this->target; |
| 37 | 37 | } |
@@ -27,12 +27,12 @@ discard block |
||
| 27 | 27 | * @param \Illuminate\Contracts\Container\Container $container |
| 28 | 28 | * @return void |
| 29 | 29 | */ |
| 30 | - protected function setupContainer(Container $container) |
|
| 30 | + protected function setupContainer( Container $container ) |
|
| 31 | 31 | { |
| 32 | 32 | $this->container = $container; |
| 33 | 33 | |
| 34 | - if (! $this->container->bound('config')) { |
|
| 35 | - $this->container->instance('config', new Fluent); |
|
| 34 | + if ( ! $this->container->bound( 'config' ) ) { |
|
| 35 | + $this->container->instance( 'config', new Fluent ); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * @param \Illuminate\Contracts\Container\Container $container |
| 63 | 63 | * @return void |
| 64 | 64 | */ |
| 65 | - public function setContainer(Container $container) |
|
| 65 | + public function setContainer( Container $container ) |
|
| 66 | 66 | { |
| 67 | 67 | $this->container = $container; |
| 68 | 68 | } |
@@ -9,14 +9,14 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @var array |
| 11 | 11 | */ |
| 12 | - protected $providers = []; |
|
| 12 | + protected $providers = [ ]; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * An array of the service provider instances. |
| 16 | 16 | * |
| 17 | 17 | * @var array |
| 18 | 18 | */ |
| 19 | - protected $instances = []; |
|
| 19 | + protected $instances = [ ]; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Register the service provider. |
@@ -25,10 +25,10 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function register() |
| 27 | 27 | { |
| 28 | - $this->instances = []; |
|
| 28 | + $this->instances = [ ]; |
|
| 29 | 29 | |
| 30 | - foreach ($this->providers as $provider) { |
|
| 31 | - $this->instances[] = $this->app->register($provider); |
|
| 30 | + foreach ( $this->providers as $provider ) { |
|
| 31 | + $this->instances[ ] = $this->app->register( $provider ); |
|
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
@@ -39,12 +39,12 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function provides() |
| 41 | 41 | { |
| 42 | - $provides = []; |
|
| 42 | + $provides = [ ]; |
|
| 43 | 43 | |
| 44 | - foreach ($this->providers as $provider) { |
|
| 45 | - $instance = $this->app->resolveProvider($provider); |
|
| 44 | + foreach ( $this->providers as $provider ) { |
|
| 45 | + $instance = $this->app->resolveProvider( $provider ); |
|
| 46 | 46 | |
| 47 | - $provides = array_merge($provides, $instance->provides()); |
|
| 47 | + $provides = array_merge( $provides, $instance->provides() ); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | return $provides; |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * @param string $view |
| 11 | 11 | * @return bool |
| 12 | 12 | */ |
| 13 | - public function exists($view); |
|
| 13 | + public function exists( $view ); |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Get the evaluated view contents for the given path. |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * @param array $mergeData |
| 21 | 21 | * @return \Illuminate\Contracts\View\View |
| 22 | 22 | */ |
| 23 | - public function file($path, $data = [], $mergeData = []); |
|
| 23 | + public function file( $path, $data = [ ], $mergeData = [ ] ); |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Get the evaluated view contents for the given view. |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * @param array $mergeData |
| 31 | 31 | * @return \Illuminate\Contracts\View\View |
| 32 | 32 | */ |
| 33 | - public function make($view, $data = [], $mergeData = []); |
|
| 33 | + public function make( $view, $data = [ ], $mergeData = [ ] ); |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Add a piece of shared data to the environment. |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * @param mixed $value |
| 40 | 40 | * @return mixed |
| 41 | 41 | */ |
| 42 | - public function share($key, $value = null); |
|
| 42 | + public function share( $key, $value = null ); |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * Register a view composer event. |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * @param \Closure|string $callback |
| 49 | 49 | * @return array |
| 50 | 50 | */ |
| 51 | - public function composer($views, $callback); |
|
| 51 | + public function composer( $views, $callback ); |
|
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * Register a view creator event. |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * @param \Closure|string $callback |
| 58 | 58 | * @return array |
| 59 | 59 | */ |
| 60 | - public function creator($views, $callback); |
|
| 60 | + public function creator( $views, $callback ); |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Add a new namespace to the loader. |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * @param string|array $hints |
| 67 | 67 | * @return $this |
| 68 | 68 | */ |
| 69 | - public function addNamespace($namespace, $hints); |
|
| 69 | + public function addNamespace( $namespace, $hints ); |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Replace the namespace hints for the given namespace. |
@@ -75,5 +75,5 @@ discard block |
||
| 75 | 75 | * @param string|array $hints |
| 76 | 76 | * @return $this |
| 77 | 77 | */ |
| 78 | - public function replaceNamespace($namespace, $hints); |
|
| 78 | + public function replaceNamespace( $namespace, $hints ); |
|
| 79 | 79 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @param mixed $traveler |
| 13 | 13 | * @return $this |
| 14 | 14 | */ |
| 15 | - public function send($traveler); |
|
| 15 | + public function send( $traveler ); |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * Set the stops of the pipeline. |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * @param dynamic|array $stops |
| 21 | 21 | * @return $this |
| 22 | 22 | */ |
| 23 | - public function through($stops); |
|
| 23 | + public function through( $stops ); |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Set the method to call on the stops. |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * @param string $method |
| 29 | 29 | * @return $this |
| 30 | 30 | */ |
| 31 | - public function via($method); |
|
| 31 | + public function via( $method ); |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Run the pipeline with a final destination callback. |
@@ -36,5 +36,5 @@ discard block |
||
| 36 | 36 | * @param \Closure $destination |
| 37 | 37 | * @return mixed |
| 38 | 38 | */ |
| 39 | - public function then(Closure $destination); |
|
| 39 | + public function then( Closure $destination ); |
|
| 40 | 40 | } |
@@ -11,5 +11,5 @@ |
||
| 11 | 11 | * @param string|null $pipeline |
| 12 | 12 | * @return mixed |
| 13 | 13 | */ |
| 14 | - public function pipe($object, $pipeline = null); |
|
| 14 | + public function pipe( $object, $pipeline = null ); |
|
| 15 | 15 | } |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * @param \Illuminate\Http\Request $request |
| 11 | 11 | * @return mixed |
| 12 | 12 | */ |
| 13 | - public function auth($request); |
|
| 13 | + public function auth( $request ); |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Return the valid authentication response. |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @param mixed $result |
| 20 | 20 | * @return mixed |
| 21 | 21 | */ |
| 22 | - public function validAuthenticationResponse($request, $result); |
|
| 22 | + public function validAuthenticationResponse( $request, $result ); |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * Broadcast the given event. |
@@ -29,5 +29,5 @@ discard block |
||
| 29 | 29 | * @param array $payload |
| 30 | 30 | * @return void |
| 31 | 31 | */ |
| 32 | - public function broadcast(array $channels, $event, array $payload = []); |
|
| 32 | + public function broadcast( array $channels, $event, array $payload = [ ] ); |
|
| 33 | 33 | } |
@@ -10,5 +10,5 @@ |
||
| 10 | 10 | * @param int $options |
| 11 | 11 | * @return string |
| 12 | 12 | */ |
| 13 | - public function toJson($options = 0); |
|
| 13 | + public function toJson( $options = 0 ); |
|
| 14 | 14 | } |