1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 21:49:04 +02:00

use PHP 5.6 pow()

This commit is contained in:
Peter Gribanov
2017-09-12 10:18:00 +03:00
committed by GitHub
parent 924c563004
commit ab07e05bcd

View File

@@ -1454,8 +1454,8 @@ class Square implements Shape
public function area()
{
return pow($this->length, 2);
}
       return $this->length ** 2;
   }
}
function printArea(Shape $shape)