Giter Club home page Giter Club logo

craftgate-opencart-3.x-gateway's People

Contributors

onurpolattimur avatar sotuzun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ip-cam

craftgate-opencart-3.x-gateway's Issues

Düzenlemeler

Bir iki konuya değinmek istiyorum, görebildiğim kadarıyla; Mesela formatPrice() yöntemi float yenine bool veri ile çağrılmış (1). Zaten PHP'de float veri karşılaştırmalarının "$x != 0" şeklinde yapılması tavsiye edilmez. Orada "$x > 0.0" demek daha uygun görünüyor. Diğer gözüme çarpan şey ise and/or ifadelerinin uyumsuzluğu (2), yani wrap edilmemiş parantezlerle, bu da her daim dengesiz bir bool sonuç verecektir. Yanı sıra çoğu yerde cast'lar yapılmamış (3), bilhassa sayısal verilerle çalışırken "$x = (float) $x" şeklinde cast kullanımı tavsiye edilir, hem güvenlik hem de veri tutarlılığı açısından. Bir de İyzico şeysi görüyorum (4), sanırım orada da başka bir yanlışlık olmuş.

Kanımca paketin, ehil bir PHP Dev. ile sıkı bir revizeden geçirilmesi daha sağlıklı ilerlemenizi sağlayacaktır.

  1. https://github.com/craftgate/craftgate-opencart-3.x-gateway/blob/master/upload/catalog/controller/extension/payment/craftgate_payment_gateway.php#L145
  2. https://github.com/craftgate/craftgate-opencart-3.x-gateway/blob/master/upload/catalog/controller/extension/payment/craftgate_payment_gateway.php#L240 ve https://github.com/craftgate/craftgate-opencart-3.x-gateway/blob/master/upload/catalog/controller/extension/payment/craftgate_payment_gateway.php#L250.
  3. https://github.com/craftgate/craftgate-opencart-3.x-gateway/blob/master/upload/catalog/controller/extension/payment/craftgate_payment_gateway.php#L35
  4. https://github.com/craftgate/craftgate-opencart-3.x-gateway/blob/master/upload/catalog/model/extension/payment/craftgate_payment_gateway.php#L42

Şuraya bir şeyler bırakıyorum, dilerseniz kullanabilirsiniz.
Kolay gelsin.

https://gist.github.com/k-gun/43a1c26f49be17d44d8012c44ae94a3e

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.