~ubuntu-branches/ubuntu/saucy/php-codesniffer/saucy

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.3.4/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
public function someFunctionWithAVeryLongName($firstParameter='something',
 
3
   $secondParameter='booooo',
 
4
   $third=null, $fourthParameter=false,
 
5
     $fifthParameter=123.12,
 
6
    $sixthParam=true
 
7
){
 
8
}
 
9
 
 
10
function someFunctionWithAVeryLongName2(
 
11
$firstParameter='something',
 
12
$secondParameter='booooo',
 
13
)  {
 
14
}
 
15
 
 
16
function blah() {
 
17
}
 
18
 
 
19
function blah()
 
20
{
 
21
}
 
22
 
 
23
class MyClass
 
24
{
 
25
 
 
26
    public function someFunctionWithAVeryLongName(
 
27
        $firstParameter='something',
 
28
        $secondParameter='booooo',
 
29
        $third=null,
 
30
        $fourthParameter=false,
 
31
        $fifthParameter=123.12,
 
32
        $sixthParam=true
 
33
    ) /** w00t */ {
 
34
    }
 
35
 
 
36
    public function someFunctionWithAVeryLongName2($firstParameter='something',
 
37
        $secondParameter='booooo',
 
38
        $third=null
 
39
    ) {
 
40
    }
 
41
 
 
42
     public function someFunctionWithAVeryLongName3(
 
43
         $firstParameter, $secondParameter, $third=null
 
44
     ) {
 
45
     }
 
46
 
 
47
     public function someFunctionWithAVeryLongName4(
 
48
         $firstParameter, $secondParameter
 
49
     ) {
 
50
     }
 
51
 
 
52
     public function someFunctionWithAVeryLongName5(
 
53
         $firstParameter,
 
54
         $secondParameter=array(1,2,3),
 
55
         $third=null
 
56
     ) {
 
57
     }
 
58
 
 
59
}
 
60
?>