- Is branch up-to date with master branch?
- Is auto-format performed? (on new code/edited code block (function, etc) Should avoid messing git history with auto-formatting!)
- Are all IDE errors fixed (green check mark in corner)?
- Are variable names self-describing?
- Are function names self-describing?
- Are boolean function/variable names prefixed with
is
,has
,can
,should
, etc.? - Is function line count too much, can something be split up?
- Is file line count too much (>400), can something be split up?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url = 'https://www.googleapis.com/drive/v2/files/' . urlencode($_POST['googleFileId']) . '?alt=media'; | |
$oAuthToken = $_POST['oAuthToken']; | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$userNames = str_split('QWERTYUIJPABCDE'); | |
$forbidden = [ | |
'Q' => 'W', | |
'P' => 'A', | |
'U' => 'I', | |
'D' => 'E', | |
]; | |
$generateSet = function () use ($userNames){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$userNames = str_split('QWERTYUIJPABCDE'); | |
$forbidden = [ | |
'Q' => 'W', | |
'P' => 'A', | |
'U' => 'I', | |
'D' => 'E', | |
]; | |
$generateSet = function() use ($userNames){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
private function _processMessage($messageBody){ | |
$re = new Returned__item; | |
/** @noinspection PhpDynamicAsStaticMethodCallInspection */ | |
$body = \Mail_Mimedecode::decode([ | |
'include_bodies' => true, | |
'decode_bodies' => true, | |
'decode_headers' => true, | |
'input' => $messageBody |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\// veidojam vnk nodi, piemēram, div | |
mkE( { | |
tag:'div' | |
} ); | |
// node ar tekstu, to nevajag eskeipot | |
mkE( { | |
tag:'div', | |
text:'Hello world!' | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
function fibonacci($n, $first = 0, $second = 1){ | |
$fib = [$first, $second]; | |
for($i = 1; $i < $n; $i++){ | |
$fib[] = $fib[$i] + $fib[$i - 1]; | |
} | |
return $fib; | |
} | |
NewerOlder