File: InlineControlStructureUnitTest.js.fixed

package info (click to toggle)
php-codesniffer 2.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,460 kB
  • ctags: 8,660
  • sloc: php: 40,311; xml: 9,505; pascal: 3,365; makefile: 16; sh: 6
file content (31 lines) | stat: -rw-r--r-- 379 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31


if (something) { print 'hello';
}

if (something) {
    print 'hello';
} else { print 'hi';
}

if (something) {
    print 'hello';
} else if (something) { print 'hi';
}

for (i; i > 0; i--) { print 'hello';
}

while (something) { print 'hello';
}

do {
    i--;
} while (something);

do { i++;
} while (i < 5);

SomeClass.prototype.switch = function() {
    // do something
};