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 | |
class Letters{ | |
private function getLetter($letter) | |
{ | |
// get a ketter from the database | |
// bla bla blatriming, and geting for db | |
$letter = getFromDB(trim($letter)); | |
if (!$letter) throw new \LetterException('Letter "'.$letter.'" was not found in the database'); | |
return $letter; |
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
var sum = function(a,b) { | |
return a+b; | |
}; | |
var sum (a,b) => a+b; | |
var square = function(a) { | |
return a*a; |
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 | |
$soundex = [ | |
'sz' => 's', | |
'cz' => 'c', | |
'ch' => 'h', | |
'ó' => 'u', | |
'ą' => 'o', | |
'ł' => 'l', | |
'dź' => 'z', |