Skip to content

Instantly share code, notes, and snippets.

@nicanaca0
nicanaca0 / playground.rs
Created May 2, 2017 15:52 — forked from anonymous/playground.rs
Shared via Rust Playground
fn to_celcius(value: f64) -> f64 {
(value - 32.0) * (5.0 / 9.0)
}
fn to_fahrenheit(value: f64) -> f64 {
(value * (9.0 / 5.0)) + 32.0
}
fn main() {
<?php
/**
* @param array $data
* @throws ProductImportException
*/
public function createProduct(array $data)
{
$originalProduct = $this->productRepository->findOneByCode($data['code']);